Skip to content

Conversation

@Matars
Copy link
Owner

@Matars Matars commented Dec 21, 2025

Thanks to @Zeviraty and @minhtrancccp for pointing out faults in the provider logic.

@minhtrancccp You also suggested having a token file for managing the credentials, you can do that in the config file. (delete current ~/.config/gitfetch/gitfetch.conf to reset the file)

I will let this PR linger for 1-2 days if anyone wants to test it, I have not been able to recreate any bugs.

In the meantime I am working on better GITFETCH_DEBUG=1 flag and adding it to the --help

Summary

Revamped Provider logic to into a data class that was suggested from this PR #69
This should fix:

Changes

  • Reworked how providers are handled by using an mew Provider class
  • GH_TOKEN unset no longer crashes program if None
  • Provider-specific config sections in .conf file ([github], [gitlab], etc.)
  • GITLAB_TOKEN support matching GitHub's GH_TOKEN

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.

Clearing cache breaks login

2 participants