Skip to content

Commit

Permalink
[CI] Update labeler github action (apache#1851) (apache#1859)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
MuhammadTahaNaveed authored Jul 9, 2024
1 parent 2887623 commit c4f7290
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,19 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- 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
});

0 comments on commit c4f7290

Please sign in to comment.