diff --git a/.github/workflows/needs-reply.yml b/.github/workflows/needs-reply.yml new file mode 100644 index 000000000..77b5b97b5 --- /dev/null +++ b/.github/workflows/needs-reply.yml @@ -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 💙 diff --git a/.github/workflows/remove-needs-reply.yml b/.github/workflows/remove-needs-reply.yml new file mode 100644 index 000000000..e1aa5d4ab --- /dev/null +++ b/.github/workflows/remove-needs-reply.yml @@ -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/request-action@v2.x + 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 }}