File tree 4 files changed +12
-5
lines changed
4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 57
57
{{ ~/if }}
58
58
{{~ this.repository }} #{{ this.issue }}
59
59
{{ ~/if }}{{ /each }}
60
- {{ ~/if }}
60
+ {{ ~/if }}
61
+
Original file line number Diff line number Diff line change 4
4
### {{ title }}
5
5
6
6
{{ #each notes }}
7
- * {{ #if commit.scope }} **{{ commit.scope }} :** {{ /if }} {{ text }}
7
+ * {{ #if commit.scope }} **{{ commit.scope }} :** {{ /if }} {{ text }} ([ {{ commit.shortHash }} ]( {{ commit.shortHash }} ))
8
8
{{ /each }}
9
9
{{ /each }}
10
10
11
- {{ /if }}
11
+ {{ /if }}
Original file line number Diff line number Diff line change 22
22
{{ ~#if title }} "{{ title }} "
23
23
{{ ~/if }}
24
24
{{ ~#if date }} ({{ date }} )
25
- {{ /if }}
25
+ {{ /if }}
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ const path = require('path');
7
7
8
8
// Get env vars
9
9
const ref = process . env . GITHUB_REF ;
10
+ const serverUrl = process . env . GITHUB_SERVER_URL ;
11
+ const repository = process . env . GITHUB_REPOSITORY ;
12
+ const repositoryUrl = serverUrl + '/' + repository ;
10
13
11
14
// Declare params
12
15
const resourcePath = './.releaserc/' ;
@@ -84,6 +87,8 @@ async function config() {
84
87
} ] ,
85
88
[ "@semantic-release/github" , {
86
89
successComment : getReleaseComment ( ) ,
90
+ labels : [ 'type:ci' ] ,
91
+ releasedLabels : [ 'state:released<%= nextRelease.channel ? `-\${nextRelease.channel}` : "" %>' ]
87
92
} ] ,
88
93
] ,
89
94
} ;
@@ -103,7 +108,8 @@ async function readFile(filePath) {
103
108
}
104
109
105
110
function getReleaseComment ( ) {
106
- const comment = '🎉 This issue has been resolved in version [${nextRelease.version}](<github_release_url>)' ;
111
+ const url = repositoryUrl + '/releases/tag/${nextRelease.gitTag}' ;
112
+ const comment = '🎉 This pull request has been released in version [${nextRelease.version}](' + url + ')' ;
107
113
return comment ;
108
114
}
109
115
You can’t perform that action at this time.
0 commit comments