You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`gitlabUrl`| The GitLab endpoint. |`GL_URL` or `GITLAB_URL` environment variable or CI provided environment variables if running on [GitLab CI/CD](https://docs.gitlab.com/ee/ci) or `https://gitlab.com`. |
64
-
|`gitlabApiPathPrefix`| The GitLab API prefix. |`GL_PREFIX` or `GITLAB_PREFIX` environment variable or CI provided environment variables if running on [GitLab CI/CD](https://docs.gitlab.com/ee/ci) or `/api/v4`. |
65
-
|`assets`| An array of files to upload to the release. See [assets](#assets). | - |
66
-
|`milestones`| An array of milestone titles to associate to the release. See [GitLab Release API](https://docs.gitlab.com/ee/api/releases/#create-a-release). | - |
|`gitlabUrl`| The GitLab endpoint. |`GL_URL` or `GITLAB_URL` environment variable or CI provided environment variables if running on [GitLab CI/CD](https://docs.gitlab.com/ee/ci) or `https://gitlab.com`. |
66
+
|`gitlabApiPathPrefix`| The GitLab API prefix. |`GL_PREFIX` or `GITLAB_PREFIX` environment variable or CI provided environment variables if running on [GitLab CI/CD](https://docs.gitlab.com/ee/ci) or `/api/v4`. |
67
+
|`assets`| An array of files to upload to the release. See [assets](#assets). | - |
68
+
|`milestones`| An array of milestone titles to associate to the release. See [GitLab Release API](https://docs.gitlab.com/ee/api/releases/#create-a-release). | - |
69
+
|`successComment`| The comment to add to each Issue and Merge Request resolved by the release. Set to false to disable commenting. See [successComment](#successComment). |:tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitLab release](<gitlab_release_url>)|
67
70
68
71
#### assets
69
72
@@ -100,6 +103,20 @@ distribution` and `MyLibrary CSS distribution` in the GitLab release.
100
103
`css` files in the `dist` directory and its sub-directories excluding the minified version, plus the
101
104
`build/MyLibrary.zip` file and label it `MyLibrary` in the GitLab release.
102
105
106
+
#### successComment
107
+
108
+
The message for the issue comments is generated with [Lodash template](https://lodash.com/docs#template). The following variables are available:
|`branch`|`Object` with `name`, `type`, `channel`, `range` and `prerelease` properties of the branch from which the release is done. |
113
+
|`lastRelease`|`Object` with `version`, `channel`, `gitTag` and `gitHead` of the last release. |
114
+
|`nextRelease`|`Object` with `version`, `channel`, `gitTag`, `gitHead` and `notes` of the release being done. |
115
+
|`commits`|`Array` of commit `Object`s with `hash`, `subject`, `body``message` and `author`. |
116
+
|`releases`|`Array` with a release `Object`s for each release published, with optional release data such as `name` and `url`. |
117
+
| `mergeRequest` | A [GitLab API Issue object](https://docs.gitlab.com/ee/api/issues.html#single-issue) the comment will be posted to, or `false` when commenting Merge Requests.
118
+
| `issue` | A [GitHub API Merge Request object](https://docs.gitlab.com/ee/api/merge_requests.html#get-single-mr) the comment will be posted to, or `false` when commenting Issues.
119
+
103
120
## Compatibility
104
121
105
122
The latest version of this plugin is compatible with all currently-supported versions of GitLab, [which is the current major version and previous two major versions](https://about.gitlab.com/support/statement-of-support.html#version-support). This plugin is not guaranteed to work with unsupported versions of GitLab.
0 commit comments