2022-02-05 22:10:12 +00:00
|
|
|
name: Issue labels
|
|
|
|
|
2022-01-20 23:09:34 +00:00
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types: [labeled]
|
|
|
|
|
|
|
|
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:
|
|
|
|
- name: notify
|
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"
|