Sha256: 36063b3234cf9ce30dff2d6d6e1f476ac1e49f2b92de814b0e1daf2e0f9b0d09

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

# This workflow removes a "Needs QA" label from a PR when the actor is the
# dependabot user merging a PR.
#
# We need this mechanism to allow for automerging whitelisted dependencies while
# also allowing for blocking a merge to master for deployment (in the way that
# our other PRs work). When the automerge script runs in henchman, it looks
# for `Needs QA` on github pull requests, and if the label is present,
# blocks the commit from merging.
name: Remove 'Needs QA' label for auto-merged PRs.
on:
  pull_request:
    types: [closed]

jobs:
  remove-label:
    runs-on: ubuntu-latest
    if: >
      (github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]')
      && github.event.pull_request.merged

    steps:
      # Our triage workflow adds 'Needs QA' to the PR in order to block it from
      # merging to production. This removes that label when dependabot is doing
      # the merging.
      - name: Remove QA Label
        uses: actions/github-script@0.4.0
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          script: |
            github.issues.removeLabel({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              name: 'Needs QA'
            })

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
panolint-0.1.6 .github/workflows/remove-needs-qa.yml
panolint-0.1.5 .github/workflows/remove-needs-qa.yml
panolint-0.1.4 .github/workflows/remove-needs-qa.yml
external_fields-0.1.3 .github/workflows/remove-needs-qa.yml
panolint-0.1.3 .github/workflows/remove-needs-qa.yml
order_as_specified-1.7 .github/workflows/remove-needs-qa.yml