Skip to content

Planner: Precondition duration set to 168 h #1737

Planner: Precondition duration set to 168 h

Planner: Precondition duration set to 168 h #1737

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;
}