Add skill version pinning via git tags and commit SHAs#73
Merged
albertodebortoli merged 2 commits intomainfrom Apr 18, 2026
Merged
Add skill version pinning via git tags and commit SHAs#73albertodebortoli merged 2 commits intomainfrom
albertodebortoli merged 2 commits intomainfrom
Conversation
Skills can now be pinned to a specific git ref (tag or commit SHA1) via a `version:` field in the Lucafile and a `--ref` flag for individual installs. Tags use shallow clone with `--branch`; commit SHAs use full clone + checkout.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Covers the clone-fails-during-SHA-fetch path in GitRepositorySkillFetcher and the checkoutFailed → cloneFailed mapping in SkillDownloader.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
ref:field to skill definitions in Lucafile, allowing skills to be pinned to a specific git tag (e.g.v1.2.0) or commit SHA1 (e.g.abc1234)--refflag toluca installfor individual skill installs--depth 1 --branch <ref>); commit SHAs use a full clone followed bygit checkout <sha>Type of Change
How Has This Been Tested?
New tests added:
GitRepositorySkillFetcherTests: 5 new cases covering tag cloning, SHA checkout, checkout failure, cache key isolation per refSkillsInfoFactoryTests: 4 new cases covering ref propagation toSkillSet, first-ref-wins for same-repo skills, and--refon individual installsErrorDescriptionTests: coverage for newcheckoutFailederror caseLucafile_mock_with_versioned_skills.ymlChecklist
Breaking Changes?
refdefaults tonilon all models; all existing Lucafiles and call sites are unaffected