mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 18:09:57 +00:00
Add stable check for issues and PRs. (#219)
Signed-off-by: xuezhaojun <zxue@redhat.com>
This commit is contained in:
16
.github/workflows/stable.yaml
vendored
Normal file
16
.github/workflows/stable.yaml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: 'Close stale issues and PRs'
|
||||
on:
|
||||
schedule:
|
||||
- cron: '30 1 * * *' # Runs at 1:30am every day
|
||||
|
||||
# `stable` label will be added to issues and PRs that have been inactive for 60 days
|
||||
# Close stale issues and PRs after 7 days of inactivity
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v8
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: 'Message to comment on stale issues. If none provided, will not mark issues stale'
|
||||
stale-pr-message: 'Message to comment on stale PRs. If none provided, will not mark PRs stale'
|
||||
Reference in New Issue
Block a user