Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(idle): support comments on staling or closing issue/pr #75

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-meesage:
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
description: The comment message will be added to the issues when closing it automatically.
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
required: false
type: string
stale-issue-message:
description: The comment message will be added to the issue when staling it automatically.
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
required: false
type: string
close-pr-message:
description: The comment message will be added to the PR when closing it automatically.
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
required: false
type: string
stale-pr-message:
description: The comment message will be added to the PR when staling it automatically.
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
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-meesage: ${{ inputs.close-issue-meesage }}
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
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