diff options
author | Teddy Wing | 2017-11-07 03:03:01 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-07 03:03:01 +0100 |
commit | 2f235fe9eb1e39db6d0d18818e89b63edf4e1b7b (patch) | |
tree | c0e3a243d7ec42bb44ebb241cb61149f9a9d38d8 /src/main.rs | |
parent | 3958a7c917976e4e3d5e86be73f2e5289849972f (diff) | |
download | kipper-2f235fe9eb1e39db6d0d18818e89b63edf4e1b7b.tar.bz2 |
pull_request.rs: Parse JSON payload to create `CommitRef` struct
The test now passes, and we create our `CommitRef` struct using actual
values from the parsed JSON.
In order to get the branch name, we need the part after the last "/" in
the "ref" key.
There are a ton of `unwrap`s here, but at least it's a start and it's
working now.
Diffstat (limited to 'src/main.rs')
0 files changed, 0 insertions, 0 deletions