modified repo file
This commit is contained in:
parent
4d29b50868
commit
4374c78d3c
@ -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],
|
||||||
|
Loading…
Reference in New Issue
Block a user