Skip to content

Commit

Permalink
Merge pull request #1728 from praw-dev/stale
Browse files Browse the repository at this point in the history
Finalize workflow
  • Loading branch information
LilSpazJoekp committed May 21, 2021
2 parents 33f4da7 + 9c8f3db commit 8927b58
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/stale-action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
name: 'Close stale issues and PRs'
on:
workflow_dispatch:
inputs:
dry-run:
description: 'Dry run'
default: 'true'
required: true
env:
stale-close-label: 'Auto-closed - Stale'
days-before-stale: 20
Expand All @@ -17,18 +9,15 @@ jobs:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

debug-only: ${{ env.dry-run }}
enable-statistics: true

days-before-close: ${{ env.days-before-close }}
days-before-stale: ${{ env.days-before-stale }}

stale-issue-message: 'This issue is stale because it has been open for ${{ env.days-before-stale }} days with no activity. Remove the Stale label or comment or this will be closed in ${{ env.days-before-close }} days.'
stale-pr-message: 'This PR is stale because it has been open for ${{ env.days-before-stale }} days with no activity. Remove the Stale label or comment or this will be closed in ${{ env.days-before-close }} days.'

close-issue-message: 'This issue was closed because it has been stale for ${{ env.days-before-close }} days with no activity.'
close-pr-message: 'This PR was closed because it has been stale for ${{ env.days-before-close }} days with no activity.'

close-issue-label: ${{ env.stale-close-label }}
close-pr-label: ${{ env.stale-close-label }}
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 */6 * * *'

0 comments on commit 8927b58

Please sign in to comment.