diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-01-04 17:08:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-01-04 17:08:10 +0100 |
commit | dad0dc8d8681c1aa745d8cf4728bbb6429431e3b (patch) | |
tree | 29de08ac26439fa8fd3bc574808862d3eef0788d /.github | |
parent | d3c4fdb8ffdc8845c7da54a5580758a33934dc6f (diff) | |
download | hugo-dad0dc8d8681c1aa745d8cf4728bbb6429431e3b.tar.gz hugo-dad0dc8d8681c1aa745d8cf4728bbb6429431e3b.zip |
github: Add add stale GitHub action
Diffstat (limited to '.github')
-rw-r--r-- | .github/stale.yml | 23 | ||||
-rw-r--r-- | .github/workflows/stale.yml | 33 |
2 files changed, 33 insertions, 23 deletions
diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 70887789d..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 90 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 30 -# Issues with these labels will never be considered stale -exemptLabels: - - Keep - - Security -# Label to use when marking an issue as stale -staleLabel: Stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. The resources of the Hugo team are limited, and so we are asking for your help. - - If this is a **bug** and you can still reproduce this error on the <code>master</code> branch, please reply with all of the information you have about it in order to keep the issue open. - - If this is a **feature request**, and you feel that it is still relevant and valuable, please tell us why. - - This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions. - -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..a2bbacb79 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,33 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@04a1828bc18ada028d85a0252a47cd2963a91abe + with: + days-before-issue-stale: 120 + days-before-pr-stale: 90 + days-before-issue-close: -1 + days-before-pr-close: -1 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. The resources of the Hugo team are limited, and so we are asking for your help. + + If this is a **bug** and you can still reproduce this error on the <code>master</code> branch, please reply with all of the information you have about it in order to keep the issue open. + + If this is a **feature request**, and you feel that it is still relevant and valuable, please tell us why. + + This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions. + stale-pr-message: This PR has been automatically marked as stale because it has not had + recent activity. The resources of the Hugo team are limited, and so we are asking for your help. + + Please check https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md#code-contribution and verify that this code contribution fits with the description. If yes, tell is in a comment. + + This PR will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions. + stale-issue-label: 'Stale' + exempt-issue-labels: 'Keep,Security' + stale-pr-label: 'Stale' + exempt-pr-labels: 'Keep,Security' |