no-response #10731
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# No Response | |
# | |
# Close issues that don't have enough information to be actionable. | |
# | |
# References: | |
# | |
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issue_comment | |
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#schedule | |
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment | |
# - https://github.com/actions/create-github-app-token | |
# - https://github.com/lee-dohm/no-response | |
--- | |
name: no-response | |
on: | |
issue_comment: | |
types: | |
- created | |
schedule: | |
# five minutes after the hour, every hour | |
- cron: 5 * * * * | |
jobs: | |
no-response: | |
runs-on: ubuntu-latest | |
steps: | |
- id: bot-token | |
name: Get bot token | |
uses: actions/[email protected] | |
with: | |
app-id: ${{ secrets.BOT_APP_ID }} | |
private-key: ${{ secrets.BOT_PRIVATE_KEY }} | |
- id: close-issues | |
name: Closes issues missing actionable info | |
uses: lee-dohm/[email protected] | |
with: | |
closeComment: | | |
This issue has been automatically closed because there has been no response to our | |
request for more information from the original author. With only the information that is | |
currently available, there isn't enough information to take action. Please reach out if | |
you have or find the answers needed so next steps, if any, can be determined. | |
daysUntilClose: 14 | |
responseRequiredLabel: status:awaiting-answers | |
token: ${{ steps.bot-token.outputs.token }} |