Skip to content

Commit

Permalink
Merge pull request #550 from 0xPolygonID/PID-1522-github-action-in-pu…
Browse files Browse the repository at this point in the history
…blic-repos-to-automatically-close-open-issues-without-activity

chore: Automatically close state issues after 30 days of inactivity.
  • Loading branch information
x1m3 authored Nov 22, 2023
2 parents 1c17199 + 86990ec commit 34bda02
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/autoclose_stale_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '00 05 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
exempt-issue-labels: "enhancement"
stale-issue-message: 'This issue is stale because it has been open 20 days with no activity. Remove stale label, add the enhancement label or comment to avoid closing it in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 10 days with no activity.'
days-before-stale: 20
days-before-close: 10
days-before-pr-stale: -1
days-before-pr-close: -1

0 comments on commit 34bda02

Please sign in to comment.