diff options
author | Teddy Wing | 2017-11-08 04:21:52 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-08 04:21:52 +0100 |
commit | e0dca75f9b2de9023ecb978a0f9c8a11b905bcd1 (patch) | |
tree | b71ef5f1a2c644c8623fda1242dcd17aab78b5ea /src/lib.rs | |
parent | 7d357f0906c192b1440354803c166b2e0956bf95 (diff) | |
download | kipper-e0dca75f9b2de9023ecb978a0f9c8a11b905bcd1.tar.bz2 |
Add rough code for `update_commit_status`
This new function will make a request to the GitHub REST API to update
the status of a commit using the given arguments.
* Create a new `github` module for this to live in.
* Uses `mockito` to check that the request was made.
* The `API_URL` is necessary in order to set up 'mockito' to work
properly. That pattern is lifted from an example in the crate's docs:
http://lipanski.github.io/mockito/generated/mockito/index.html#example
* Sort of make a POST request to the GitHub API to update the status.
This doesn't actually work, though, of course, as it's incomplete. For
one thing, we haven't even included the 'reqwest' library, and for
another we need a way to get the GitHub owner name to build the API
URL.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,3 +1,4 @@ mod pull_request; +mod github; mod jenkins; mod af83; |