forked from kgateway-dev/kgateway
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.39 KB
/
Copy pathlabeler.yaml
File metadata and controls
37 lines (33 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow parses the PR description to extract the change type and changelog for release notes.
name: Labeler
on:
pull_request_target:
types: [opened, edited, reopened, synchronize]
merge_group:
types: [checks_requested]
permissions:
issues: write
pull-requests: write
contents: read
jobs:
labeler:
runs-on: ubuntu-latest
steps:
# only run this step on PRs, not in the merge queue (we need to explicitly add the merge queue logic because making this check required
# causes it to get run in the merge queue as well)
- name: Conditional skip for merge queue
if: github.event_name == 'merge_group'
run: |
echo "Skipping check in merge queue"
exit 0
- if: github.event_name != 'merge_group'
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Sync /kind labels & enforce changelog fields
if: github.event_name != 'merge_group'
uses: kgateway-dev/pr-kind-labeler@7df01fd3b367aa68271aad255db94693e8f63f68 # untagged main
with:
# Github Actions cannot trigger Github Actions, but with this
# Personal Access Token we can make labels that trigger
# check-labels.yaml. Test this by editing your PR's description to
# have no kind and then editing it again to have a kind.
token: ${{ secrets.KGATEWAY_CI_TOKEN }}