ci: make workflows consistent with justfile, check uv.lock in recipes#115
Conversation
Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/e0a8a3ec-de14-447a-aecb-c240efbb8f0f Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/48579cd4-2f55-4193-bc4e-30f80e1e87f3 Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/9b5175d1-7644-4588-8ad7-4f59eef31156 Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
dwilding
left a comment
There was a problem hiding this comment.
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.
Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/279f1679-9813-47db-b9e7-bfe9a85c7212 Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
|
dwilding
left a comment
There was a problem hiding this comment.
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.
Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/94b074e8-0574-4ee6-b8e7-37e3a4d70d30 Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
Fixed in d2adf07 — |
dwilding
left a comment
There was a problem hiding this comment.
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.
…rkflows.sarif Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/9bf26cb2-2ede-422d-bc4e-03f97d261d7d Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
Done in 36a3995. The |
dwilding
left a comment
There was a problem hiding this comment.
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?
Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/a93a08b4-a24b-41e3-992f-6f9b6a19a025 Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
|
Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/164080e9-0e34-48bf-86a6-aaf8474114d0 Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
dwilding
left a comment
There was a problem hiding this comment.
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.
…ecipes Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/417a5b42-55d8-49ce-b644-35d250d88062 Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
Done in d365bdb. All relevant recipes ( |
…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>
There was a problem hiding this comment.
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
justrecipecheck-command-reference→command-refand update consumers (pre-commit + new workflow). - Add a dedicated
.github/workflows/command-reference.yamlworkflow and simplifylint.yamlaccordingly. - Update
zizmorto generateworkflows.sarifvia thejustfilerecipe, 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. |
dwilding
left a comment
There was a problem hiding this comment.
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.
Agent-Logs-Url: https://github.com/dwilding/gimmegit/sessions/b49e60dd-c9cf-41af-8297-b8102f9ed365 Co-authored-by: dwilding <1141260+dwilding@users.noreply.github.com>
Done in 1d7ba64 — renamed |
This PR makes several adjustments to the GitHub workflows and development commands (in
justfile) for consistency and predictability.