@semantic-release/github 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/lib/success.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,7 +83,8 @@ If you have actions that trigger on newly created releases, please use a generat
|
|
|
83
83
|
| `failTitle` | The title of the issue created when a release fails. Set to `false` to disable opening an issue when a release fails. | `The automated release is failing 🚨` |
|
|
84
84
|
| `labels` | The [labels](https://help.github.com/articles/about-labels) to add to the issue created when a release fails. Set to `false` to not add any label. | `['semantic-release']` |
|
|
85
85
|
| `assignees` | The [assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users) to add to the issue created when a release fails. | - |
|
|
86
|
-
| `releasedLabels` | The [labels](https://help.github.com/articles/about-labels) to add to each issue and pull request resolved by the release. Set to `false` to not add any label. See [releasedLabels](#releasedlabels). | `['released<%= nextRelease.channel ? \` on @\${nextRelease.channel}\` : "" %>']
|
|
86
|
+
| `releasedLabels` | The [labels](https://help.github.com/articles/about-labels) to add to each issue and pull request resolved by the release. Set to `false` to not add any label. See [releasedLabels](#releasedlabels). | `['released<%= nextRelease.channel ? \` on @\${nextRelease.channel}\` : "" %>']- |
|
|
87
|
+
| `addReleases` | Will add release links to the GitHub Release. Can be `false`, `"bottom"` or `"top"`. See [addReleases](#addReleases). | `false` |
|
|
87
88
|
|
|
88
89
|
#### proxy
|
|
89
90
|
|
package/lib/success.js
CHANGED
|
@@ -19,7 +19,6 @@ module.exports = async (pluginConfig, context) => {
|
|
|
19
19
|
nextRelease,
|
|
20
20
|
releases,
|
|
21
21
|
logger,
|
|
22
|
-
notes,
|
|
23
22
|
} = context;
|
|
24
23
|
const {
|
|
25
24
|
githubToken,
|
|
@@ -152,8 +151,8 @@ module.exports = async (pluginConfig, context) => {
|
|
|
152
151
|
if (!isEmpty(additionalReleases) && !isNil(ghRelaseId)) {
|
|
153
152
|
const newBody =
|
|
154
153
|
addReleases === 'top'
|
|
155
|
-
? additionalReleases.concat('\n---\n', notes)
|
|
156
|
-
: notes.concat('\n---\n', additionalReleases);
|
|
154
|
+
? additionalReleases.concat('\n---\n', nextRelease.notes)
|
|
155
|
+
: nextRelease.notes.concat('\n---\n', additionalReleases);
|
|
157
156
|
await github.repos.updateRelease({owner, repo, release_id: ghRelaseId, body: newBody});
|
|
158
157
|
}
|
|
159
158
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantic-release/github",
|
|
3
3
|
"description": "semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues",
|
|
4
|
-
"version": "7.1.
|
|
4
|
+
"version": "7.1.1",
|
|
5
5
|
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
|
|
6
6
|
"ava": {
|
|
7
7
|
"files": [
|