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

InfrahubCTL: Repository command changes #244

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from

Conversation

FragmentedPacket
Copy link
Contributor

@FragmentedPacket FragmentedPacket commented Jan 18, 2025

These changes allow us to set the ref which is used to define what release/branch/commit to uae

  • Do not create/set blank credentials if no username or password are provided
  • Change commit to ref option and update code to reflect the same (Breaking Change)

Is commit supposed to be an available field to update or one that gets set on synchronization?

…tion in favor of ref option to match API and allow setting the ref on CTL.
Copy link

codecov bot commented Jan 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

@@           Coverage Diff           @@
##           stable     #244   +/-   ##
=======================================
  Coverage   70.28%   70.29%           
=======================================
  Files          82       82           
  Lines        7462     7463    +1     
  Branches     1385     1386    +1     
=======================================
+ Hits         5245     5246    +1     
  Misses       1842     1842           
  Partials      375      375           
Flag Coverage Δ
integration-tests 22.45% <0.00%> (-0.01%) ⬇️
python-3.10 45.49% <100.00%> (+<0.01%) ⬆️
python-3.11 45.49% <100.00%> (+<0.01%) ⬆️
python-3.12 45.49% <100.00%> (+<0.01%) ⬆️
python-3.13 45.49% <100.00%> (+<0.01%) ⬆️
python-3.9 45.49% <100.00%> (+<0.01%) ⬆️
python-filler-3.12 24.07% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
infrahub_sdk/ctl/repository.py 74.07% <100.00%> (+0.48%) ⬆️

@@ -70,7 +70,7 @@ async def add(
description: str = "",
username: str | None = None,
password: str = "",
commit: str = "",
ref: str = "",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to keep commit but make it mutually exclusive with ref?

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.

1 participant