Skip to content

ci: auto-create patch changesets for Dependabot production bumps - #22

Open
hieu-w wants to merge 2 commits into
masterfrom
ci/dependabot-auto-changeset
Open

hieu-w wants to merge 2 commits into
masterfrom
ci/dependabot-auto-changeset

Conversation

@hieu-w

@hieu-w hieu-w commented Dec 1, 2026

Copy link
Copy Markdown

Jira Link

Story: https://consensyssoftware.atlassian.net/browse/EMBED-1757
Epic: https://consensyssoftware.atlassian.net/browse/EMBED-1733

Description

Ports what sign-in-with-web3 shipped in PR #106 to this repository:

  • CODEOWNERS: .changeset/ is now owned by the product team (@MetaMask/Web3Auth-Product), the same team that owns src/, so changeset files no longer fall through to the admins fallback.
  • release-notes CI job: a standalone job that waives the changeset check for Dependabot devDependency-only bumps (chore(deps-dev):) and auto-creates and commits a patch changeset on Dependabot production bumps (chore(deps):) via the Contents API.
  • dependabot.yml: adds commit-message prefixes (chore(deps) / chore(deps-dev)) to the npm entry, which the job's waiver and auto-create logic rely on.

This PR changes only workflow and CODEOWNERS files, so it needs no changeset. No dependency bumps are included.

Current vs new process

Current New
.changeset/ review Falls through to * → admins must approve Product team owns .changeset/, same as src/
Dependabot devDependency PR (chore(deps-dev)) Changeset check runs as a step of the run tests job and fails without a changeset Skipped only when every Dependabot commit is chore(deps-dev)
Dependabot production PR (chore(deps)) Failed without a human pushing a changeset CI writes .changeset/dependabot-<PR>.md (patch) and commits it to the PR branch
Human PR without a changeset Fails Fails (unchanged)
Required check None required on master None required on master (unchanged)

How has this been tested?

  • js-yaml parses both modified YAML files.
  • The job's run: script passes bash -n and shellcheck --shell=bash.
  • The Dependabot subject filter was dry-run against real history: git log origin/master --no-merges --format='%an %s' | sed -n 's/^dependabot\[bot\] //p'. Historical Dependabot commits use unprefixed chore: Bump ... subjects, which match neither the waiver nor the auto-create branch — hence the commit-message prefixes added to dependabot.yml so future Dependabot commits use the chore(deps) / chore(deps-dev) subjects the job relies on.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed. (CI-only change, verified locally with js-yaml, bash -n, and shellcheck)

.changeset/ had no entry, so changeset files fell through the *
fallback to @MetaMask/web3auth-admins and required an admin review.
The product team that owns src/ should also own changeset files.
Dependabot cannot add a changeset, so the changeset check failed every
production dependency bump. Create the patch changeset in the job,
stage it (changeset status --since only counts files that git diff
sees), and commit it to the Dependabot branch via the Contents API.
Bumps titled chore(deps-dev) skip the check; they must not release.
@hieu-w
hieu-w requested a review from a team as a code owner December 1, 2026 08:55
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