Skip to content

The merger promotes, with their own Hub token - #3

Merged
briney merged 2 commits into
mainfrom
promote-by-merger
Nov 6, 2026
Merged

briney merged 2 commits into
mainfrom
promote-by-merger

Conversation

@briney

@briney briney commented Nov 6, 2026

Copy link
Copy Markdown
Member

A Hub token belongs to a person, not the org, so CI no longer holds one.

  • .github/workflows/datasets.yml: the promote job and the push trigger are removed. check on pull requests is unchanged; it reads the public Hub API and needs no token.
  • scripts/promote: after the merge, whoever merged runs it with their own HF_TOKEN, as push already works for the cook. It now refuses a record that isn't on origin/main (or differs from it), so only a reviewed, merged record gets tagged. This guard has a test: test_promote_refuses_a_record_that_is_not_on_main.
  • Docs:
    • DESIGN §3 replaces the promote workflow bullet with a paragraph on promoting.
    • DESIGN §5: flyloft runs promote with the token it already holds, and reads its last line.
    • D5 records the revision, and the status line is amended.
    • AGENTS, README, and CONTRIBUTING's pull request step 4 give the podman command.

hello v1.0.0 was promoted this way, and re-running promote on it through the guard reports "already promoted".

flyloft's side: its dataset flow has to call scripts/promote after merging, instead of watching a promote check.

🤖 Generated with Claude Code

briney and others added 2 commits November 6, 2026 11:47
…omote refuses a record that is not on main; CI holds no Hub token

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… says to run from a full clone; plan A defers to the revised promote

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@briney
briney merged commit e00cb7f into main Nov 6, 2026
1 check passed
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