mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Update auto_labeler.yml (#3396)
This commit is contained in:
parent
3d1e6eab00
commit
d1b7f836db
7
.github/workflows/auto_labeler.yml
vendored
7
.github/workflows/auto_labeler.yml
vendored
@ -13,9 +13,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
|
const is_status_label = (label) => label.name.startsWith('Status: ');
|
||||||
|
if (context.payload.issue.labels.some(is_status_label)) {
|
||||||
|
console.log('Issue already has Status label, skipping...');
|
||||||
|
return;
|
||||||
|
}
|
||||||
github.issues.addLabels({
|
github.issues.addLabels({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
labels: ['Status: Needs Triage']
|
labels: ['Status: Needs Triage']
|
||||||
})
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user