diff options
author | Teddy Wing | 2020-08-01 01:38:07 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-01 01:38:07 +0200 |
commit | eb74fee6be6876b86c97cdea0205ec970152358e (patch) | |
tree | 0c0f84de46684e0baf5a39b69cccf9f71ff6f4d0 /Cargo.lock | |
parent | 25ce03b6102cf017cf9cbba7e28dbd0d76ab5a5d (diff) | |
download | git-suggestion-eb74fee6be6876b86c97cdea0205ec970152358e.tar.bz2 |
Add a function to get an owner-repo pair from the Git repo remote
This will allow us to accept suggestion IDs alone, without a full URL,
like the following:
$ git sugapply 459691747
# or
$ git sugapply --remote upstream 459691747
# or
$ git config github-suggestion.remote upstream
$ git sugapply 459691747
We do this by extracting the pair from the remote URL.
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -264,6 +264,7 @@ version = "0.0.1" dependencies = [ "git2", "github-rs", + "github-suggestion-config", "regex", "serde", "serde_json", @@ -273,6 +274,15 @@ dependencies = [ ] [[package]] +name = "github-suggestion-config" +version = "0.0.1" +dependencies = [ + "git2", + "thiserror", + "url", +] + +[[package]] name = "h2" version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" |