Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
monthly:
- base-branch: ["monthly"]

stable:
- base-branch: ["stable"]
26 changes: 26 additions & 0 deletions .github/workflows/add-pr-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Reference: https://github.com/actions/labeler
name: PR labels

on:
pull_request_target:

jobs:
synchronize-labels:
permissions:
contents: read
pull-requests: write
issues: write
runs-on: ubuntu-latest
steps:
- id: label-the-PR
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # 6.0.1
with:
sync-labels: true

- id: print-labels
env:
NEW_LABELS: ${{ steps.label-the-PR.outputs.new-labels }}
ALL_LABELS: ${{ steps.label-the-PR.outputs.all-labels }}
run: |
echo "New labels: $NEW_LABELS"
echo "All labels: $ALL_LABELS"