stale.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # https://github.com/actions/stale
  16. name: 'Close stale issues and PRs'
  17. on:
  18. schedule:
  19. - cron: '0 0 * * *'
  20. permissions:
  21. # Stale recommended permissions
  22. pull-requests: write
  23. issues: write
  24. jobs:
  25. stale:
  26. runs-on: ubuntu-latest
  27. steps:
  28. - uses: actions/stale@v4
  29. with:
  30. # Stale Issues
  31. days-before-issue-stale: 30
  32. days-before-issue-close: 7
  33. # We do not stale Issues with label `Waiting for reply`, `feature` and `DSIP`
  34. exempt-issue-labels: 'Waiting for reply,feature,DSIP,security,roadmap'
  35. stale-issue-message: >
  36. This issue has been automatically marked as stale because it has not had recent activity
  37. for 30 days. It will be closed in next 7 days if no further activity occurs.
  38. close-issue-message: >
  39. This issue has been closed because it has not received response for too long time. You could
  40. reopen it if you encountered similar problems in the future.
  41. # Stale PRs
  42. days-before-pr-stale: 120
  43. days-before-pr-close: 7
  44. stale-pr-message: >
  45. This pull request has been automatically marked as stale because it has not had recent
  46. activity for 120 days. It will be closed in 7 days if no further activity occurs.
  47. close-pr-message: >
  48. This pull request has been closed because it has not had recent activity. You could reopen it
  49. if you try to continue your work, and anyone who are interested in it are encouraged to continue
  50. work on this pull request.