Skip to content

ci: add Dependabot updates with auto-merge for patch and minor bumps - #7

Merged
ChiragAgg5k merged 1 commit into
mainfrom
ci/dependabot-automation
Oct 22, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
ci/dependabot-automation

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

What this adds

  • .github/dependabot.yml: weekly (Monday) Dependabot updates for npm and github-actions. Minor and patch version updates are grouped into one PR per ecosystem, and security updates into another. Commits use the chore(deps) conventional prefix.
  • .github/workflows/dependabot-auto-merge.yml: on Dependabot PRs, reads the update metadata and enables squash auto-merge only for semver patch and minor updates. Actions are pinned to commit SHAs.
  • .github/workflows/ci.yml: the repo had no CI. The build job installs with npm ci on Node 22 and runs npm run build. ng test is left out because the project has no spec files.

Auto-merge policy

Patch and minor updates (including security fixes that are patch or minor) merge automatically once the required checks pass. Major updates are never auto-merged and wait for a human review.

Nothing merges automatically until an admin enables "Allow auto-merge" in the repository settings and adds a ruleset on the default branch requiring the CI check and Hansi.

Required checks

  • build
  • Hansi

@hansi-codes

hansi-codes Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

Adds weekly grouped Dependabot updates for npm and GitHub Actions, plus a workflow intended to enable auto-merge for patch and minor updates. Adds a Node 22 CI workflow that installs dependencies and runs the production build.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 3
File Change
.github/dependabot.yml Configures weekly npm and GitHub Actions updates, grouped by update type.
.github/workflows/ci.yml Adds a Node 22 install-and-build check for pull requests and pushes to main.
.github/workflows/dependabot-auto-merge.yml Reads Dependabot update metadata and attempts to enable squash auto-merge for patch and minor updates.
🔇 Filtered out · 1

Findings Hansi considered but did not post.

Finding Why
Dependabot's token cannot enable auto-merge Verifier: The finding mistakes Dependabot's default token permissions for an unchangeable restriction. Dependabot-triggered pull_request workflows can explicitly request write permissions using the permissions block. This workflow already requests contents: write and pull-requests: write at lines 5–7 and passes that GITHUB_TOKEN to gh, matching the supported Dependabot auto-merge pattern. No repository evidence establishes an additional restriction that would reject this command.

Reviewed 53adf60 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit 1c089be into main Oct 22, 2026
3 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the ci/dependabot-automation branch October 22, 2026 12:34
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