ppkarwasz commented on code in PR #4323:
URL: https://github.com/apache/logging-log4j2/pull/4323#discussion_r4010425072
##########
.github/workflows/analyze-dependabot.yaml:
##########
@@ -26,6 +26,24 @@ permissions: { }
jobs:
+ # Dependency updates never need to be ported: Dependabot maintains every
branch on its own.
+ label-dependabot:
+ if: ${{
+ github.repository == 'apache/logging-log4j2'
+ && github.actor == 'dependabot[bot]'
+ && github.event.pull_request.user.login == 'dependabot[bot]'
+ }}
+ runs-on: ubuntu-slim
+ permissions:
+ # Add the `port-done` label
+ pull-requests: write
+ steps:
+ - name: Add `port-done` label
+ env:
+ GH_TOKEN: ${{ github.token }}
+ PR: ${{ github.event.pull_request.html_url }}
+ run: gh pr edit "$PR" --add-label port-done
Review Comment:
Good point! :100:
`github.token` can generate events only for `opened`, `synchronized` and
`reopened`. Fixed in
https://github.com/apache/logging-log4j2/pull/4323/commits/d279919cab82c53e90d4699925d64f730f8b3acb
--
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]