workflows: Rename the "invalid" label to "not_on_github"
Use a more appropriate label name. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0c3d8f810f
commit
8bce892434
|
@ -1,10 +1,10 @@
|
||||||
# Close issues marked as invalid
|
# Close issues marked as not_on_github
|
||||||
name: "Close issues marked as invalid"
|
name: "Close issues marked as not_on_github"
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 */6 * * *'
|
- cron: '0 */6 * * *'
|
||||||
jobs:
|
jobs:
|
||||||
close_invalid:
|
close_issues:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v3
|
- uses: actions/github-script@v3
|
||||||
|
@ -14,7 +14,7 @@ jobs:
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
state: 'open',
|
state: 'open',
|
||||||
labels: 'invalid',
|
labels: 'not_on_github',
|
||||||
per_page: 100,
|
per_page: 100,
|
||||||
page: 1
|
page: 1
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Add a comment to github issues marked with the invalid label
|
# Add a comment to github issues marked with the not_on_github label
|
||||||
name: "Add comment to issues marked invalid"
|
name: "Add comment to issues marked not_on_github"
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [labeled]
|
types: [labeled]
|
||||||
|
@ -11,7 +11,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
if (context.payload.label.name != "invalid")
|
if (context.payload.label.name != "not_on_github")
|
||||||
return;
|
return;
|
||||||
msg = "It looks like this ticket is a request for help"
|
msg = "It looks like this ticket is a request for help"
|
||||||
+ " (or similar)."
|
+ " (or similar)."
|
||||||
|
|
Loading…
Reference in New Issue