From d5e08b05abfc2c671443bee8ef4f0f3dec436581 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 19 May 2021 13:50:19 +0800 Subject: [PATCH] Remove PR filter from workflow GitHub does not allow to run workflows on PR from first-time contributors. see: --- .../{issue-pr-interceptor.yml => issue-interceptor.yml} | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) rename .github/workflows/{issue-pr-interceptor.yml => issue-interceptor.yml} (50%) diff --git a/.github/workflows/issue-pr-interceptor.yml b/.github/workflows/issue-interceptor.yml similarity index 50% rename from .github/workflows/issue-pr-interceptor.yml rename to .github/workflows/issue-interceptor.yml index c46d79b..4a6b082 100644 --- a/.github/workflows/issue-pr-interceptor.yml +++ b/.github/workflows/issue-interceptor.yml @@ -1,20 +1,16 @@ -name: "Intercept bad issue/PRs" +name: "Intercept bad issues" on: issues: types: [opened] - pull_request: - types: [opened] jobs: autoclose: runs-on: ubuntu-latest steps: - - name: Auto close issues/pr that did not follow template + - name: Auto close issues that did not follow template uses: roots/issue-closer@v1.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} issue-pattern: "(\\[x\\]|\\[X\\]) I have read" issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template." - pr-pattern: "(\\[x\\]|\\[X\\]) (Bug fix|New feature|Breaking change|Documentation update)|@dependabot" - pr-close-message: ":wave: Hi @${pull_request.user.login},\n\nThis PR is being automatically closed because it does not follow the PR template."