Skip to content

Commit

Permalink
Add workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
trmartin4 committed May 12, 2023
1 parent 8d3fe12 commit f7c7d41
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/label-issue-pull-request.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f7c7d41

Please sign in to comment.