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
|`githubUrl`| The GitHub Enterprise endpoint. |`GH_URL` or `GITHUB_URL` environment variable. |
48
+
|`githubApiPathPrefix`| The GitHub Enterprise API prefix. |`GH_PREFIX` or `GITHUB_PREFIX` environment variable. |
49
+
|`assets`| An array of files to upload to the release. See [assets](#assets). | - |
50
+
|`successComment`| The comment added to each issue and pull request resolved by the release. See [successComment](#successcomment). |`:tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release](<github_release_url>)`|
46
51
47
-
#### `assets`
52
+
#### assets
48
53
49
54
Can be a [glob](https://github.com/isaacs/node-glob#glob-primer) or and `Array` of
50
55
[globs](https://github.com/isaacs/node-glob#glob-primer) and `Object`s with the following properties
@@ -63,7 +68,7 @@ If a directory is configured, all the files under this directory and its childre
63
68
64
69
Files can be included even if they have a match in `.gitignore`.
65
70
66
-
##### `assets` examples
71
+
##### assets examples
67
72
68
73
`'dist/*.js'`: include all the `js` files in the `dist` directory, but not in its sub-directories.
69
74
@@ -78,6 +83,25 @@ distribution` and `MyLibrary CSS distribution` in the GitHub release.
78
83
`css` files in the `dist` directory and its sub-directories excluding the minified version, plus the
79
84
`build/MyLibrary.zip` file and label it `MyLibrary` in the GitHub release.
80
85
86
+
#### successComment
87
+
88
+
The message for the issue comments is generated with [Lodash template](https://lodash.com/docs#template). The following variables are available:
|`branch`| The branch from which the release is done. |
93
+
|`lastRelease`|`Object` with `version`, `gitTag` and `gitHead` of the last release. |
94
+
|`nextRelease`|`Object` with `version`, `gitTag`, `gitHead` and `notes` of the release being done. |
95
+
|`commits`|`Array` of commit `Object`s with `hash`, `subject`, `body``message` and `author`. |
96
+
|`releases`|`Array` with a release `Object`s for each release published, with optional release data such has `name` and `url`. |
97
+
|`issue`| A [GitHub API pull request object](https://developer.github.com/v3/search/#search-issues) for pull requests related to a commit, or an `Object` with the `number` property for issues resolved via [keywords](https://help.github.com/articles/closing-issues-using-keywords)|
98
+
99
+
##### successComment examples
100
+
101
+
The `successComment``This ${issue.pull_request ? 'pull request' : 'issue'} is included in version ${nextRelease.version}` will generate the comment:
102
+
103
+
> This pull request is included in version 1.0.0
104
+
81
105
### Usage
82
106
83
107
The plugins are used by default by [Semantic-release](https://github.com/semantic-release/semantic-release) so no
@@ -89,7 +113,8 @@ Each individual plugin can be disabled, replaced or used with other plugins in t
// Make requests serially to avoid hitting the rate limit (https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)
0 commit comments