-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also update README. Signed-off-by: Tomáš Hozza <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# common-stale-action | ||
Common stale action for all osbuild repositories. | ||
|
||
Common stale action for all osbuild repositories. This actions makes it easy to adjust stale settings for all osbuild repositories in one place. | ||
|
||
For now, only pull requests are checked. The action will: | ||
|
||
* Mark pull requests as stale if they have not been updated for 30 days by adding the `Stale` label. | ||
* Remove the `Stale` label if a pull request is updated. | ||
* Close pull requests that have been stale for 7 days. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Close stale PRs" | ||
description: "Common stale PRs action for all osbuild repositories" | ||
|
||
inputs: | ||
token: | ||
description: "A GitHub token for marking stale PRs and closing them" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
repo-token: "${{ inputs.TOKEN }}" | ||
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days.' | ||
close-pr-message: 'This PR was closed because it has been stalled for 30+7 days with no activity.' | ||
days-before-stale: 30 | ||
days-before-close: 7 | ||
# Do not touch any issues | ||
days-before-issue-stale: -1 | ||
days-before-issue-close: -1 |