22 lines
462 B
YAML
22 lines
462 B
YAML
|
name: PR Labeler
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
types: [opened, edited, synchronize]
|
||
|
|
||
|
jobs:
|
||
|
label:
|
||
|
permissions:
|
||
|
contents: read
|
||
|
pull-requests: write
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v4
|
||
|
|
||
|
- name: Label PR based on title or file changes
|
||
|
uses: actions/labeler@v5
|
||
|
with:
|
||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
configuration-path: .github/labeler.yml
|