Skip to content

Commit

Permalink
ignore entries from test deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Forster committed Jul 26, 2018
1 parent aaf7ee1 commit 96271d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script/changelog/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { fetchPR, IAPIPR } from './api'
const PlaceholderChangeType = '???'
const OfficialOwner = 'desktop'

const ChangelogEntryRegex = /^\[(new|fixed|improved|removed|added)\]\s(.*)/i

interface IParsedCommit {
readonly prID: number
readonly owner: string
Expand Down Expand Up @@ -125,7 +127,11 @@ export function getChangelogEntriesSince(previousVersion: string): string[] {

const entries: string[] = releases[prop]
if (entries != null) {
existingChangelog.push(...entries)
const validEntries = entries.filter(e => {
const match = ChangelogEntryRegex.exec(e)
return match != null
})
existingChangelog.push(...validEntries)
}
}
return existingChangelog
Expand Down

0 comments on commit 96271d1

Please sign in to comment.