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