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
✨ Set default repo from git #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this errors if not in a git repo
Can you trap the exception from check_output or run the git remote call with check=False? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I also routed stderr to devnull to quiet the error message
## Release 1.3.0 ### Summary - Emojis: ✨ x2 - Categories: Additions x2 ### New features and changes - [#23](#23) - ✨ Set default repo from git - [aae22a3](aae22a3) by [dankolbman](https://github.com/dankolbman) - [#22](#22) - ✨ Add github token to script step env - [63b8a7d](63b8a7d) by [fiendish](https://github.com/fiendish)
## Release 1.3.0 ### Summary - Emojis: ✨ x3 - Categories: Additions x3 ### New features and changes - [#26](#26) - ✨ Warn and give second chance if missing GH_TOKEN - [5835c1d](5835c1d) by [fiendish](https://github.com/fiendish) - [#23](#23) - ✨ Set default repo from git - [aae22a3](aae22a3) by [dankolbman](https://github.com/dankolbman) - [#22](#22) - ✨ Add github token to script step env - [63b8a7d](63b8a7d) by [fiendish](https://github.com/fiendish)
Sets the default repo url by extracting the origin's url from the current git repository.