Skip to content

Commit e02f080

Browse files
authored
Merge pull request #607 from Shopify/klenotiw/add-stale-and-waiting-workflows
Adds "Stale" and "Waiting for Response" labels
2 parents e7bef94 + 4c69103 commit e02f080

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Close Waiting for Response Issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
workflow_dispatch:
6+
jobs:
7+
check-need-info:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: close-issues
11+
uses: actions-cool/issues-helper@v3
12+
with:
13+
actions: 'close-issues'
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
labels: 'Waiting for Response'
16+
inactive-day: 7
17+
body: |
18+
We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, feel free to respond and reopen this issue.
19+
20+
We appreciate your understanding as we try to manage our number of open issues.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Remove Stale or Waiting Labels
2+
on:
3+
issue_comment:
4+
types: [created]
5+
workflow_dispatch:
6+
jobs:
7+
remove-labels-on-activity:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions-ecosystem/action-remove-labels@v1
12+
if: contains(github.event.issue.labels.*.name, 'Waiting for Response')
13+
with:
14+
labels: |
15+
Waiting for Response

.github/workflows/stale.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
days-before-issue-stale: 60
16+
days-before-issue-close: 14
17+
stale-issue-label: "Stale"
18+
stale-issue-message: >
19+
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.
20+
close-issue-message: |
21+
We are closing this issue because it has been inactive for a few months.
22+
This probably means that it is not reproducible or it has been fixed in a newer version.
23+
If it’s an enhancement and hasn’t been taken on since it was submitted, then it seems other issues have taken priority.
24+
25+
If you still encounter this issue with the latest stable version, please reopen using the issue template. You can also contribute directly by submitting a pull request– see the [CONTRIBUTING.md](https://github.com/Shopify/shopify_python_api/blob/master/CONTRIBUTING.md) file for guidelines
26+
27+
Thank you!
28+
days-before-pr-stale: -1
29+
days-before-pr-close: -1
30+
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
exempt-issue-labels: "feature request"

0 commit comments

Comments
 (0)