Skip to content

Commit c71013d

Browse files
authored
Merge pull request #499 from shiftkey/release-notes-fixes
Fixes for release notes script
2 parents b7926ba + 4dee5a2 commit c71013d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ jobs:
141141
needs: [build, shellcheck]
142142
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
143143
runs-on: ubuntu-latest
144+
permissions:
145+
contents: write
144146
steps:
145147
- uses: actions/checkout@v2
146148

script/generate-release-notes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import * as fs from 'fs'
44
import { Octokit } from '@octokit/rest'
55

66
export default class GenerateReleaseNotes {
7-
// five targeted OS/arch combinations
7+
// Eight targeted OS/arch combinations
88
// two files for each targeted OS/arch
99
// two checksum files for the previous
10-
private SUCCESSFUL_RELEASE_FILE_COUNT = 5 * 2 * 2
10+
private SUCCESSFUL_RELEASE_FILE_COUNT = 8 * 2 * 2
1111
private args = process.argv.slice(2)
1212
private expectedArgs = [
1313
{
@@ -163,7 +163,7 @@ export default class GenerateReleaseNotes {
163163
const match = mergeCommitRegex.exec(mergeCommitMessage)
164164
if (match != null && match.length === 2) {
165165
const num = parseInt(match[1])
166-
if (num != NaN) {
166+
if (!Number.isNaN(num)) {
167167
pullRequestIds.push(num)
168168
}
169169
}

0 commit comments

Comments
 (0)