2022-02-05 22:10:12 +00:00
|
|
|
name: Issue labels
|
|
|
|
|
2022-01-20 23:09:34 +00:00
|
|
|
on:
|
|
|
|
issues:
|
2022-02-10 23:49:08 +00:00
|
|
|
types: [labeled, reopened, closed, deleted]
|
2022-01-20 23:09:34 +00:00
|
|
|
|
|
|
|
env:
|
2022-01-27 20:44:44 +00:00
|
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_ISSUES_WEBHOOK }}
|
2022-01-20 23:09:34 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
labelNotify:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
2022-02-10 23:49:08 +00:00
|
|
|
- name: notify on label
|
2022-01-27 20:44:44 +00:00
|
|
|
if: >
|
|
|
|
github.event.label.name == 'enhancement'
|
|
|
|
|| github.event.label.name == 'bug'
|
|
|
|
|| github.event.label.name == 'help wanted'
|
2022-01-27 20:47:03 +00:00
|
|
|
|| github.event.label.name == 'priority/high'
|
|
|
|
|| github.event.label.name == 'question'
|
|
|
|
|| github.event.label.name == 'status/waiting on upstream'
|
2022-01-20 23:09:34 +00:00
|
|
|
uses: Ilshidur/action-discord@master
|
|
|
|
with:
|
2022-01-30 04:09:18 +00:00
|
|
|
args: "[${{ github.event.issue.title }} (#${{ github.event.issue.number }})](<${{ github.event.issue.html_url }}>) added `${{ github.event.label.name }}` label"
|
2022-02-10 23:49:08 +00:00
|
|
|
- name: notify on action change
|
|
|
|
if: >
|
|
|
|
github.event.action == 'closed'
|
|
|
|
|| github.event.action == 'reopened'
|
|
|
|
|| github.event.action == 'deleted'
|
|
|
|
uses: Ilshidur/action-discord@master
|
|
|
|
with:
|
|
|
|
args: "[${{ github.event.issue.title }} (#${{ github.event.issue.number }})](<${{ github.event.issue.html_url }}>) has been `${{ github.event.action }}` by `${{ github.event.sender.login }}`"
|