From da24c9164a753079252e912072fca5c23612fceb Mon Sep 17 00:00:00 2001 From: David Wertenteil Date: Wed, 24 Aug 2022 13:27:24 +0300 Subject: [PATCH 1/2] auto close typo issues --- .github/workflows/close-typos-issues.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/close-typos-issues.yaml diff --git a/.github/workflows/close-typos-issues.yaml b/.github/workflows/close-typos-issues.yaml new file mode 100644 index 00000000..0b554a8e --- /dev/null +++ b/.github/workflows/close-typos-issues.yaml @@ -0,0 +1,18 @@ +on: + issues: + types: [opened, labeled] + +jobs: + build: + if: ${{ github.event.label.name == 'typo' }} + runs-on: ubuntu-latest + auto_close_issues: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Automatically close issues that don't follow the issue template + uses: lucasbento/auto-close-issues@v1.0.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-close-message: "@${issue.user.login}: Hello! :wave:\n\nThis issue is being automatically closed, Please open a PR with a relevant fix." \ No newline at end of file From da2adf305950b54567dc075aba131473ea446d80 Mon Sep 17 00:00:00 2001 From: Ben Hirschberg <59160382+slashben@users.noreply.github.com> Date: Wed, 24 Aug 2022 14:01:43 +0300 Subject: [PATCH 2/2] Update close-typos-issues.yaml --- .github/workflows/close-typos-issues.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/close-typos-issues.yaml b/.github/workflows/close-typos-issues.yaml index 0b554a8e..46b3275b 100644 --- a/.github/workflows/close-typos-issues.yaml +++ b/.github/workflows/close-typos-issues.yaml @@ -11,8 +11,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Automatically close issues that don't follow the issue template + - name: Automatically close typo issues uses: lucasbento/auto-close-issues@v1.0.2 with: github-token: ${{ secrets.GITHUB_TOKEN }} - issue-close-message: "@${issue.user.login}: Hello! :wave:\n\nThis issue is being automatically closed, Please open a PR with a relevant fix." \ No newline at end of file + issue-close-message: "@${issue.user.login}: Hello! :wave:\n\nThis issue is being automatically closed, Please open a PR with a relevant fix."