1
0
mirror of https://git.FreeBSD.org/doc.git synced 2026-06-02 11:25:20 +00: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:
Lorenzo Salvadore
2023-03-08 12:23:02 +01:00
parent b605cbbc4d
commit 305a28b214
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
status report:
- website/content/en/status/**
+15
View File
@@ -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"