Skip to content

Conversation

@LuD1161
Copy link
Contributor

@LuD1161 LuD1161 commented Feb 3, 2026

Summary

  • Display version as v0.2 (e73fd1b) instead of just the tag or SHA
  • Makes it easier to identify both the release version and exact commit

Changes

  • Updated justfile to combine tag and commit hash for GIT_SHA build arg
  • Uses format ${GIT_TAG} (${GIT_COMMIT}) when a tag exists

Format version as "v0.2 (e73fd1b)" instead of just the tag or SHA

Signed-off-by: Aseem Shrey <LuD1161@users.noreply.github.com>
@LuD1161 LuD1161 merged commit 0ebca06 into main Feb 3, 2026
3 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 597d565991

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +188 to +192
# Auto-detect git version: combine tag and SHA for display
GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
GIT_COMMIT=$(git rev-parse --short=7 HEAD 2>/dev/null || echo "dev")
if [ -n "$GIT_TAG" ]; then
export GIT_SHA="$GIT_TAG"
echo "📌 Building with tag: $GIT_SHA"
export GIT_SHA="${GIT_TAG} (${GIT_COMMIT})"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid showing nearest tag for untagged commits

Using git describe --tags --abbrev=0 returns the most recent reachable tag even when the current commit is not tagged, so the UI will display a release tag for builds from commits ahead of that tag. This regresses the prior exact-match behavior and can mislead operators into thinking a dev build is an official release (the commit hash in parentheses doesn’t prevent the mistaken “version” label). If the intent is only to show the tag when the current commit is tagged, you need --exact-match (or equivalent) before formatting ${GIT_TAG} (${GIT_COMMIT}).

Useful? React with 👍 / 👎.

LuD1161 added a commit that referenced this pull request Feb 3, 2026
LuD1161 added a commit that referenced this pull request Feb 3, 2026
@LuD1161 LuD1161 deleted the fix/version-display-format branch February 3, 2026 04:18
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.

2 participants