Avoid conflicts with user-defined filters with default order #6933
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Issue management - remove labels as needed | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| jobs: | |
| issue_comment: | |
| permissions: | |
| contents: read | |
| issues: write | |
| if: > | |
| contains(github.event.issue.labels.*.name, 'needs author feedback') && | |
| github.event.comment.user.login == github.event.issue.user.login | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Remove labels | |
| env: | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh issue edit --remove-label "needs author feedback" $ISSUE_NUMBER | |
| gh issue edit --remove-label "stale" $ISSUE_NUMBER |