Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(cli): do not require config file to run CLI#1743

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intomainfromfeat/cli-without-config-file
Dec 13, 2021

Conversation

nejch
Copy link
Member

@nejchnejch commentedDec 12, 2021
edited
Loading

BREAKING CHANGE: A config file is no longer needed to run
the CLI. python-gitlab will default tohttps://gitlab.com
with no authentication if there is no config file provided.
python-gitlab will now also only look for configuration
in the provided PYTHON_GITLAB_CFG path, instead of merging
it with user- and system-wide config files. If the
environment variable is defined and the file cannot be
opened, python-gitlab will now explicitly fail.

Needed for#1296

@codecov-commenter
Copy link

codecov-commenter commentedDec 12, 2021
edited
Loading

Codecov Report

Merging#1743 (92a893b) intomain (af33aff) willdecrease coverage by0.00%.
The diff coverage is97.22%.

@@            Coverage Diff             @@##             main    #1743      +/-   ##==========================================- Coverage   91.97%   91.97%   -0.01%==========================================  Files          76       76                Lines        4737     4759      +22     ==========================================+ Hits         4357     4377      +20- Misses        380      382       +2
FlagCoverage Δ
cli_func_v481.34% <94.44%> (+0.04%)⬆️
py_func_v480.71% <73.61%> (-0.21%)⬇️
unit83.23% <94.44%> (+0.03%)⬆️

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

Impacted FilesCoverage Δ
gitlab/config.py94.44% <97.22%> (+0.77%)⬆️
gitlab/cli.py98.16% <0.00%> (-1.84%)⬇️

@nejchnejchforce-pushed thefeat/cli-without-config-file branch 2 times, most recently from8884417 tod0c6005CompareDecember 12, 2021 19:44
@nejchnejch marked this pull request as ready for reviewDecember 12, 2021 19:47
Copy link
Member

@JohnVillalovosJohnVillalovos left a comment

Choose a reason for hiding this comment

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

Can functional tests be added for this. In particular a functional test that demonstrates it works without a config file? Though I guess that will try to contacthttps://gitlab.com/ 😟

@nejchnejchforce-pushed thefeat/cli-without-config-file branch fromd0c6005 toe6449d3CompareDecember 12, 2021 23:47
BREAKING CHANGE: A config file is no longer needed to runthe CLI. python-gitlab will default tohttps://gitlab.comwith no authentication if there is no config file provided.python-gitlab will now also only look for configurationin the provided PYTHON_GITLAB_CFG path, instead of mergingit with user- and system-wide config files. If theenvironment variable is defined and the file cannot beopened, python-gitlab will now explicitly fail.
@nejchnejchforce-pushed thefeat/cli-without-config-file branch frome6449d3 to92a893bCompareDecember 13, 2021 00:11
Copy link
Member

@JohnVillalovosJohnVillalovos left a comment

Choose a reason for hiding this comment

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

Looks good to me. I wasn't sure if you wanted to merge it or not.

Please merge whenever you are ready.

Thanks.

@nejchnejch merged commit170a4d9 intomainDec 13, 2021
@nejchnejch deleted the feat/cli-without-config-file branchDecember 13, 2021 08:32
@nejchnejch mentioned this pull requestJan 5, 2022
15 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JohnVillalovosJohnVillalovosJohnVillalovos approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@nejch@codecov-commenter@JohnVillalovos

[8]ページ先頭

©2009-2025 Movatter.jp