chihsuan commented on code in PR #10851:
URL: https://github.com/apache/ozone/pull/10851#discussion_r3831412765
##########
.github/workflows/label-pr.yml:
##########
@@ -51,3 +53,31 @@ jobs:
BRANCH: ${{ matrix.branch }}
LABEL: ${{ matrix.label }}
GH_TOKEN: ${{ github.token }}
+
+ component-labeler:
+ permissions:
+ contents: read
+ pull-requests: write
+ runs-on: ubuntu-slim
+ steps:
+ - name: "Checkout project" # provides .github/labeler.yml for the
labeler action
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1
+ with:
+ persist-credentials: false
+ sparse-checkout: |
+ .github
+ - name: "List open PRs"
+ id: prs
+ run: |
+ {
+ echo 'numbers<<EOF'
+ gh pr list --repo "$GITHUB_REPOSITORY" --state open --limit 1000
--json number --jq '.[].number'
+ echo 'EOF'
+ } >> "$GITHUB_OUTPUT"
+ env:
+ GH_TOKEN: ${{ github.token }}
+ - name: "Apply component labels"
+ uses: actions/labeler@b8dd2d9be0f68b860e7dae5dae7d772984eacd6d # v6.2.0
+ with:
+ pr-number: ${{ steps.prs.outputs.numbers }}
+ sync-labels: true
Review Comment:
Good point! I changed this to add-only so that manually applied labels are
preserved, and I removed the ineffective EC path rule.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]