Mislav Marohnić
446a4111f7
Respect hostnames when resolving git remotes and URL args to repos
2020-07-02 20:36:10 +02:00
Mislav Marohnić
3ea71e6eb6
Add ability to parse non-GitHub.com git remotes
2020-06-23 19:51:26 +02:00
Kevin Bluer
d440a95aed
Improved error message when "owner/repo" format not provided ( #919 )
...
Fixes #882
2020-05-18 11:13:48 +02:00
vilmibm
c4693077aa
move config stuff to its own package
2020-04-20 13:57:16 -05:00
Mislav Marohnić
894899c71d
Add code docs for ghrepo package
2020-03-27 14:01:44 +01:00
Mislav Marohnić
303f60815f
Support www.github.com git remote URLs
2020-03-27 14:01:44 +01:00
Mislav Marohnić
c17251d106
Add table-driven test for repoFromURL
2020-03-27 14:01:44 +01:00
Dasio
9289ab99f2
Use var syntax when empty struct is initialized
2020-02-24 22:33:22 +01:00
Mislav Marohnić
1f90579d2a
Extract common interface for a GitHub Repository
...
Also define a handful of utility methods:
- `New(owner, repo)`
- `FullName`: the name slash owner pair
- `FromFullName`: parse the name slash owner pair
- `FromURL`: parse a GitHub.com URL
- `IsSame(r1, r2)`: compare two repositories
2020-01-22 22:44:46 +01:00