Skip to content

fix(ci): auto-merge points at an owner that no longer exists - #789

Merged
catomean merged 1 commit into
mainfrom
fix/auto-merge-owner-rename
Aug 27, 2026
Merged

fix(ci): auto-merge points at an owner that no longer exists#789
catomean merged 1 commit into
mainfrom
fix/auto-merge-owner-rename

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

Nothing has merged or deployed in this repo since the GitHub account was renamed maonakamotocatomean. Every auto-merge run since fails before it starts:

This run likely failed because of a workflow file issue.

No log, no step, nothing to read.

Cause

uses: maonakamoto/dotfiles/.github/workflows/auto-merge-sweep.yml@master

GitHub redirects a renamed owner for the REST API and for git remotes — gh api repos/maonakamoto/dotfiles still answers catomean/dotfiles, which is exactly what makes this hard to see — but the Actions resolver does not follow the redirect when loading a reusable workflow. It looks for an owner that no longer exists and fails the whole run before any step exists.

Why it was invisible

This is the failure mode auto-merge.yml's own header warns about, arriving from the other direction:

  • The PR is green. mergeStateStatus: CLEAN, mergeable: MERGEABLE, every check passing.
  • The red thing is on main, not on the PR. Looking at the pull request tells you nothing is wrong — it just sits there looking ready.

It also takes the reconciler down with it — the part of the sweep that re-dispatches cd.yml when main's tip and the last successful deploy differ — so any merge that landed before the rename would not have shipped either.

Fix

Name the current owner. This is the only load-bearing reference in .github:

$ git grep -n maonakamoto origin/main -- .github
auto-merge.yml:4:  # ONE place for the whole fleet — maonakamoto/dotfiles,   ← comment
auto-merge.yml:45:    uses: maonakamoto/dotfiles/...@master                  ← this

Note for the fleet

A rename like this cannot be caught by CI in the repo it breaks — the workflow that would run the check is the workflow that fails to load. One account rename breaks every repo calling a shared workflow, all at once and all silently. Worth sweeping uses: maonakamoto/ across every repo.

Verified catomean/dotfiles exists, default branch master, and still contains .github/workflows/auto-merge-sweep.yml.

🤖 Generated with Claude Code

Nothing has merged or deployed since the GitHub account was renamed from
`maonakamoto` to `catomean`. Every auto-merge run since fails before it
starts, with "This run likely failed because of a workflow file issue"
and no log to read.

    uses: maonakamoto/dotfiles/.github/workflows/auto-merge-sweep.yml@master

GitHub redirects a renamed owner for the REST API and for git remotes —
`gh api repos/maonakamoto/dotfiles` still answers, which is exactly what
makes this hard to see — but the Actions resolver does NOT follow the
redirect when loading a reusable workflow. It looks for an owner that is
not there any more and fails the whole run before any step exists.

The failure mode is the bad one this file's own header warns about, from
the other direction: a green PR that GitHub reports as CLEAN and
MERGEABLE, no red check anywhere on it, and nothing merging. The sweep is
the only thing that is red, and it is red on `main` rather than on the
PR, so looking at the pull request tells you nothing is wrong. It also
takes the RECONCILER down with it — the part that re-dispatches cd.yml
when main's tip and the last successful deploy differ — so merges made
before the rename would not have shipped either.

Fixed by naming the current owner. This is the only load-bearing
reference in .github (`git grep maonakamoto origin/main -- .github` finds
this line and the comment above it, nothing else).

Renames like this cannot be caught by CI in the repo that breaks: the
workflow that would run the check is the workflow that fails to load.
Worth a fleet sweep for `uses: maonakamoto/` in every repo, since one
account rename breaks every repo that calls a shared workflow, all at
once and all silently.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@catomean
catomean merged commit e7f2d8c into main Aug 27, 2026
6 checks passed
@catomean
catomean deleted the fix/auto-merge-owner-rename branch August 27, 2026 21:13
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