You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
carbon/.github/workflows/label-all-contributors.yml

21 lines
600 B
YAML

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']
})
}