This is an automated email from the ASF dual-hosted git repository.
jgemignani pushed a commit to branch PG13
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/PG13 by this push:
new 6bd2a4aa [CI] Update labeler github action (#1851) (#1861)
6bd2a4aa is described below
commit 6bd2a4aa176b39fce640a67a66693d49e1100fdf
Author: Muhammad Taha Naveed <[email protected]>
AuthorDate: Wed Jul 10 04:51:13 2024 +0500
[CI] Update labeler github action (#1851) (#1861)
- 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
+ });