Skip to content

Commit d8e6be3

Browse files
authored
Add actions to manage statuses (#848)
1 parent ef8ac93 commit d8e6be3

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Close old issues that need feedback
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
if: github.repository_owner == 'php'
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
pull-requests: write
17+
steps:
18+
- name: Close old issues that need feedback
19+
uses: dwieeb/needs-reply@v2
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22+
issue-label: "Status: Needs Feedback"
23+
days-before-close: 14
24+
close-message: "No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you."
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Remove needs feedback label
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
if: "github.repository_owner == 'php' && contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login"
14+
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
steps:
19+
- uses: actions-ecosystem/action-remove-labels@v1
20+
with:
21+
labels: "Status: Needs Feedback"
22+
- uses: actions-ecosystem/action-add-labels@v1
23+
with:
24+
labels: "Status: Needs Triage"

0 commit comments

Comments
 (0)