diff options
author | Zoltan Flamis <zoltan@innocraft.com> | 2021-04-16 06:44:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 06:44:56 +0300 |
commit | be413452a0fe39f76b8c8c29ffb3f7590e1debdc (patch) | |
tree | f4e660cecb910f10b34b09bff4818fcf1439aeee /.github | |
parent | a5fd50b31daaf3b1e8a1659c9012bda86ce70429 (diff) |
add a new stale action (#17404)
* update stale pr message
* add a new action for long staled prs
* only debug mode
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/follow-up-reviews.yml | 8 | ||||
-rw-r--r-- | .github/workflows/inactive-prs-closing-message.yaml | 20 | ||||
-rw-r--r-- | .github/workflows/inactive-prs.yaml | 11 |
3 files changed, 29 insertions, 10 deletions
diff --git a/.github/workflows/follow-up-reviews.yml b/.github/workflows/follow-up-reviews.yml index 6413bad191..519ea0e73a 100644 --- a/.github/workflows/follow-up-reviews.yml +++ b/.github/workflows/follow-up-reviews.yml @@ -10,11 +10,11 @@ jobs: - uses: actions/stale@v3 with: debug-only: true - start-date: '2021-03-01T00:00:00Z' + start-date: 2021-03-01T00:00:00Z days-before-pr-stale: 7 days-before-pr-close: -1 - only-pr-labels: 'Needs Review' + only-pr-labels: Needs Review days-before-issue-stale: -1 days-before-issue-close: -1 - stale-pr-message: 'This issue is in "needs review" but there has been no activity for 7 days. ping @tsteur @sgiehl @diosmosis @flamisz' - stale-pr-label: 'Stale' + stale-pr-message: This issue is in "needs review" but there has been no activity for 7 days. ping @tsteur @sgiehl @diosmosis @flamisz + stale-pr-label: Stale diff --git a/.github/workflows/inactive-prs-closing-message.yaml b/.github/workflows/inactive-prs-closing-message.yaml new file mode 100644 index 0000000000..2baa1710cb --- /dev/null +++ b/.github/workflows/inactive-prs-closing-message.yaml @@ -0,0 +1,20 @@ +name: 'Handle inactive PRs - closing message' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + debug-only: true + start-date: 2021-03-01T00:00:00Z + days-before-pr-stale: 42 + days-before-pr-close: -1 + days-before-issue-stale: -1 + days-before-issue-close: -1 + exempt-pr-labels: Do not close + stale-pr-message: This PR was last updated more than one month ago, maybe it's time to close it. Please check if there is anything we still can do or close this PR. ping @tsteur @sgiehl @diosmosis @flamisz + stale-pr-label: Stale for long diff --git a/.github/workflows/inactive-prs.yaml b/.github/workflows/inactive-prs.yaml index 456ddeac90..83045c7f81 100644 --- a/.github/workflows/inactive-prs.yaml +++ b/.github/workflows/inactive-prs.yaml @@ -10,12 +10,11 @@ jobs: - uses: actions/stale@v3 with: debug-only: true - start-date: '2021-03-01T00:00:00Z' + start-date: 2021-03-01T00:00:00Z days-before-pr-stale: 14 - days-before-pr-close: 42 + days-before-pr-close: -1 days-before-issue-stale: -1 days-before-issue-close: -1 - exempt-pr-labels: 'Do not close' - stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.' - stale-pr-label: 'Stale' - close-pr-message: 'Thank you for this proposed pull request. Because it was last updated more than one month ago, it is our policy to close pull requests opened for a long time without updates. If you would like to continue work on the pull request, please simply ping us to have it re-opened (after you have pushed a new commit). We hope you understand this and we look forward to seeing an update from you on this pull request or another one! Thanks.' + exempt-pr-labels: Do not close + stale-pr-message: If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'. + stale-pr-label: Stale |