Repository navigation
feat: centralize shared git and release recipes in justfile.gh - #377
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR centralizes shared GitHub- and release-oriented just recipes into justfile.gh so both the repo root and downstream workspace templates can expose the same helpers without duplication, addressing issue #373.
Changes:
- Added git helpers and release workflow-dispatch recipes to
justfile.gh, and removed the duplicated release recipes from the rootjustfile. - Updated downstream workspace template outputs to include the centralized recipes (notably
.devcontainer/justfile.gh) and trimmed project-level duplication. - Expanded integration tests to assert the downstream template includes the new release helpers and expected workflow-dispatch fragments.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
justfile.gh |
Adds centralized git + release helper recipes and registry override variable. |
justfile |
Removes duplicated release helpers now sourced via import 'justfile.gh'. |
assets/workspace/.devcontainer/justfile.gh |
Syncs downstream template output so downstream projects get the centralized helpers. |
assets/workspace/justfile.project |
Removes git helper recipes so it stays project-specific. |
tests/test_integration.py |
Renames a test and adds assertions ensuring template justfile.gh exposes release helpers. |
CHANGELOG.md |
Adds an Unreleased entry for the downstream release helper centralization. |
assets/workspace/.devcontainer/CHANGELOG.md |
Syncs the same Unreleased entry into the downstream template changelog. |
README.md |
Regenerated docs reflecting exposed recipe groups (e.g., [git]). |
CONTRIBUTE.md |
Regenerated docs reflecting exposed recipe groups (e.g., [git]). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Centralizes shared downstream helper recipes in
justfile.ghso GitHub-oriented and constant recipes are not duplicated in project-level files. The PR moves release and git helpers to a single source, keeps root behavior via import, updates template outputs, and adds focused integration coverage for template recipe exposure.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
justfile.ghprepare-release,finalize-release,publish-candidate,reset-changelog,pull)log,branch) into the same canonical GitHub/helper filegh_repovariable withTEST_REGISTRYoverride and restoreTLS_FLAGhandling forpulljustfileimport 'justfile.gh'assets/workspace/.devcontainer/justfile.ghjustfile.ghassets/workspace/justfile.projecttests/test_integration.pytest_just_pytesttotest_just_test_recipejustfile.ghcontains release helpers and expected workflow dispatch fragmentsCHANGELOG.mdandassets/workspace/.devcontainer/CHANGELOG.mdREADME.md,CONTRIBUTE.mdgenerate-docshookChangelog Entry
Changed
prepare-release,finalize-release,publish-candidate,reset-changelog, andpullintojustfile.ghso downstream workspace templates expose them by defaultimport 'justfile.gh'while consolidating release helper ownership in the GitHub-focused recipe fileTesting
just test)Manual Testing Details
N/A
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
just testwas not run for the full suite in this branch context; targeted verification executed:uv run pytest tests/test_integration.py -k TestJustRecipesjust --listinassets/workspaceto verify[git]and[release]recipe groups are exposedRefs: #373