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

store token in config file #20

Open
splitbrain opened this issue Dec 15, 2021 · 1 comment
Open

store token in config file #20

splitbrain opened this issue Dec 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@splitbrain
Copy link

It would make token handling easier if I could create a ~/.gittyrc or similar config file to store the tokens. Even better if gitty would ask for a token interactively when needed and store it in the config file.

@muesli muesli added the enhancement New feature or request label Dec 19, 2021
@gedw99
Copy link

gedw99 commented Dec 26, 2021

lots of different ways to do ENV sniffing.

At the moment it looks for the environment variable of "GITHUB_TOKEN" (

gitty/git.go

Line 55 in 3f73ba0

token = os.Getenv("GITHUB_TOKEN")
) which is reasonably standard practice.

Maybe failing finding that default , it can do do the ~/.gittyrc ... I am not sure myself though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants