Skip to content

Commit

Permalink
Use GitHub Action to manage [stale] issues and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoo committed Dec 15, 2023
1 parent c2e64a6 commit 60d9336
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/close-inactive-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Close inactive issues and PRs
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
only-labels: "status: waiting-for-feedback"
days-before-stale: 7
days-before-close: 14
stale-issue-label: "status: stale"
stale-pr-label: "status: stale"
stale-issue-message: >
In order to proceed with this issue, please provide the requested information.
This issue will be closed within the next 2 weeks if the requested information is not provided.
close-issue-message: >
Closing due to lack of requested feedback.
In order to proceed with your issue, please provide the requested information and the issue will be re-opened.
stale-pr-message: >
In order to proceed with this pull request, please provide the requested information or make the requested changes.
This pull request will be closed within the next 2 weeks if the information is not provided or the requested changes are not made.
close-pr-message: >
Closing due to lack of requested feedback.
If you would like to proceed with your contribution, please provide the requested information or make the requested changes, and the pull request will be re-opened.
20 changes: 20 additions & 0 deletions .github/workflows/issue-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Label new issues
on:
issues:
types:
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["status: new"]
})

0 comments on commit 60d9336

Please sign in to comment.