modified repo file

This commit is contained in:
Wyatt J. Miller 2021-12-18 20:10:53 -05:00
parent 4d29b50868
commit 4374c78d3c

View File

@ -118,6 +118,8 @@ impl Repository {
); );
map.insert("name", arg_value); map.insert("name", arg_value);
map.insert("readme", arg_value);
map.insert("description", arg_value);
let response = client.post(url.as_str()).json(&map).send(); let response = client.post(url.as_str()).json(&map).send();
@ -152,7 +154,7 @@ impl Repository {
.unwrap() .unwrap()
.collect(); .collect();
let url = format!( let url = format!(
r"{request}/repos/{owner}/{repo}?token={api_token}", "{request}/repos/{owner}/{repo}?token={api_token}",
request = request.url.as_ref().unwrap(), request = request.url.as_ref().unwrap(),
owner = request.authentication.credentials.0.as_ref().unwrap(), owner = request.authentication.credentials.0.as_ref().unwrap(),
repo = arg_value[1], repo = arg_value[1],