From baf6ec89be899a54444a0409711f7e48788338fa Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Sat, 16 May 2020 13:33:17 -0700 Subject: [PATCH] auto merge all contributors bot (#1010) --- .github/workflows/label-all-contributors.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/label-all-contributors.yml diff --git a/.github/workflows/label-all-contributors.yml b/.github/workflows/label-all-contributors.yml new file mode 100644 index 0000000..73e7b13 --- /dev/null +++ b/.github/workflows/label-all-contributors.yml @@ -0,0 +1,20 @@ +name: Auto-merge All-Contributors bot + +on: pull_request + +jobs: + apply-label: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@0.9.0 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + if (context.payload.pull_request.user.login === 'allcontributors[bot]') { + github.issues.addLabels({ + issue_number: context.payload.pull_request.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['squash when passing'] + }) + }