Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: updatehooks skips updated repos that aren't out of date by default #575

Conversation

ian-bowden-slalom
Copy link
Contributor

@ian-bowden-slalom ian-bowden-slalom commented Jun 18, 2024

This PR adds a new argument to the updatehooks function named force_update which is set to False by default. if force_update is false, then we won't download/install the repo unless it is out of date. If force_update is True, then we'd download and install the latest repo version irrespective of the currently installed version.

There is currently no code (outside of unit tests) that's passing True for the force_update argument.

Changes

Testing

Clean Code Checklist

  • Meets acceptance criteria for issue
  • New logic is covered with automated tests
  • Appropriate exception handling added
  • Thoughtful logging included
  • Documentation is updated
  • Follow-up work is documented in TODOs
  • TODOs have a ticket associated with them
  • No commented-out code included

…eature/secureli-434-check-for-updates-in-pre-commit-before-forcing-update-regardless-of-need
@ian-bowden-slalom ian-bowden-slalom merged commit 88b3d99 into main Jun 26, 2024
5 checks passed
@ian-bowden-slalom ian-bowden-slalom deleted the feature/secureli-434-check-for-updates-in-pre-commit-before-forcing-update-regardless-of-need branch June 26, 2024 14:42
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.

Check for updates in pre-commit before forcing update regardless of need
3 participants