Skip to content

Commit da767ab

Browse files
committed
Add stale GitHub action, as replacement for old stale GitHub integration
Previously we had the "stale bot" which posted reminders in inactive issues and PR's. The stale bot used now removed functionality of GitHub and it hasn't worked for about a year. This commit introduces the same functionality based on GitHub Actions. The action setup is grabbed from the QGIS project and adapted to the PROJ project. With the stale action in place, PR's and issues are marked "stale" after 60 days of inactivity. If 7 more days passes without any activity the issue or PR is closed.
1 parent 2504995 commit da767ab

File tree

2 files changed

+93
-18
lines changed

2 files changed

+93
-18
lines changed

.github/stale.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Handle stale issues
2+
on:
3+
schedule:
4+
- cron: "30 2 * * *"
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
stale:
11+
permissions:
12+
issues: write # for actions/stale to close stale issues
13+
pull-requests: write # for actions/stale to close stale PRs
14+
if: github.repository_owner == 'osgeo'
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/stale@v8
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
stale-pr-message: >
21+
The PROJ project highly values your contribution and would love to see
22+
this work merged!
23+
Unfortunately this PR has not had any activity in the last 14 days and
24+
is being automatically marked as "stale".
25+
If you think this pull request should be merged, please check
26+
27+
- that all unit tests are passing
28+
29+
- that all comments by reviewers have been addressed
30+
31+
- that there is enough information for reviewers, in particular
32+
33+
- link to any issues which this pull request fixes
34+
35+
- add a description of workflows which this pull request fixes
36+
37+
- add terminal output examples if applicable
38+
39+
- that you have written unit tests where possible
40+
41+
In case you should have any uncertainty, please leave a comment and we will
42+
be happy to help you proceed with this pull request.
43+
44+
If there is no further activity on this pull request, it will be closed in a
45+
week.
46+
47+
48+
close-pr-message: >
49+
While we hate to see this happen, this PR has been automatically closed because
50+
it has not had any activity in the last 2 months. If this pull request should be
51+
reconsidered, please follow the guidelines in the previous comment and reopen
52+
this pull request. Or, if you have any further questions, just ask! We love to
53+
help, and if there's anything the PROJ project can do to help push this PR forward
54+
please let us know how we can assist.
55+
56+
57+
stale-pr-label: 'stale'
58+
exempt-pr-labels: 'pinned'
59+
days-before-pr-stale: 60
60+
days-before-pr-close: 7
61+
62+
stale-issue-message: >
63+
The PROJ project highly values your report and would love to see it addressed.
64+
However, this issue has been left in feedback mode for the last two months and is
65+
being automatically marked as "stale".
66+
67+
If you would like to continue with this issue, please provide any missing information
68+
or answer any open questions. If you could resolve the issue yourself meanwhile,
69+
please leave a note for future readers with the same problem and close the issue.
70+
71+
In case you should have any uncertainty, please leave a comment and we will be
72+
happy to help you proceed with this issue.
73+
74+
If there is no further activity on this issue, it will be closed in a week.
75+
76+
77+
close-issue-message: >
78+
While we hate to see this happen, this issue has been automatically closed because
79+
it has not had any activity in the last two months despite being marked as feedback.
80+
If this issue should be reconsidered, please follow the guidelines in the previous
81+
comment and reopen this issue.
82+
83+
Or, if you have any further questions, there are also
84+
[further support channels](https://proj.org/community/channels.html)
85+
that can help you.
86+
87+
88+
stale-issue-label: 'stale'
89+
only-issue-labels: 'feedback'
90+
days-before-issue-stale: 60
91+
days-before-issue-close: 7
92+
93+
operations-per-run: 1000

0 commit comments

Comments
 (0)