Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2023 08:54:27 GMT
From:      Lorenzo Salvadore <salvadore@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: 305a28b214 - main - GitHub Actions: Add a labeler action
Message-ID:  <202303150854.32F8sRYZ085420@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by salvadore:

URL: https://cgit.FreeBSD.org/doc/commit/?id=305a28b2147299f83c3244342e90e526bb2c9394

commit 305a28b2147299f83c3244342e90e526bb2c9394
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2023-03-08 11:23:02 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2023-03-15 08:51:16 +0000

    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
---
 .github/conf/label-pull-requests.yml      |  2 ++
 .github/workflows/label-pull-requests.yml | 15 +++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/.github/conf/label-pull-requests.yml b/.github/conf/label-pull-requests.yml
new file mode 100644
index 0000000000..423bb34edc
--- /dev/null
+++ b/.github/conf/label-pull-requests.yml
@@ -0,0 +1,2 @@
+status report:
+- website/content/en/status/**
diff --git a/.github/workflows/label-pull-requests.yml b/.github/workflows/label-pull-requests.yml
new file mode 100644
index 0000000000..49b16db0dd
--- /dev/null
+++ b/.github/workflows/label-pull-requests.yml
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303150854.32F8sRYZ085420>