mirror of
https://git.FreeBSD.org/doc.git
synced 2026-09-09 00:07:23 +08:00
GitHub Actions: Add a labeler action
Use the following GitHub action to automatically label pull requests based on the paths of the modified files: https://github.com/marketplace/actions/labeler Use it to label pull requests introducing new status reports with the 'status report' label. Approved by: uqs (github-automation), dbaio (doceng) Pull Request: https://github.com/freebsd/freebsd-doc/pull/121
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
status report:
|
||||||
|
- website/content/en/status/**
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
name: "Label pull requests"
|
||||||
|
on: [pull_request_target]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
label-pull-requests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v4
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
configuration-path: ".github/conf/label-pull-requests.yml"
|
||||||
Reference in New Issue
Block a user