Planner: Precondition duration set to 168 h #1737
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: Waiting Feedback | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| jobs: | |
| reset-label: | |
| name: Reset Waiting Label | |
| runs-on: ubuntu-latest | |
| # only when the opener replies | |
| if: github.event.comment.user.login == (github.event.issue.user.login || github.event.pull_request.user.login) | |
| steps: | |
| - uses: actions/github-script@v9.0.0 | |
| with: | |
| script: | | |
| const number = (context.payload.issue || context.payload.pull_request).number; | |
| try { | |
| await github.rest.issues.removeLabel({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: number, | |
| name: 'waiting for feedback', | |
| }); | |
| } catch (err) { | |
| // label not present | |
| if (err.status !== 404) throw err; | |
| } |