Skip to content

Conversation

@james-s-w-clark
Copy link
Contributor

@james-s-w-clark
Copy link
Contributor Author

james-s-w-clark commented Feb 2, 2023

PRs shouldn't be frequent, but you can also have:

.github/workflows/auto-merge.yml

name: auto-merge

on:
  pull_request:
    branches:
      - main

jobs:
  automerge:
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write
      contents: write
    if: ${{ github.actor == 'dependabot[bot]' }}
    steps:
      - uses: fastify/[email protected]
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

FWIW, if anyone tries to make an account to abuse this:

Username may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen. Username dependabot[bot] is not available.

So the only concern is adding and extra file to remove some tiny toil 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant