Skip to content

Commit

Permalink
chore: add support GHA to clean inactive PRs and issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zzorica committed Mar 12, 2024
1 parent b797b7e commit 5d4f63d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
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 }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update Version Badge
name: '[Support] Update Version Badge'

on:
workflow_dispatch:
Expand Down

0 comments on commit 5d4f63d

Please sign in to comment.