Skip to content

Commit 9eb0ce0

Browse files
committed
feat(release): option to comment on closed issues and pull requests
1 parent a8b7dea commit 9eb0ce0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pipeline {
55
booleanParam(name: 'deploy_io_exchange', defaultValue: false, description: 'Exchange deployed build to github.io with previous commit')
66
booleanParam(name: 'store', defaultValue: false, description: 'Store build')
77
booleanParam(name: 'release', defaultValue: false, description: 'Release build')
8+
booleanParam(name: 'release_comment', defaultValue: true, description: 'Add comment to each issue and pull request resolved')
89
password(name: 'GH_TOKEN', defaultValue: '', description: 'Github user token. Note: don\'t use a password, will be logged to console on error.')
910
choice(name: 'dest', description: 'Destination folder', choices: ['asterics-web-devlinux/docs', 'asterics-web-devwindows/docs', 'asterics-web-production/docs' ])
1011
choice(name: 'agent', description: 'Agent', choices: ['Linux', 'Win'])

release.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
const { release_comment } = process.env;
2+
const successComment = release_comment
3+
? ":tada: This issue has been resolved in version ${nextRelease.version} :tada:\n\nThe release is available on [GitHub release](<github_release_url>)"
4+
: false;
5+
16
module.exports = {
27
// branch: "alija/task/101",
38
repositoryUrl: "https://github.com/asterics/asterics-docs",
@@ -13,7 +18,8 @@ module.exports = {
1318
[
1419
"@semantic-release/github",
1520
{
16-
assets: [{ path: "asterics-docs-v*.zip", label: "AsTeRICS Docs" }, { path: "dist/build.json", label: "build.json" }]
21+
assets: [{ path: "asterics-docs-v*.zip", label: "AsTeRICS Docs" }, { path: "dist/build.json", label: "build.json" }],
22+
successComment
1723
}
1824
],
1925
[

0 commit comments

Comments
 (0)