Skip to content

ci: set a Conventional Commits prefix for Dependabot - #4917

Merged
TomOnTime merged 2 commits into
DNSControl:mainfrom
cafferata:ci/dependabot-commit-message
Sep 19, 2026
Merged

TomOnTime merged 2 commits into
DNSControl:mainfrom
cafferata:ci/dependabot-commit-message

Conversation

@cafferata

Copy link
Copy Markdown
Member

This GitHub pull request sets commit-message.prefix: "build" with include: "scope" for every ecosystem in .github/dependabot.yml, so Dependabot titles its pull requests build(deps): … and build(deps-dev): … instead of Build(deps): …. Since #4873 the PR: Commitlint check lints the pull request title, and #4916 (Build(deps-dev): Bump prettier from 3.9.5 to 3.9.6) is the first Dependabot pull request to fail it, on both type-enum and subject-case. The build type keeps these pull requests in the same "CI/CD:" changelog group as the current Build(deps) titles.

The prefix fixes the type, but not the capital in "Bump". Dependabot copies the capitalisation from its last commit on main (see capitalise_first_word_from_last_dependabot_commit_style in https://github.com/dependabot/dependabot-core/blob/main/common/lib/dependabot/pull_request_creator/pr_name_prefixer.rb), which is still Build(deps): Bump joi from 18.2.3 to 18.2.9 (#4872). Squash-merging #4916 as build(deps-dev): bump prettier from 3.9.5 to 3.9.6 makes that the last Dependabot commit, and from then on Dependabot writes "bump" in lowercase. I checked both titles locally with npx commitlint: they pass, while the current title of #4916 fails.

Refs #4916

AI-attributie

Assisted-by: Claude Code:claude-opus-5

- Add `commit-message.prefix: "build"` with `include: "scope"` to every ecosystem in `.github/dependabot.yml`, so Dependabot titles pull requests `build(deps): ...` and `build(deps-dev): ...` and they pass the `PR: Commitlint` check (DNSControl#4916 failed on `Build(deps-dev): Bump ...`).
@cafferata

Copy link
Copy Markdown
Member Author

The failing "Check: go (build/fmtjson/mod-tidy/generate/fmt/fix)" isn't caused by this pull request: main itself is out of sync since #4914, because go generate rewrites commands/types/dnscontrol.d.ts. #4920 fixes that. Once it's merged I'll rebase this pull request on main so the check runs again.

TomOnTime pushed a commit that referenced this pull request Sep 19, 2026
This GitHub pull request regenerates `commands/types/dnscontrol.d.ts`
with `go generate ./...`.
#4914 put the two reference
link definitions in
`documentation/language-reference/domain-modifiers/SPF_BUILDER.md` on
separate lines, but I didn't regenerate the TypeScript definitions that
are built from that page. Since then the "Check: go
(build/fmtjson/mod-tidy/generate/fmt/fix)" check fails on every pull
request based on `main`, for example
#4917, because `go
generate` leaves `dnscontrol.d.ts` modified.

The diff is only the generated file: the `[multi-string]` and
`[record-size]` definitions move to their own line, as in the
documentation. I ran `go generate ./...` on the current `main` and it
changes no other files.

Refs #4914

## AI-attributie

Assisted-by: Claude Code:claude-opus-5
@TomOnTime
TomOnTime merged commit 6bd4953 into DNSControl:main Sep 19, 2026
9 checks passed
@cafferata
cafferata deleted the ci/dependabot-commit-message branch September 19, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants