Mislav Marohnić
8453bf679c
Fix parsing non-GitHub remotes
...
Otherwise, the remote URL translation mechanism had crashed when
encountering a non-Github.com git remote.
2020-01-28 19:51:44 +01:00
Mislav Marohnić
a710893fc1
Rename to cli/cli
2020-01-24 16:08:52 +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
Mislav Marohnić
641de86427
Eliminate package-level state in git remote parsing
2019-10-25 21:48:25 +02:00
Mislav Marohnić
d334d56f09
Test FindByName
2019-10-17 16:10:45 +02:00
Mislav Marohnić
51c70dd918
Add test for invalid remote URLs
2019-10-17 16:05:25 +02:00
Mislav Marohnić
183db99535
Ensure remote URL parsing tests don't read user SSH config files
2019-10-17 15:58:26 +02:00
Mislav Marohnić
79e8766d8f
Use eq in more tests
2019-10-17 14:44:53 +02:00
Mislav Marohnić
c09eb742c3
Keep original order of remotes
2019-10-17 13:46:35 +02:00
Mislav Marohnić
a8aa5feb02
Test remote parsing
2019-10-17 02:25:59 +02:00
Mislav Marohnić
8016d80884
Create overridable Context interface
2019-10-17 02:25:59 +02:00