Skip to content

Update version script to work with generic tags. - #117

Merged
zivy merged 1 commit into
SimpleITK:mainfrom
zivy:updateVersionScript
Aug 7, 2026
Merged

Update version script to work with generic tags.#117
zivy merged 1 commit into
SimpleITK:mainfrom
zivy:updateVersionScript

Conversation

@zivy

@zivy zivy commented Aug 5, 2026

Copy link
Copy Markdown
Member

Release tags are preceeded with a 'v', other
committish worked using the fallback. The
lightweight "latest" tag was identified as a
tag but should have gone via the committish code
path. Now we treat all tags that are
not preceeded by a 'v' as a generic committish.

@zivy
zivy requested a review from blowekamp August 5, 2026 14:55
@zivy zivy mentioned this pull request Aug 5, 2026
@zivy
zivy requested review from Artur-man and a lite review from Copilot August 6, 2026 12:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the SimpleITK R package helper script to only treat versioned release tags as “tags” for version derivation, and to treat non-version tags (e.g., latest) as generic committish targets.

Changes:

  • Restrict exact-tag detection to v-prefixed numeric tags via git describe --exact-match --match 'v[0-9]*'.
  • Restrict “future tag” (--contains) and nearest-ancestor tag lookups to the same release-tag pattern.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sitk_r_version_date.sh Outdated
Comment on lines +56 to +57
# Matches tags with a v prefix (v3.0.0, v3.0.0a1).
# Tags without a leading 'v' fall through to the ancestor-search branch below.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nope, all tags start with v, followed with version and so on ...

@Artur-man Artur-man left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

Release tags are preceeded with a 'v', other
committish worked using the fallback. The
lightweight "latest" tag was identified as a
tag but should have gone via the committish code
path. Now we treat all tags that are
not preceeded by a 'v' as a generic committish.
@zivy
zivy force-pushed the updateVersionScript branch from 28428a0 to d52b8b8 Compare August 6, 2026 14:49
@zivy
zivy merged commit 33db91e into SimpleITK:main Aug 7, 2026
5 of 13 checks passed
@zivy
zivy deleted the updateVersionScript branch August 7, 2026 00:33
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.

3 participants