-
Notifications
You must be signed in to change notification settings - Fork 28
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
Improve handling of default env vars vs command line switches -- better messages, etc #12
Comments
That is ... odd. It does need some love in the docs dept, and a few other commands that are missing based on my daily workflow, but I'm using the module just about every day. A couple of co-workers are using it as well. Out of curiosity, have you closed your session then reopened after setting the token? Maybe I have a bug in storing the environment variable properly after initial creation. |
I see GITHUB_OAUTH_TOKEN in "dir env:" but restarted console session anyway. I'm assuming the only variable I must have set is oauth? |
A couple of other tips to figure out what might be going on...
I was almost going to say it could be a git line ending issue, if you happened to clone locally with |
Yes, Try setting your username and org with the |
Great tips, thanks. I'll set user/org and also learn those debug options, and see what is tripping it up. BTW Get-GitHubIssues works, but none of the other Get's (Teams, Events, Repos) work. |
Yeah.. I think I set them up to read the env var if it the command line switch isn't passed. Hopefully soon I'll get a chance to take a pass through and improve the docs / arg validation. I'm using built-in PS validation, but when a value isn't passed and the environment variable isn't set, I'm likely not dropping nice user messages. Definite room for improvement -- this was hacked together pretty quickly 😸 Thanks for trying it out, and PRs are welcome if you run into anything else. |
I'm going to leave this issue open as a reminder to fix validation / add inline docs. |
it looks like on line 573, for piping your -match to |
actually if I remove the array syntax from |
Was thinking I was going to have to write my own tool to check github repos from PowerShell, but found yours. I've tried it on Server 2012, Win8, and now Win7 (with Posh 3.0) and get the same errors every time. Wondered if I was doing it wrong or what.
After getting token, and running Get-GitHubRepositories I get "unexpected error occurred" at line 1 char 1.
Thanks for any help or suggestions.
The text was updated successfully, but these errors were encountered: