Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

53 lines
2.7 KiB

  1. ---
  2. name: 'Close stale issues and PRs'
  3. on: # yamllint disable-line rule:truthy
  4. # Use this to do a dry run from a pull request
  5. # pull_request:
  6. schedule:
  7. - cron: '30 1 * * *'
  8. permissions:
  9. issues: write
  10. pull-requests: write
  11. jobs:
  12. stale:
  13. if: github.repository == 'spantaleev/matrix-docker-ansible-deploy'
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/stale@v9
  17. with:
  18. ######################################################################
  19. # Issues/PRs
  20. ######################################################################
  21. exempt-assignees: 'spantaleev,aine-etke'
  22. operations-per-run: 100
  23. # An allow-list of label(s) to only process the issues/PRs which contain one of these label(s).
  24. any-of-labels: 'needs-info'
  25. # Use this to do a dry run from a pull request
  26. # debug-only: true
  27. ######################################################################
  28. # Issues
  29. ######################################################################
  30. stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
  31. close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity. If this issue is still reproduced, feel free to provide the issue with up-to-date information.'
  32. stale-issue-label: 'stale'
  33. # Add this label to exempt the issue from being marked as stale due to inactivity
  34. exempt-issue-labels: 'confirmed'
  35. # An allow-list of label(s) to only process the issues which contain one of these label(s).
  36. any-of-issue-labels: 'question'
  37. ######################################################################
  38. # PRs
  39. ######################################################################
  40. days-before-pr-stale: '365'
  41. days-before-pr-close: '30'
  42. stale-pr-message: 'This PR is stale because it has been open a year with no activity. Remove stale label or this will be closed in 30 days.'
  43. close-pr-message: 'This PR was closed because it has been stalled for 30 days with no activity.'
  44. stale-pr-label: 'stale'
  45. # Add this label to exempt the PR from being marked as stale due to inactivity
  46. exempt-pr-labels: 'confirmed'
  47. # An allow-list of label(s) to only process the PRs which contain one of these label(s).
  48. any-of-pr-labels: 'needs-rebase'
  49. # Use this to ignore updates such as comments (only to keep the PR alive by bumping)
  50. ignore-pr-updates: true