Skip to content

Commit

Permalink
feat(workflows): close individual PRs when combined PR is merged (#1531)
Browse files Browse the repository at this point in the history
Adds `Closes` keyword before the successfully merged PR numbers so that GitHub automatically closes the individual PRs when the combined PR is merged.
  • Loading branch information
shubhamp-sf authored Jul 10, 2023
1 parent 098799b commit 14d2723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/combine-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
}
if (statusOK) {
console.log('Adding branch to array: ' + branch);
const prString = '#' + pull['number'] + ' ' + pull['title'];
const prString = 'Closes #' + pull['number'] + ' ' + pull['title'];
branchesAndPRStrings.push({ branch, prString });
baseBranch = pull['base']['ref'];
baseBranchSHA = pull['base']['sha'];
Expand Down

0 comments on commit 14d2723

Please sign in to comment.