Skip to content

Follow the remote's default branch for commit updates - #36

Merged
benbirt merged 1 commit into
mainfrom
override-default-branch
Dec 1, 2026
Merged

benbirt merged 1 commit into
mainfrom
override-default-branch

Conversation

@benbirt

@benbirt benbirt commented Dec 1, 2026

Copy link
Copy Markdown
Owner

bazel-updates.yml now queries the remote's HEAD instead of refs/heads/main when updating a git_override pinned by commit, and its comments, error messages and README are updated to match. This lets tlog-viewer pin ptxmac/rules_tinygo, whose default branch is master, without changing behaviour for remotes on main. Checked git ls-remote --exit-code <remote> HEAD against remotes whose default branches are master and main (one line each with that branch's head commit) and a remote that does not exist (exit 128).

🤖 Generated with Claude Code

`bazel-updates.yml` now queries `HEAD` instead of `refs/heads/main` when
updating a `git_override` pinned by commit. Remotes whose default branch
is not `main`, such as ptxmac/rules_tinygo (`master`) for tlog-viewer,
now update instead of failing the job. Behaviour for remotes whose
default branch is `main` is unchanged.

Update the workflow comments, error messages and README to match.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@benbirt
benbirt merged commit 85d412c into main Dec 1, 2026
1 check passed
@benbirt
benbirt deleted the override-default-branch branch December 1, 2026 17:08
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