workflows: Change not_on_github label to "not on github"

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-06-27 12:55:06 -04:00
parent 8bce892434
commit 7266882201
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# Close issues marked as not_on_github # Close issues marked as "not on github"
name: "Close issues marked as not_on_github" name: "Close issues marked as 'not on github'"
on: on:
schedule: schedule:
- cron: '0 */6 * * *' - cron: '0 */6 * * *'
@ -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: 'not_on_github', labels: 'not on github',
per_page: 100, per_page: 100,
page: 1 page: 1
}); });

View File

@ -1,5 +1,5 @@
# Add a comment to github issues marked with the not_on_github label # Add a comment to github issues marked with the "not on github" label
name: "Add comment to issues marked not_on_github" 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 != "not_on_github") 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)."