Skip to content

Commit

Permalink
Add actions to manage statuses (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
saundefined authored Dec 1, 2023
1 parent ef8ac93 commit d8e6be3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/close-needs-feedback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Close old issues that need feedback

on:
schedule:
- cron: "0 0 * * *"

permissions:
contents: read

jobs:
build:
if: github.repository_owner == 'php'
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Close old issues that need feedback
uses: dwieeb/needs-reply@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-label: "Status: Needs Feedback"
days-before-close: 14
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."
24 changes: 24 additions & 0 deletions .github/workflows/remove-needs-feedback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Remove needs feedback label

on:
issue_comment:
types:
- created

permissions:
contents: read

jobs:
build:
if: "github.repository_owner == 'php' && contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login"
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "Status: Needs Feedback"
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "Status: Needs Triage"

0 comments on commit d8e6be3

Please sign in to comment.