Skip to content

Conversation

@peteward
Copy link
Collaborator

I've set this up for minor and patch updates, which should be safe (if we don't auto-release). But you might prefer just patch.

@vercel
Copy link

vercel bot commented Dec 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Review Updated (UTC)
pdfme-playground Ignored Ignored Dec 14, 2025 7:18pm

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Dec 14, 2025
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 14, 2025

Greptile Overview

Greptile Summary

Adds a GitHub Actions workflow to automatically merge Dependabot PRs for minor and patch version updates. The workflow triggers on PR events, checks if the actor is Dependabot, validates the update type (semver-minor or semver-patch), and enables auto-merge with squash once CI checks pass.

  • Enables auto-merge for minor and patch updates only (major updates require manual review)
  • Uses gh pr merge --auto --squash to enable auto-merge, which waits for required CI checks
  • Adds a comment to the PR when auto-merge is enabled
  • Properly restricts workflow to Dependabot actor only via if: github.actor == 'dependabot[bot]'

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The workflow is well-designed with proper security controls (actor validation), follows GitHub Actions best practices, correctly uses the official Dependabot metadata action, and only enables auto-merge for minor/patch updates while waiting for CI checks to pass
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
.github/workflows/dependabot-automerge.yml 5/5 Adds GitHub Actions workflow to automatically merge Dependabot PRs for minor and patch version updates after CI checks pass

Sequence Diagram

sequenceDiagram
    participant D as Dependabot
    participant GH as GitHub
    participant W as Workflow
    participant M as fetch-metadata
    participant C as CI Checks
    
    D->>GH: Open/Update PR (minor/patch)
    GH->>W: Trigger workflow (PR event)
    W->>W: Check if actor == dependabot[bot]
    W->>M: Fetch metadata
    M-->>W: Return update-type
    W->>W: Check if semver-minor or semver-patch
    alt Should merge
        W->>GH: Enable auto-merge (--squash)
        W->>GH: Add comment to PR
        GH->>C: Wait for CI checks
        C-->>GH: All checks pass
        GH->>GH: Automatically merge PR
    else Should not merge
        W->>W: Skip auto-merge (major update)
    end
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 16, 2025
@hand-dot
Copy link
Collaborator

Thank you @peteward !

@hand-dot hand-dot merged commit 9322b64 into main Dec 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants