2023-02-27 19:19:24 +01:00
|
|
|
# Runs creation of Pull Requests
|
2023-12-12 20:57:50 +01:00
|
|
|
# If the PR destination branch is main, add a needs-qa label unless created by renovate[bot]
|
2023-02-27 19:19:24 +01:00
|
|
|
---
|
|
|
|
name: Label Issue Pull Request
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-05-09 16:23:16 +02:00
|
|
|
types:
|
|
|
|
- opened # Check when PR is opened
|
2023-02-27 19:19:24 +01:00
|
|
|
paths-ignore:
|
|
|
|
- .github/workflows/** # We don't need QA on workflow changes
|
|
|
|
branches:
|
2023-12-12 20:57:50 +01:00
|
|
|
- 'main' # We only want to check when PRs target main
|
2023-02-27 19:19:24 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
add-needs-qa-label:
|
|
|
|
runs-on: ubuntu-latest
|
2023-10-30 18:10:28 +01:00
|
|
|
if: ${{ github.actor != 'renovate[bot]' }}
|
2023-02-27 19:19:24 +01:00
|
|
|
steps:
|
|
|
|
- name: Add label to pull request
|
2023-05-09 11:44:05 +02:00
|
|
|
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 # 1.0.4
|
2023-02-27 19:19:24 +01:00
|
|
|
if: ${{ !github.event.pull_request.head.repo.fork }}
|
|
|
|
with:
|
|
|
|
add-labels: "needs-qa"
|