diff options
author | Teddy Wing | 2017-11-12 19:22:52 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-12 19:22:52 +0100 |
commit | c3eac830c7713f2e2740b95fe2ef3664ae0a021d (patch) | |
tree | 52c50ef271f3d6d3b831957800ebc9e0b5edf9d1 /src/github.rs | |
parent | 1b2f71944f50ae3032737c0566c20ad046789b37 (diff) | |
download | kipper-c3eac830c7713f2e2740b95fe2ef3664ae0a021d.tar.bz2 |
update_commit_status(): Pass GitHub token from command line argument
Take the GitHub API token as a parameter and pass it through from
`find_and_track_build_and_update_status()`.
Diffstat (limited to 'src/github.rs')
-rw-r--r-- | src/github.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/github.rs b/src/github.rs index 731d261..83a5526 100644 --- a/src/github.rs +++ b/src/github.rs @@ -34,6 +34,7 @@ impl fmt::Display for CommitStatus { } pub fn update_commit_status( + github_token: &String, commit_ref: &CommitRef, state: &CommitStatus, target_url: String, @@ -68,7 +69,7 @@ pub fn update_commit_status( .header( Authorization( Bearer { - token: "token".to_owned() + token: github_token.to_owned() } ) ) |