Skip to content

Copier update (exit zero)#23

Merged
ejfine merged 3 commits intomainfrom
exit-zero
May 9, 2025
Merged

Copier update (exit zero)#23
ejfine merged 3 commits intomainfrom
exit-zero

Conversation

@ejfine
Copy link
Contributor

@ejfine ejfine commented May 9, 2025

Pull in upstream changes

@ejfine ejfine requested a review from Copilot May 9, 2025 11:36
@ejfine ejfine self-assigned this May 9, 2025
Copy link

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 pulls upstream changes to update workflow configurations and related scripts, including a new "--exit-zero" flag in the hash update script, an updated Ubuntu version in the Dependabot workflow, and an updated devcontainer context hash alongside a Copier template version bump.

  • Added a "--exit-zero" flag to allow process exit with code 0 when the devcontainer hash changes.
  • Updated workflow configurations to use Ubuntu 24.04.
  • Updated the devcontainer hash and Copier commit version.

Reviewed Changes

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

Show a summary per file
File Description
template/.github/workflows/hash_git_files.py Added "--exit-zero" argument and updated exit code logic for devcontainer updates.
template/.github/workflows/dependabot-post-update.yaml Updated runner version and added the "--exit-zero" flag to the script command.
.github/workflows/hash_git_files.py Added "--exit-zero" argument and updated exit code logic for devcontainer updates.
.github/workflows/dependabot-post-update.yaml Updated runner version and modified the script command with "--exit-zero".
.devcontainer/devcontainer.json Updated the devcontainer context hash comment.
.copier-answers.yml Bumped the Copier commit version.

action="store_true",
help="Update the hash in the devcontainer.json file based on all files relevant to devcontainer context",
)
_ = parser.add_argument("--exit-zero", action="store_true", help="Exit with code 0 even if the hash changes")
Copy link

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

[nitpick] This same addition appears in multiple locations. Consider consolidating the hash update logic into a shared module to ease future maintenance, provided that the workflows can share common code.

Copilot uses AI. Check for mistakes.
action="store_true",
help="Update the hash in the devcontainer.json file based on all files relevant to devcontainer context",
)
_ = parser.add_argument("--exit-zero", action="store_true", help="Exit with code 0 even if the hash changes")
Copy link

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

[nitpick] This addition duplicates functionality present in the template version of the script. If both copies are intended to remain synchronized, consider refactoring to reduce code duplication.

Copilot uses AI. Check for mistakes.
@ejfine ejfine merged commit 54f2e6f into main May 9, 2025
8 checks passed
@ejfine ejfine deleted the exit-zero branch May 9, 2025 17:53
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