This is an automated email from the ASF dual-hosted git repository.
jgemignani pushed a commit to branch PG15
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/PG15 by this push:
new 5d81bcff [CI] Update labeler github action (#1851) (#1863)
5d81bcff is described below
commit 5d81bcff127661f631523e63d1acafec4447ceb7
Author: Muhammad Taha Naveed <[email protected]>
AuthorDate: Wed Jul 10 04:49:23 2024 +0500
[CI] Update labeler github action (#1851) (#1863)
- This action will now add "override-stale" label to the PRs
that are by apache/age committers, this will prevent stale
action from touching these PRs.
---
.github/workflows/labeler.yml | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 22c21ebe..4234e358 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -9,4 +9,19 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- - uses: actions/[email protected]
\ No newline at end of file
+ - name: Apply branch labels
+ uses: actions/[email protected]
+
+ - name: Apply label based on author
+ if: |
+ contains('["jrgemignani", "dehowef", "eyab" "rafsun42", "Zainab-Saad",
"MuhammadTahaNaveed"]', github.event.pull_request.user.login)
+ uses: actions/github-script@v7
+ with:
+ script: |
+ const labelsToAdd = ['override-stale'];
+ github.rest.issues.addLabels({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ labels: labelsToAdd
+ });