Skip to content

Commit

Permalink
Merge 'minor-next' into 'major-next'
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmp-restrictedactions-bot[bot] committed Nov 23, 2024
2 parents 9fce27e + 082119c commit 3e9a96b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/pr-remove-waiting-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,18 @@ jobs:
github-token: ${{ github.token }}
script: |
const [owner, repo] = context.payload.repository.full_name.split('/');
await github.rest.issues.removeLabel({
owner: owner,
repo: repo,
issue_number: context.payload.number,
name: "Status: Waiting on Author",
});
try {
await github.rest.issues.removeLabel({
owner: owner,
repo: repo,
issue_number: context.payload.number,
name: "Status: Waiting on Author",
});
} catch (error) {
if (error.status === 404) {
//probably label wasn't set on the issue
console.log('Failed to remove label (probably label isn\'t on the PR): ' + error.message);
} else {
throw error;
}
}

0 comments on commit 3e9a96b

Please sign in to comment.