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

feat: add netrc support #252

Merged
merged 3 commits into from
Mar 8, 2024
Merged

Conversation

blaggacao
Copy link
Contributor

@blaggacao blaggacao commented Mar 1, 2024

due to the removal of the prefix key in the token configuration, this is a breaking change.

closes #251


I tested and confirmed that I could use my netrc file (withou using the keyfile) to access the relevant gitlab token and it detected correctly the version update.

@lilydjwg
Copy link
Owner

lilydjwg commented Mar 2, 2024

I don't think it's necessary to do a breaking change. You can strip the prefix until _ to query netrc.

Also, can you put custom github instance support in a separate commit?

@blaggacao blaggacao changed the title feat!: add netrc support feat: add netrc support Mar 2, 2024
@blaggacao
Copy link
Contributor Author

@lilydjwg done so far, please feel free to review again and thanks for accepting this feature.

Copy link
Owner

@lilydjwg lilydjwg left a comment

Choose a reason for hiding this comment

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

It's mostly good except a few things in the inline comments.

nvchecker/util.py Outdated Show resolved Hide resolved
docs/usage.rst Outdated Show resolved Hide resolved
while the old way of declaring the keys is still available it is no longer documented

this should encourage new users to use the new, netrc-compatible way
@blaggacao blaggacao requested a review from lilydjwg March 4, 2024 11:54
@lilydjwg lilydjwg merged commit f8a73a5 into lilydjwg:master Mar 8, 2024
22 of 23 checks passed
@blaggacao blaggacao deleted the feat/support-netrcs branch March 8, 2024 12:39
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.

Support netrc file
2 participants