Skip to content

ci: make workflows consistent with justfile, check uv.lock in recipes#115

Merged
dwilding merged 11 commits into
mainfrom
copilot/update-justfile-to-use-uv-locked
Apr 18, 2026
Merged

ci: make workflows consistent with justfile, check uv.lock in recipes#115
dwilding merged 11 commits into
mainfrom
copilot/update-justfile-to-use-uv-locked

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 18, 2026

This PR makes several adjustments to the GitHub workflows and development commands (in justfile) for consistency and predictability.

Copy link
Copy Markdown
Owner

@dwilding dwilding left a comment

Choose a reason for hiding this comment

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

For the command reference check in the justfile, let's not use --locked. This should be a standalone script that ignores the locked dependencies. So I think --no-project would be appropriate. But please research whether --script would be even better (does it imply --no-project?). Please use whichever approach you find to be most suitable.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 18, 2026

For the command reference check in the justfile, let's not use --locked. This should be a standalone script that ignores the locked dependencies. So I think --no-project would be appropriate. But plea...

--script does imply --no-project — it treats the file as a PEP 723 standalone script and doesn't consult the project's pyproject.toml at all. So I've used --script for extract_command_reference.py and --no-project for gimmegit -h (since that's a tool invocation, not a script). Commit c8ee793.

Copilot AI requested a review from dwilding April 18, 2026 14:41
Copy link
Copy Markdown
Owner

@dwilding dwilding left a comment

Choose a reason for hiding this comment

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

You wrote:

... and --no-project for gimmegit -h (since that's a tool invocation, not a script)

But gimmegit is our tool. We ought to be running this with our dependencies.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 18, 2026

You wrote:

... and --no-project for gimmegit -h (since that's a tool invocation, not a script)...

Fixed in d2adf07gimmegit -h now uses --locked again.

Copilot AI requested a review from dwilding April 18, 2026 14:46
Copy link
Copy Markdown
Owner

@dwilding dwilding left a comment

Choose a reason for hiding this comment

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

Let's align the zizmor workflow with zizmor in the justfile. Use the workflow in the justfile, so that the workflow can call the justfile recipe (similarly to other workflows). Let's also rename the output file to workflows.sarif. Don't forget to gitignore this file.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 18, 2026

Let's align the zizmor workflow with zizmor in the justfile. Use the workflow in the justfile, so that the workflow can call the justfile recipe (similarly to other workflows). Let's also rename the o...

Done in 36a3995. The zizmor justfile recipe now runs uv run --locked zizmor --format=sarif . > workflows.sarif, zizmor.yaml calls uvx --from rust-just just zizmor (consistent with other workflows), and workflows.sarif is added to .gitignore.

Copilot AI changed the title Split checks workflow and rename justfile command Split checks workflow, rename justfile command, and align zizmor workflow Apr 18, 2026
Copilot AI requested a review from dwilding April 18, 2026 14:56
Copy link
Copy Markdown
Owner

@dwilding dwilding left a comment

Choose a reason for hiding this comment

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

Please review whether pre-commit config needs updating after the justfile naming change. Are there any other call sites to the justfile that need changing?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 18, 2026

Please review whether pre-commit config needs updating after the justfile naming change. Are there any other call sites to the justfile that need changing?

.pre-commit-config.yaml still referenced just check-command-reference — updated to just command-reference in fa2154c. The README only has an anchor link to the "Command reference" section heading (unrelated to the justfile recipe name), so no change needed there.

Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/164080e9-0e34-48bf-86a6-aaf8474114d0

Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
Copilot AI requested a review from dwilding April 18, 2026 15:28
Copy link
Copy Markdown
Owner

@dwilding dwilding left a comment

Choose a reason for hiding this comment

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

I think it's too noisy to have --locked everywhere in the justfile. Let's adjust the apporach. Instead, as the first step in all relevant recipes, please include uv lock --check.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 18, 2026

I think it's too noisy to have --locked everywhere in the justfile. Let's adjust the apporach. Instead, as the first step in all relevant recipes, please include uv lock --check.

Done in d365bdb. All relevant recipes (format, lint, test, zizmor, command-reference, demo) now start with uv lock --check, and --locked has been removed from all uv run calls.

Copilot AI requested a review from dwilding April 18, 2026 22:55
Comment thread .github/workflows/command-reference.yaml Outdated
Comment thread .pre-commit-config.yaml Outdated
…s from pre-commit hooks

Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/1604aa7e-46cc-4dd6-ac2a-d2ddf9dcb00f

Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
Copilot AI requested a review from dwilding April 18, 2026 23:03
@dwilding dwilding marked this pull request as ready for review April 18, 2026 23:04
Copilot AI review requested due to automatic review settings April 18, 2026 23:04
Copy link
Copy Markdown

Copilot AI left a comment

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 splits the “command reference” verification into its own GitHub Actions workflow, renames the related just recipe, and aligns the zizmor workflow to invoke just consistently while standardizing the SARIF output filename.

Changes:

  • Rename just recipe check-command-referencecommand-ref and update consumers (pre-commit + new workflow).
  • Add a dedicated .github/workflows/command-reference.yaml workflow and simplify lint.yaml accordingly.
  • Update zizmor to generate workflows.sarif via the justfile recipe, upload that SARIF in CI, and ignore the file in git.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
justfile Adds uv lock --check, renames the command reference recipe, and standardizes zizmor SARIF output to workflows.sarif.
.pre-commit-config.yaml Updates local hook to call just command-ref and removes optional name fields.
.gitignore Ignores generated workflows.sarif.
.github/workflows/zizmor.yaml Switches to running zizmor via uvx … just zizmor and uploads workflows.sarif.
.github/workflows/lint.yaml Renames the workflow/job and removes the command reference step (now separate workflow).
.github/workflows/command-reference.yaml Adds a new workflow to run the command-ref check on PRs and main pushes.

Comment thread justfile
Comment thread justfile Outdated
Copy link
Copy Markdown
Owner

@dwilding dwilding left a comment

Choose a reason for hiding this comment

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

Please rename command-reference.yaml to command-ref.yaml. Please also rename the corresponding python script to use ref instead of reference in the name.

Comment thread justfile
Comment thread justfile Outdated
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 18, 2026

Please rename command-reference.yaml to command-ref.yaml. Please also rename the corresponding python script to use ref instead of reference in the name.

Done in 1d7ba64 — renamed command-reference.yamlcommand-ref.yaml and extract_command_reference.pyextract_command_ref.py.

Copilot AI requested a review from dwilding April 18, 2026 23:21
@dwilding dwilding changed the title Split checks workflow, rename justfile command, and align zizmor workflow ci: make workflows consistent with justfile, check uv.lock in recipes Apr 18, 2026
@dwilding dwilding merged commit b90f616 into main Apr 18, 2026
12 checks passed
@dwilding dwilding deleted the copilot/update-justfile-to-use-uv-locked branch April 18, 2026 23:30
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.

3 participants