Skip to content

ci: add changesets to Dependabot PRs automatically - #183

Merged
dillonstreator merged 1 commit into
mainfrom
claude/ci-dependabot-changeset-16c387
Nov 28, 2026
Merged

dillonstreator merged 1 commit into
mainfrom
claude/ci-dependabot-changeset-16c387

Conversation

@dillonstreator

@dillonstreator dillonstreator commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Dependabot doesn't know about Changesets, so every Dependabot PR failed the changeset check (e.g. #182).

  • New dependabot-changeset.yml (pull_request_target, Dependabot PRs from this repo only): if the PR has no changeset and touches packages/* or the root lockfile/workspace, it writes .changeset/dependabot-<PR>.md with a patch bump for the touched packages (@crypt.fyi/core for lockfile-only bumps) and pushes it to the branch. It only runs git and reads package.json as data, never PR code, since the job has write access.
  • changeset.yml skips Dependabot PRs: the bot's push uses GITHUB_TOKEN, which doesn't re-trigger workflows, so the check would stay red.
  • CONTRIBUTING.md notes the exemption.

Dry-ran the script against #182's original commit (generated a @crypt.fyi/web patch changeset) and its fixed head (skipped). pull_request_target runs the workflow from main, so it only takes effect after merge.

Dependabot doesn't write changesets, so its PRs always failed the changeset check. A pull_request_target workflow now writes a patch changeset for the packages a Dependabot PR touches and pushes it to the branch, without running any PR code. The changeset check skips Dependabot PRs because a GITHUB_TOKEN push doesn't re-trigger it.
@dillonstreator
dillonstreator merged commit f8d88bf into main Nov 28, 2026
11 checks passed
@dillonstreator
dillonstreator deleted the claude/ci-dependabot-changeset-16c387 branch November 28, 2026 20:16
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