Skip to content

Commit 050273f

Browse files
authored
Prevent exlusion of commit based on the release line (#5644)
1 parent 849ffd1 commit 050273f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

scripts/release/proposal.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,19 @@ try {
6666

6767
pass(`v${releaseLine}.x`)
6868

69-
const diffCmd = [
70-
'branch-diff',
71-
'--user DataDog',
72-
'--repo dd-trace-js',
73-
`--exclude-label=semver-major,dont-land-on-v${releaseLine}.x`
74-
].join(' ')
69+
const diffCmd = 'branch-diff --user DataDog --repo dd-trace-js --exclude-label=semver-major'
7570

7671
start('Determine version increment')
7772

73+
const legacyDiff = capture(`${diffCmd} --require-label=dont-land-on-v${releaseLine}.x v${releaseLine}.x ${main}`)
74+
75+
if (legacyDiff) {
76+
fatal(
77+
`The "dont-land-on-v${releaseLine}.x" label is no longer supported.`,
78+
'Please remove the label from any offending PR to continue.'
79+
)
80+
}
81+
7882
const { DD_MAJOR, DD_MINOR, DD_PATCH } = require('../../version')
7983
const lineDiff = capture(`${diffCmd} --markdown=true v${releaseLine}.x ${main}`)
8084

0 commit comments

Comments
 (0)