Skip to content

Commit

Permalink
Add triage git action
Browse files Browse the repository at this point in the history
  • Loading branch information
srajiang committed Nov 18, 2021
1 parent 020c44f commit 7746a8f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/triage-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow uses the following github action to automate
# management of stale issues and prs in this repo:
# https://github.com/marketplace/actions/close-stale-issues

name: Close stale issues and PRs

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
days-before-issue-stale: 30
days-before-issue-close: 10
days-before-pr-stale: -1
days-before-pr-close: -1
stale-issue-label: auto-triage-stale
stale-issue-message: 👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out.
close-issue-message: As this issue has been inactive for more than one month, we will be closing it. Thanks again for writing in!
exempt-issue-labels: auto-triage-skip
exempt-all-milestones: true
remove-stale-when-updated: true
enable-statistics: true
debug-only: true # TODO: remove after test run

0 comments on commit 7746a8f

Please sign in to comment.