Skip to content

feat: get-latest-tag#1432

Merged
erikburt merged 6 commits intomainfrom
feat/get-latest-release
Mar 2, 2026
Merged

feat: get-latest-tag#1432
erikburt merged 6 commits intomainfrom
feat/get-latest-release

Conversation

@erikburt
Copy link
Contributor

@erikburt erikburt commented Feb 26, 2026

This actions tries to fetch the latest tag matching a specific prefix within a github repository.

  • It will use semver library to parse the versions contained in the tags, and then attempt to find the "latest" version
  • It also produces an output object used to recommend a tag/version depending on a patch/minor/major bump

Notes

This is different from get-latest-github-release which only scrapes github releases, and doesn't have proper filtering or comparison logic for multi-tenant/multi-module repositories.

Testing

Added some unit tests for the parsing, and versioning logic.

Tested locally using scripts/test.sh.

Motivation

This is a piece of the puzzle for DX-2323, which will use apidiff-go and other actions to produce an automated release flow for many repositories.

This action fits into the flow by:

  1. For a specific module, getting the most recent release/tag for it
  2. apidiff-go will then diff the module from the last release (as opposed to the default of the last commit)
    1. apidiff-go will also produce a list of interface changes as it does, and recommend a version bump (major, minor, or patch), based on simple heuristics
  3. Using some basic logic, we will create a "draft" GH release with proper version/tag based on the above

DX-2323

@erikburt erikburt self-assigned this Feb 26, 2026
@erikburt erikburt marked this pull request as ready for review February 27, 2026 00:10
@erikburt erikburt requested a review from a team as a code owner February 27, 2026 00:10
@erikburt erikburt enabled auto-merge (squash) March 2, 2026 16:02
@erikburt erikburt merged commit 47f9155 into main Mar 2, 2026
17 checks passed
@erikburt erikburt deleted the feat/get-latest-release branch March 2, 2026 16:03
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