aboutsummaryrefslogtreecommitdiffstats
path: root/src/github.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/github.rs')
-rw-r--r--src/github.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/github.rs b/src/github.rs
index 55c7ce0..de4f602 100644
--- a/src/github.rs
+++ b/src/github.rs
@@ -4,7 +4,7 @@ extern crate reqwest;
use std::collections::HashMap;
use std::fmt;
-use self::reqwest::header::{Accept, qitem};
+use self::reqwest::header::{Accept, Authorization, Bearer, qitem};
use pull_request::CommitRef;
@@ -64,6 +64,13 @@ pub fn update_commit_status(
vec![qitem("application/vnd.github.v3+json".parse().unwrap())]
)
)
+ .header(
+ Authorization(
+ Bearer {
+ token: "token".to_owned()
+ }
+ )
+ )
.json(&params)
.send()
.unwrap();