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: close issues with no user response #1804

Merged
merged 12 commits into from
Feb 6, 2024
25 changes: 25 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Daily Maintenance"
on:
schedule:
- cron: "0 0 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 21
days-before-issue-close: 7
stale-issue-label: "stale"
stale-issue-message: "This issue has been marked that it requires additional information or answers to open questions to be able to get resolved. However, there hasn't been any response within the last 3 weeks.\n If this issue still resists, please provide the requested information. This issue will be automatically closed in one week if there is no response."
josxha marked this conversation as resolved.
Show resolved Hide resolved
#close-issue-message: "This issue was closed because it has been inactive another week since being marked as stale."
josxha marked this conversation as resolved.
Show resolved Hide resolved
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true
any-of-labels: "waiting for user response"
labels-to-remove-when-unstale: "waiting for user response,stale"
repo-token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/issue-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Issue Comment"
on:
issue_comment:
types: [ created ]

jobs:
remove-label:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Remove `waiting for user response` label if exists
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: ["waiting for user response"]
});
Loading