when a branch is shown in the "all" history for the first time, show its name #44

Closed
opened 2026-07-31 18:38:08 +00:00 by hugo · 1 comment
Owner

the commit that is on a freshly started branch (look at it from the bottom, the newer stuff is top the older bottom), have the name show on the commit tile in the list in an accent color, so users see what the branch name was at that time. check if that is possible with the gitea API at all. If this is not possible, then don't try to build something weird, just explain why and comment on this issue and close it. if it is possible (verify by actually using the API from the cli tool for that), implement it.

the commit that is on a freshly started branch (look at it from the bottom, the newer stuff is top the older bottom), have the name show on the commit tile in the list in an accent color, so users see what the branch name was at that time. check if that is possible with the gitea API at all. If this is not possible, then don't try to build something weird, just explain why and comment on this issue and close it. if it is possible (verify by actually using the API from the cli tool for that), implement it.
hugo added this to the first feature complete release milestone 2026-07-31 18:38:08 +00:00
hugo added the enhancement label 2026-07-31 18:38:08 +00:00
Author
Owner

Implemented in 16ecf68.

Gotcha now uses Gitea pull-request metadata already loaded by gotcha_gitea (head.sha, head.label, and merge_base) to annotate the first commit made on a pull-request branch. This works for merged branches whose branch ref was deleted, while histories without reliable metadata are left unlabeled rather than guessed.

Branch names at both branch tips and branch starts use the same accent-colored presentation. Verified against Gotcha's deleted codex/ios-app branch in the iPhone 17 Pro Simulator: the PR head 77358cd1 and first unique commit 6a0c5d7b both show the accented branch name alongside the correct graph lane.

Verification passed:

  • cargo fmt --all -- --check
  • RUSTFLAGS="-D warnings" cargo check --workspace --all-targets
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace
  • signed arm64 Simulator build and real-data UI inspection
Implemented in 16ecf68. Gotcha now uses Gitea pull-request metadata already loaded by `gotcha_gitea` (`head.sha`, `head.label`, and `merge_base`) to annotate the first commit made on a pull-request branch. This works for merged branches whose branch ref was deleted, while histories without reliable metadata are left unlabeled rather than guessed. Branch names at both branch tips and branch starts use the same accent-colored presentation. Verified against Gotcha's deleted `codex/ios-app` branch in the iPhone 17 Pro Simulator: the PR head `77358cd1` and first unique commit `6a0c5d7b` both show the accented branch name alongside the correct graph lane. Verification passed: - `cargo fmt --all -- --check` - `RUSTFLAGS="-D warnings" cargo check --workspace --all-targets` - `cargo clippy --workspace --all-targets -- -D warnings` - `cargo test --workspace` - signed arm64 Simulator build and real-data UI inspection
hugo closed this issue 2026-07-31 19:31:18 +00:00
Sign in to join this conversation.