diff --git a/.github/workflows/needs-reply-remove.yml b/.github/workflows/needs-reply-remove.yml new file mode 100644 index 00000000..3857ce33 --- /dev/null +++ b/.github/workflows/needs-reply-remove.yml @@ -0,0 +1,24 @@ +name: Remove needs-reply label + +on: + issue_comment: + types: + - created + +jobs: + build: + runs-on: ubuntu-latest + if: | + github.event.comment.author_association != 'OWNER' && + github.event.comment.author_association != 'COLLABORATOR' + 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.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/needs-reply.yml b/.github/workflows/needs-reply.yml new file mode 100644 index 00000000..312275ca --- /dev/null +++ b/.github/workflows/needs-reply.yml @@ -0,0 +1,15 @@ +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: needs-reply