stale.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright Broadcom, Inc. All Rights Reserved.
  2. # SPDX-License-Identifier: APACHE-2.0
  3. # NOTE: This workflow is maintained in the https://github.com/bitnami/support repository
  4. name: '[Support] Close stale issues and PRs'
  5. on:
  6. workflow_dispatch:
  7. schedule:
  8. - cron: '0 1 * * *'
  9. # Remove all permissions by default
  10. permissions: {}
  11. # This job won't trigger any additional event. All actions are performed with GITHUB_TOKEN
  12. jobs:
  13. stale:
  14. runs-on: ubuntu-latest
  15. if: ${{ github.repository_owner == 'bitnami' }}
  16. permissions:
  17. issues: write
  18. pull-requests: write
  19. steps:
  20. # This step will add the stale comment and label for the first 15 days without activity. It won't close any task
  21. - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f
  22. with:
  23. repo-token: ${{ secrets.GITHUB_TOKEN }}
  24. stale-issue-message: 'This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.'
  25. stale-pr-message: 'This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.'
  26. days-before-stale: 15
  27. days-before-close: -1
  28. exempt-issue-labels: 'on-hold'
  29. exempt-pr-labels: 'on-hold'
  30. operations-per-run: 500
  31. # This step will add the 'solved' label and the last comment before closing the issue or PR. Note that it won't close any issue or PR, they will be closed by the clossing-issues workflow
  32. - uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f
  33. with:
  34. repo-token: ${{ secrets.GITHUB_TOKEN }}
  35. stale-issue-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.'
  36. stale-pr-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.'
  37. any-of-labels: 'stale'
  38. stale-issue-label: 'solved'
  39. stale-pr-label: 'solved'
  40. days-before-stale: 5
  41. days-before-close: -1
  42. exempt-issue-labels: 'on-hold'
  43. exempt-pr-labels: 'on-hold'
  44. operations-per-run: 200