Skip to content

tools.func get_latest_gh_tag - add pagination to find prefixed tags beyond first 50#14241

Merged
tremor021 merged 1 commit intomainfrom
fix/get-latest-gh-tag-pagination
May 4, 2026
Merged

tools.func get_latest_gh_tag - add pagination to find prefixed tags beyond first 50#14241
tremor021 merged 1 commit intomainfrom
fix/get-latest-gh-tag-pagination

Conversation

@MickLesk
Copy link
Copy Markdown
Member

@MickLesk MickLesk commented May 4, 2026

✍️ Description

🔗 Related Issue

Fixes #

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to script metadata (PocketBase/website data).
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

@MickLesk MickLesk requested a review from a team as a code owner May 4, 2026 14:46
tremor021
tremor021 previously approved these changes May 4, 2026
…ering

The /tags endpoint sorts tags by an undocumented order, not by date or
semver. For repos with many tag families (e.g. mongodb/mongo-tools has
r4.x and 100.x tags), the prefixed ones may not appear in the first 100
results. Using /git/matching-refs/tags/<prefix> gets ALL matching tags
in a single API call, then 'sort -V' picks the highest version.
@MickLesk MickLesk force-pushed the fix/get-latest-gh-tag-pagination branch from 1271ac5 to 938a206 Compare May 4, 2026 17:11
@MickLesk MickLesk requested a review from tremor021 May 4, 2026 17:15
@tremor021 tremor021 merged commit 26b41d7 into main May 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants