34 lines
830 B
YAML
34 lines
830 B
YAML
name: Pull Request Labeler
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
permissions:
|
|
contents: read
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
label:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out base branch
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.base.ref }}
|
|
persist-credentials: false
|
|
|
|
- name: Apply computed labels
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const labelPullRequest = require("./.github/scripts/pr-labeler.js");
|
|
await labelPullRequest({ github, context, core });
|
|
|
|
- name: Apply path labels
|
|
uses: actions/labeler@v6
|
|
with:
|
|
configuration-path: .github/labeler.yml
|
|
sync-labels: true
|