aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2020-07-21 01:27:37 +0200
committerTeddy Wing2020-07-21 01:32:41 +0200
commit1e883be33f61818e941dd2a147ce1bba85d178ce (patch)
treee002fea57732f01644a9e9a662d2dfbd94b84c91 /Cargo.toml
parentd65b1ab87e4d3dbd7bf7ade653dd64dc5b715368 (diff)
downloadgit-suggestion-1e883be33f61818e941dd2a147ce1bba85d178ce.tar.bz2
Suggesstion: Implement `patch` to generate a patch for the suggestion
Still working on it, but have an initial draft working. There's no file name in the diff hunk, so I'm assuming I'm going to have to add one later. Build a patch from the diff hunk and suggestion comment. 1. Remove `-` lines 2. Change `+` lines to ` ` 3. Change last line to `-` 4. Append suggestion to the diff with a `+` prefix
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 651abdc..f00d14f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ edition = "2018"
[dependencies]
github-rs = "0.7.0"
+regex = "1.3.9"
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.56"
thiserror = "1.0.20"