Skip to content

Revisit automerge of Dependabot PRs #1081

Closed

Description

@jenstroeger

Automatically merging Dependabot PRs works by commenting on a PR:

run: gh pr comment --body "@dependabot squash and merge" "$PR_URL"

However:

Image

with the announcement here.

Activity

  1. added
    help wanted
    good first issue
    ci
    on Jan 30, 2026
  2. jenstroeger commented on Apr 7, 2026

    @jenstroeger
    OwnerAuthor

    @behnazh I think we’ll have to change the above line to

    run: gh pr merge --squash --delete-branch

    As per docs:

    Without an argument, the pull request that belongs to the current branch is selected.

  3. behnazh commented on Apr 7, 2026

    @behnazh
    Collaborator

    Shouldn't we check that the PR is approved somehow?

  4. jenstroeger commented on Apr 7, 2026

    @jenstroeger
    OwnerAuthor

    Shouldn't we check that the PR is approved somehow?

    Isn’t that what this line does:

    pull_request_review:
    types: [submitted]
    and
    if: ${{ github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]' }}

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

Metadata

Metadata

Assignees

Labels

cigood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions