From 8703e0b9b84f881f242e33f377a17cf2d66bde72 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Thu, 25 Mar 2021 10:40:05 -0400 Subject: [PATCH] Create label-bugs.yml --- .github/workflows/label-bugs.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/label-bugs.yml diff --git a/.github/workflows/label-bugs.yml b/.github/workflows/label-bugs.yml new file mode 100644 index 00000000..6bbb86e8 --- /dev/null +++ b/.github/workflows/label-bugs.yml @@ -0,0 +1,18 @@ +name: Label bugs + +on: + issues: + types: [opened] + +jobs: + add-labels: + runs-on: ubuntu-latest + if: contains(github.event.issue.body, 'New Trace collected:') == true + steps: + - name: Add labels + uses: actions-cool/issues-helper@v2.2.1 + with: + actions: 'add-labels' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + labels: 'bug'