Skip to content

feat: centralize shared git and release recipes in justfile.gh - #377

Merged
c-vigo merged 8 commits into
devfrom
feature/373-downstream-release-recipes
Mar 19, 2026
Merged

c-vigo merged 8 commits into
devfrom
feature/373-downstream-release-recipes

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Description

Centralizes shared downstream helper recipes in justfile.gh so 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 feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • justfile.gh
    • Add release helper recipes (prepare-release, finalize-release, publish-candidate, reset-changelog, pull)
    • Move shared git helpers (log, branch) into the same canonical GitHub/helper file
    • Use gh_repo variable with TEST_REGISTRY override and restore TLS_FLAG handling for pull
  • justfile
    • Remove duplicate release recipe definitions now sourced via import 'justfile.gh'
  • assets/workspace/.devcontainer/justfile.gh
    • Sync transformed downstream template output from updated justfile.gh
  • assets/workspace/justfile.project
    • Remove constant git helper recipes so project file keeps project-specific content
  • tests/test_integration.py
    • Rename outdated test_just_pytest to test_just_test_recipe
    • Add focused assertions that template justfile.gh contains release helpers and expected workflow dispatch fragments
  • CHANGELOG.md and assets/workspace/.devcontainer/CHANGELOG.md
  • README.md, CONTRIBUTE.md
    • Regenerated by pre-commit generate-docs hook

Changelog Entry

Changed

  • Downstream release helper recipes via GitHub justfile import (#373)
    • Move prepare-release, finalize-release, publish-candidate, reset-changelog, and pull into justfile.gh so downstream workspace templates expose them by default
    • Keep root recipe availability through import 'justfile.gh' while consolidating release helper ownership in the GitHub-focused recipe file

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

just test was not run for the full suite in this branch context; targeted verification executed:

  • uv run pytest tests/test_integration.py -k TestJustRecipes
  • just --list in assets/workspace to verify [git] and [release] recipe groups are exposed

Refs: #373

@c-vigo c-vigo self-assigned this Mar 19, 2026
@c-vigo
c-vigo requested a review from Copilot March 19, 2026 14:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 root justfile.
  • 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.

Comment thread tests/test_integration.py Resolved
Comment thread justfile.gh Resolved
@c-vigo
c-vigo enabled auto-merge March 19, 2026 16:02
@c-vigo
c-vigo merged commit 245bf1e into dev Mar 19, 2026
12 checks passed
@c-vigo
c-vigo deleted the feature/373-downstream-release-recipes branch March 19, 2026 16:02
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