File tree 2 files changed +5
-20
lines changed
2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -66,21 +66,10 @@ try {
66
66
67
67
pass ( `v${ releaseLine } .x` )
68
68
69
- const diffCmd =
70
- `branch-diff --user DataDog --repo dd-trace-js --exclude-label=semver-major,dont-land-on-v${ releaseLine } .x`
69
+ const diffCmd = 'branch-diff --user DataDog --repo dd-trace-js --exclude-label=semver-major'
71
70
72
71
start ( 'Determine version increment' )
73
72
74
- const legacyDiff = capture ( `${ diffCmd } --require-label=dont-land-on-v${ releaseLine } .x v${ releaseLine } .x ${ main } ` )
75
-
76
- if ( legacyDiff ) {
77
- // TODO: Re-enable this when the offending PR commits have landed properly.
78
- // fatal(
79
- // `The "dont-land-on-v${releaseLine}.x" label is no longer supported.`,
80
- // 'Please remove the label from any offending PR to continue.'
81
- // )
82
- }
83
-
84
73
const { DD_MAJOR , DD_MINOR , DD_PATCH } = require ( '../../version' )
85
74
const lineDiff = capture ( `${ diffCmd } --markdown=true v${ releaseLine } .x ${ main } ` )
86
75
Original file line number Diff line number Diff line change @@ -37,15 +37,16 @@ try {
37
37
38
38
start ( 'Pull release branch' )
39
39
40
- const proposalBranch = params [ 0 ] || capture ( 'git rev-parse --abbrev-ref HEAD' )
40
+ const currentBranch = capture ( 'git rev-parse --abbrev-ref HEAD' )
41
+ const proposalBranch = params [ 0 ] || currentBranch
41
42
const tempBranch = randomUUID ( )
42
43
const newVersion = proposalBranch . match ( / ^ v ( [ 0 - 9 ] + \. [ 0 - 9 ] + \. [ 0 - 9 ] + ) .+ / ) [ 1 ]
43
44
const releaseLine = newVersion . match ( / ^ ( [ 0 - 9 ] + ) .+ / ) [ 1 ]
44
45
45
46
// Restore current branch on success.
46
47
process . once ( 'exit' , code => {
47
48
if ( code === 0 ) {
48
- run ( `git checkout ${ proposalBranch } ` )
49
+ run ( `git checkout ${ currentBranch } ` )
49
50
}
50
51
51
52
run ( `git branch -D ${ tempBranch } ` )
57
58
58
59
pass ( )
59
60
60
- const diffCmd = [
61
- 'branch-diff' ,
62
- '--user DataDog' ,
63
- '--repo dd-trace-js' ,
64
- `--exclude-label=semver-major,dont-land-on-v${ releaseLine } .x`
65
- ] . join ( ' ' )
61
+ const diffCmd = 'branch-diff --user DataDog --repo dd-trace-js --exclude-label=semver-major'
66
62
67
63
start ( 'Validate differences between proposal and main branch.' )
68
64
You can’t perform that action at this time.
0 commit comments