OCA reporting engine fork for dev and update.
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.

69 lines
2.7 KiB

  1. name: Mark stale issues and pull requests
  2. on:
  3. schedule:
  4. - cron: "0 12 * * 0"
  5. jobs:
  6. stale:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Stale PRs and issues policy
  10. uses: actions/stale@v4
  11. with:
  12. repo-token: ${{ secrets.GITHUB_TOKEN }}
  13. # General settings.
  14. ascending: true
  15. remove-stale-when-updated: true
  16. # Pull Requests settings.
  17. # 120+30 day stale policy for PRs
  18. # * Except PRs marked as "no stale"
  19. days-before-pr-stale: 120
  20. days-before-pr-close: 30
  21. exempt-pr-labels: "no stale"
  22. stale-pr-label: "stale"
  23. stale-pr-message: >
  24. There hasn't been any activity on this pull request in the past 4 months, so
  25. it has been marked as stale and it will be closed automatically if no
  26. further activity occurs in the next 30 days.
  27. If you want this PR to never become stale, please ask a PSC member to apply
  28. the "no stale" label.
  29. # Issues settings.
  30. # 180+30 day stale policy for open issues
  31. # * Except Issues marked as "no stale"
  32. days-before-issue-stale: 180
  33. days-before-issue-close: 30
  34. exempt-issue-labels: "no stale,needs more information"
  35. stale-issue-label: "stale"
  36. stale-issue-message: >
  37. There hasn't been any activity on this issue in the past 6 months, so it has
  38. been marked as stale and it will be closed automatically if no further
  39. activity occurs in the next 30 days.
  40. If you want this issue to never become stale, please ask a PSC member to
  41. apply the "no stale" label.
  42. # 15+30 day stale policy for issues pending more information
  43. # * Issues that are pending more information
  44. # * Except Issues marked as "no stale"
  45. - name: Needs more information stale issues policy
  46. uses: actions/stale@v4
  47. with:
  48. repo-token: ${{ secrets.GITHUB_TOKEN }}
  49. ascending: true
  50. only-labels: "needs more information"
  51. exempt-issue-labels: "no stale"
  52. days-before-stale: 15
  53. days-before-close: 30
  54. days-before-pr-stale: -1
  55. days-before-pr-close: -1
  56. remove-stale-when-updated: true
  57. stale-issue-label: "stale"
  58. stale-issue-message: >
  59. This issue needs more information and there hasn't been any activity
  60. recently, so it has been marked as stale and it will be closed automatically
  61. if no further activity occurs in the next 30 days.
  62. If you think this is a mistake, please ask a PSC member to remove the "needs
  63. more information" label.