Skip to content

Commit

Permalink
Replace old no-response bot with a GitHub action (#7391)
Browse files Browse the repository at this point in the history
  • Loading branch information
mairaw authored Apr 20, 2022
1 parent 2af14b3 commit 362090e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/no-response.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: No Response

# This workflow closes issues where the original author doesn't respond to a request for more information within the predefined period of time.

# Both `issue_comment` and `scheduled` event types are required for this Action
# to work properly.
on:
issue_comment:
types: [created]
schedule:
# Schedule for five minutes after the hour, every hour
- cron: '5 * * * *'

jobs:
noResponse:
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/[email protected]
with:
token: ${{ github.token }}
# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 7
# Label requiring a response
responseRequiredLabel: needs-more-info
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed due to no response from the original author.
Please feel free to reopen it if you have more information that can help us investigate the issue further.

0 comments on commit 362090e

Please sign in to comment.