Skip to content

Add GitHub release by branch badge#11941

Draft
LuxologyGG wants to merge 2 commits into
badges:masterfrom
LuxologyGG:feat/auto-badge-issue-7929
Draft

Add GitHub release by branch badge#11941
LuxologyGG wants to merge 2 commits into
badges:masterfrom
LuxologyGG:feat/auto-badge-issue-7929

Conversation

@LuxologyGG

Copy link
Copy Markdown

Closes #7929

Summary

Adds a new version badge that shows the latest GitHub release for a specified branch. The badge matches releases using the target_commitish field from the GitHub releases API and paginates through release pages when needed.

Example

/github/v/release/laravel/framework/13.x produces a badge labeled latest-release@13.x with the latest release version for that branch.

Testing

  • npm run test:core -- --grep GithubReleaseBranch (9 passing)
  • npm run test:services -- --only=GithubReleaseBranch (10 passing)

Implements a version badge that shows the latest release for a
specified branch using the GitHub releases API target_commitish field.

Closes badges#7929
@github-actions

Copy link
Copy Markdown
Contributor
Warnings
⚠️

This PR modified service code.
Please run tests by including affected services in the pull request title.

⚠️

Found badge URL that may not follow our standard route abbreviations in services/github/github-release-branch.service.js.
Please ensure you've reviewed our conventions.

Messages
📖 ✨ Thanks for your contribution to Shields, @LuxologyGG!

Generated by 🚫 dangerJS against 7494ccb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

New Feature Request: Github release (latest on a specified branch)

2 participants