Skip to content

Commit

Permalink
chore(github): add needs-reply workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Jun 11, 2020
1 parent 4617908 commit e97fd48
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/needs-reply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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@master
with:
repo-token: ${{ secrets.BOT_TOKEN }}
close-message: |
It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.
Have a great day!
Love,
Ionitron 💙
21 changes: 21 additions & 0 deletions .github/workflows/remove-needs-reply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Remove needs-reply label

on:
issue_comment:
types:
- created

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Remove needs-reply label
uses: octokit/[email protected]
continue-on-error: true
with:
route: DELETE /repos/:repository/issues/:issue/labels/:label
repository: ${{ github.repository }}
issue: ${{ github.event.issue.number }}
label: needs-reply
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}

0 comments on commit e97fd48

Please sign in to comment.