Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove waiting-on-answer label on comments #3046

Merged
merged 2 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/remove-waiting-on-answer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Remove waiting-on-answer label after new comments

permissions:
issues: write
pull-requests: write

on:
issue_comment:
types: [created]

jobs:
commented:
name: On comment
if: |
contains(github.event.issue.labels.*.name, 'waiting-on-answer') && !contains(github.event.issue.labels.*.name, 'stale') &&
github.event.comment.author_association != 'OWNER' && github.event.comment.author_association != 'MEMBER' &&
github.event.comment.author_association != 'COLLABORATOR' && github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
- name: Remove waiting-on-answer label
run: gh issue edit $NUMBER --remove-label "waiting-on-answer"
env:
NUMBER: ${{ github.event.issue.number }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Close stale issues and PRs

permissions:
issues: write
pull-requests: write

on:
schedule:
Expand All @@ -13,10 +14,10 @@ jobs:
steps:
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
with:
# For issues: post a "warning" message after 30 days, then close if another 30 days pass without a response. In another workflow, issues closed for 30 days will be locked.
stale-issue-message: "Hi there! 👋 We haven't heard from you in 30 days and would like to know if the problem has been resolved or if you still need help. If we don't hear from you before then, I'll auto-close this issue in 30 days."
close-issue-message: "I'm closing this issue because we haven't heard back in 60 days. ⌛️ If you still need help, feel free to comment or reopen the issue!"
days-before-issue-stale: 30
# For issues: post a "warning" message after 15 days, then close if another 30 days pass without a response. In another workflow, issues closed for 30 days will be locked.
stale-issue-message: "Hi there! 👋 We haven't heard from you in 15 days and would like to know if the problem has been resolved or if you still need help. If we don't hear from you before then, I'll auto-close this issue in 30 days."
close-issue-message: "I'm closing this issue because we haven't heard back in 45 days. ⌛️ If you still need help, feel free to comment or reopen the issue!"
days-before-issue-stale: 15
days-before-issue-close: 30
stale-issue-label: stale
only-issue-labels: waiting-on-answer
Expand Down