Skip to content

Commit

Permalink
chore: add cleanup gha for inactive issues and PRs (#191)
Browse files Browse the repository at this point in the history
Signed-off-by: Zoran Zorica <[email protected]>
  • Loading branch information
zzorica authored Mar 13, 2024
1 parent daed9ed commit 941db71
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/support_stale_and_close.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: '[Support] Stale-And-Close Inactive Issues And PRs'
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
# Remove all permissions by default. Actions are performed by Daytona Bot
permissions: {}

jobs:
stale:
runs-on: ubuntu-latest
steps:
# This step will add the stale comment and label for the first 15 days without activity. It won't close any task
- uses: actions/stale@v5
with:
stale-issue-message: 'This Issue has been automatically marked as "stale" because it has not had recent activity (for 14 days). It will be closed if no further activity occurs. Thanks for the feedback.'
stale-pr-message: 'This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 14 days). It will be closed if no further activity occurs. Thank you for your contribution.'
close-issue-message: 'Due to the lack of activity in the last 7 days since it was marked as "stale", we are closing this Issue. Do not hesitate to reopen it later if necessary.'
close-pr-message: 'Due to the lack of activity in the last 7 days since it was marked as "stale", we are closing this Pull Request. Do not hesitate to reopen it later if necessary.'
days-before-stale: 14
days-before-close: 7
exempt-issue-labels: 'on-hold'
exempt-pr-labels: 'on-hold'
operations-per-run: 100
repo-token: ${{ secrets.GITHUBBOT_TOKEN }}

0 comments on commit 941db71

Please sign in to comment.