docs(forgejo_ci): use --branch in checkout snippet, not SHA-based fallback #146
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #145. The original snippet used
${{ github.event.pull_request.head.sha }}as a fallback after a defaultgit clone, but that field appears to be empty under Forgejo's runner — so CI silently landed on the default branch.Witnessed first-hand on hero_editor PR #4: the Cargo.lock migration was committed on dev_mik but CI kept seeing the old hash because checkout cloned
development's HEAD instead.Switch to
--branch $GITHUB_HEAD_REF / $GITHUB_REF_NAME(same pattern hero_voice uses successfully).Signed-off-by: mik-tf
The previous snippet ${{ github.event.pull_request.head.sha }} appears to evaluate to empty under Forgejo's runner, so the SHA fallback never fires and `git clone` lands on the default branch. This silently makes CI test the wrong code (the original development_mik commit was never seen). Switch to the $GITHUB_HEAD_REF / $GITHUB_REF_NAME pattern that hero_voice already uses successfully — same shape, but `--branch` on `git clone` deterministically lands on the right commit. Caught while debugging hero_editor PR #4: the Cargo.lock fix was on dev_mik but CI kept seeing the old hash because checkout was landing on `development`'s HEAD. Signed-off-by: mik-tfPull request closed