From d10625a4879f88299208b96ea522e2fd25d59cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Henrique=20Guard=C3=A3o=20Gandarez?= Date: Fri, 5 Mar 2021 20:52:49 -0300 Subject: [PATCH] apply label on new issues --- .github/workflows/on_open_issue.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/on_open_issue.yml diff --git a/.github/workflows/on_open_issue.yml b/.github/workflows/on_open_issue.yml new file mode 100644 index 00000000..0d8a68e0 --- /dev/null +++ b/.github/workflows/on_open_issue.yml @@ -0,0 +1,28 @@ +on: + issues: + types: [opened] + +jobs: + issue-triage: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['triage'] + }) + - uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '👋 Thanks for reporting!' + })