Skip to content

Commit

Permalink
feat(idle): support comments on staling or closing issue/pr (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Thomas Smith <[email protected]>
Co-authored-by: Claas Augner <[email protected]>
  • Loading branch information
3 people authored Oct 12, 2023
1 parent 9cfa56d commit 5f5c31e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/idle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ on:
default: 30
required: false
type: number
close-issue-message:
description: Comment to add when a stale issue is closed.
required: false
type: string
stale-issue-message:
description: Comment to add when an issue becomes stale.
required: false
type: string
close-pr-message:
description: Comment to add when a stale PR is closed.
required: false
type: string
stale-pr-message:
description: Comment to add when a PR becomes stale.
required: false
type: string

jobs:
idle:
Expand All @@ -34,6 +50,10 @@ jobs:
days-before-close: ${{ inputs.days-before-close }}
stale-issue-label: ${{ inputs.label }}
stale-pr-label: ${{ inputs.label }}
close-issue-message: ${{ inputs.close-issue-message }}
stale-issue-message: ${{ inputs.stale-issue-message }}
close-pr-message: ${{ inputs.close-pr-message }}
stale-pr-message: ${{ inputs.stale-pr-message }}
enable-statistics: true
ascending: true # oldest first, for now
operations-per-run: 300

0 comments on commit 5f5c31e

Please sign in to comment.