File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -179,9 +179,16 @@ async function createReleaseIssue(): Promise<void> {
179
179
const commitsWithUnknownLanguageScope : string [ ] = [ ] ;
180
180
const commitsWithoutLanguageScope : string [ ] = [ ] ;
181
181
182
+ // Remove the local tag, and fetch it from the remote.
183
+ // We move the `released` tag as we release, so we need to make it up-to-date.
184
+ await run ( `git tag -d ${ RELEASED_TAG } ` ) ;
185
+ await run (
186
+ `git fetch origin refs/tags/${ RELEASED_TAG } :refs/tags/${ RELEASED_TAG } `
187
+ ) ;
188
+
182
189
// Reading commits since last release
183
190
const latestCommits = (
184
- await run ( `git log --oneline ${ RELEASED_TAG } ..${ MAIN_BRANCH } ` )
191
+ await run ( `git log --oneline --abbrev=8 ${ RELEASED_TAG } ..${ MAIN_BRANCH } ` )
185
192
)
186
193
. split ( '\n' )
187
194
. filter ( Boolean )
Original file line number Diff line number Diff line change @@ -269,7 +269,9 @@ async function processRelease(): Promise<void> {
269
269
await run ( `git push` ) ;
270
270
271
271
// remove old `released` tag
272
- await run ( `git fetch origin refs/tags/released:refs/tags/released` ) ;
272
+ await run (
273
+ `git fetch origin refs/tags/${ RELEASED_TAG } :refs/tags/${ RELEASED_TAG } `
274
+ ) ;
273
275
await run ( `git tag -d ${ RELEASED_TAG } ` ) ;
274
276
await run ( `git push --delete origin ${ RELEASED_TAG } ` ) ;
275
277
You can’t perform that action at this time.
0 commit comments