From f7c7d410e7d3ebe38b725c0e766a5f9e3f1313d7 Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Fri, 12 May 2023 11:18:08 -0400 Subject: [PATCH] Add workflow. --- .../workflows/label-issue-pull-request.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/label-issue-pull-request.yml diff --git a/.github/workflows/label-issue-pull-request.yml b/.github/workflows/label-issue-pull-request.yml new file mode 100644 index 000000000..1f5ef1459 --- /dev/null +++ b/.github/workflows/label-issue-pull-request.yml @@ -0,0 +1,23 @@ +# Runs on creation of Pull Requests +# If the PR destination branch is master, add a needs-qa label +--- +name: Label Issue Pull Request + +on: + pull_request: + types: + - opened # Check when PR is opened + paths-ignore: + - .github/workflows/** # We don't need QA on workflow changes + branches: + - 'master' # We only want to check when PRs target master + +jobs: + add-needs-qa-label: + runs-on: ubuntu-latest + steps: + - name: Add label to pull request + uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 # 1.0.4 + if: ${{ !github.event.pull_request.head.repo.fork }} + with: + add-labels: "needs-qa" \ No newline at end of file