mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11990667732
This commit is contained in:
commit
3e9a96b43a
@ -16,9 +16,18 @@ jobs:
|
|||||||
github-token: ${{ github.token }}
|
github-token: ${{ github.token }}
|
||||||
script: |
|
script: |
|
||||||
const [owner, repo] = context.payload.repository.full_name.split('/');
|
const [owner, repo] = context.payload.repository.full_name.split('/');
|
||||||
|
try {
|
||||||
await github.rest.issues.removeLabel({
|
await github.rest.issues.removeLabel({
|
||||||
owner: owner,
|
owner: owner,
|
||||||
repo: repo,
|
repo: repo,
|
||||||
issue_number: context.payload.number,
|
issue_number: context.payload.number,
|
||||||
name: "Status: Waiting on Author",
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user