Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: re open github issues after a comment #1676

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions .github/stale.yml

This file was deleted.

24 changes: 18 additions & 6 deletions .github/workflows/remove-awaiting-response-label.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
name: Remove Awaiting Response Label
name: Remove awaiting response label

on: [issue_comment]
on:
issue_comment:
types:
- created

jobs:
remove_label:
build:
runs-on: ubuntu-latest
if: |
github.event.comment.author_association != 'OWNER' &&
github.event.comment.author_association != 'COLLABORATOR'
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-remove-labels@v1
- name: Remove needs-reply label
uses: octokit/request-action@v2.x
continue-on-error: true
with:
labels: "awaiting response"
route: DELETE /repos/:repository/issues/:issue/labels/:label
repository: ${{ github.repository }}
issue: ${{ github.event.issue.number }}
label: "awaiting response"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/remove-old-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Close old issues that need reply

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Close old issues that need reply
uses: dwieeb/needs-reply@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-label: "awaiting response"
close-message: |
This issue has not been interacted with for 30 days since it was marked as "awaiting response". As such, the
issue is now closed. Please comment on this issue to re-open. Thanks!
24 changes: 24 additions & 0 deletions .github/workflows/reopen-issue-on-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Remove awaiting response label

on:
issue_comment:
types:
- created

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Reopen closed issue
uses: octokit/request-action@v2.x
continue-on-error: true
with:
route: UPDATE /repos/:repository/issues/:issue
repository: ${{ github.repository }}
issue: ${{ github.event.issue.number }}
label: "awaiting response"
body: ${{ toJSON(env.REQUEST_BODY) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REQUEST_BODY: |
{"state":"open"}