Created
March 3, 2023 20:28
-
-
Save chantra/c30751e00fe6034a4ace4ac73646afc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/github/src/actions.rs b/github/src/actions.rs | |
index 305023a..607f193 100644 | |
--- a/github/src/actions.rs | |
+++ b/github/src/actions.rs | |
@@ -34,7 +34,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/permissions", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -73,7 +73,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/permissions", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -122,7 +122,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/permissions/repositories?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -160,7 +160,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/permissions/repositories", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -198,7 +198,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/permissions/repositories/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
), | |
None, | |
@@ -237,7 +237,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/permissions/repositories/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
), | |
None, | |
@@ -274,7 +274,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/permissions/selected-actions", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -315,7 +315,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/permissions/selected-actions", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -365,7 +365,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -405,7 +405,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -445,7 +445,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -486,7 +486,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -528,7 +528,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -581,7 +581,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}/repositories?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
query_ | |
), | |
@@ -624,7 +624,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}/repositories", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -669,7 +669,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}/repositories/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
), | |
@@ -714,7 +714,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}/repositories/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
), | |
@@ -768,7 +768,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}/runners?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
query_ | |
), | |
@@ -811,7 +811,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}/runners", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -856,7 +856,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}/runners/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
@@ -901,7 +901,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runner-groups/{}/runners/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
@@ -951,7 +951,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runners?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -988,7 +988,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runners/downloads", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1022,7 +1022,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runners/downloads", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1066,7 +1066,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runners/registration-token", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1111,7 +1111,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runners/remove-token", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1149,7 +1149,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runners/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
None, | |
@@ -1188,7 +1188,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/runners/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
None, | |
@@ -1235,7 +1235,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1267,7 +1267,7 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets/public-key", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1303,8 +1303,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -1415,8 +1415,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -1448,8 +1448,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -1497,8 +1497,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets/{}/repositories?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
query_ | |
), | |
None, | |
@@ -1536,8 +1536,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets/{}/repositories", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -1575,8 +1575,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets/{}/repositories/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
), | |
None, | |
@@ -1615,8 +1615,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/actions/secrets/{}/repositories/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
), | |
None, | |
@@ -1665,8 +1665,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/artifacts?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -1705,8 +1705,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/artifacts/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&artifact_id.to_string()), | |
), | |
None, | |
@@ -1740,8 +1740,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/artifacts/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&artifact_id.to_string()), | |
), | |
None, | |
@@ -1785,10 +1785,10 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/artifacts/{}/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&artifact_id.to_string()), | |
- crate::progenitor_support::encode_path(archive_format), | |
+ crate::progenitor_support::encode_path(&archive_format.to_string()), | |
), | |
None, | |
); | |
@@ -1826,8 +1826,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/jobs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&job_id.to_string()), | |
), | |
None, | |
@@ -1869,8 +1869,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/jobs/{}/logs", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&job_id.to_string()), | |
), | |
None, | |
@@ -1910,8 +1910,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/permissions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1952,8 +1952,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/permissions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1991,8 +1991,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/permissions/selected-actions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2035,8 +2035,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/permissions/selected-actions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2084,8 +2084,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runners?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -2124,8 +2124,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runners/downloads", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2160,8 +2160,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runners/downloads", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2206,8 +2206,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runners/registration-token", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2252,8 +2252,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runners/remove-token", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2294,8 +2294,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runners/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
None, | |
@@ -2337,8 +2337,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runners/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
None, | |
@@ -2414,8 +2414,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -2454,8 +2454,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2491,8 +2491,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2531,8 +2531,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/approvals", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2567,8 +2567,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/approvals", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2604,8 +2604,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/approve", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2656,8 +2656,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/artifacts?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
query_ | |
), | |
@@ -2692,8 +2692,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/cancel", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2751,8 +2751,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/jobs?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
query_ | |
), | |
@@ -2795,8 +2795,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/logs", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2835,8 +2835,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/logs", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2877,8 +2877,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/pending_deployments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2915,8 +2915,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/pending_deployments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2958,8 +2958,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/pending_deployments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -2993,8 +2993,48 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/rerun", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&run_id.to_string()), | |
+ ), | |
+ None, | |
+ ); | |
+ self.client | |
+ .post( | |
+ &url, | |
+ crate::Message { | |
+ body: None, | |
+ content_type: None, | |
+ }, | |
+ ) | |
+ .await | |
+ } | |
+ /** | |
+ * Re-run failed jobs from a workflow run. | |
+ * | |
+ * This function performs a `POST` to the `/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs` endpoint. | |
+ * | |
+ * Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint. | |
+ * | |
+ * FROM: <https://docs.github.com/rest/reference/actions#re-run-workflow-failed-jobs> | |
+ * | |
+ * **Parameters:** | |
+ * | |
+ * * `owner: &str` | |
+ * * `repo: &str` | |
+ * * `run_id: i64` -- The id of the workflow run. | |
+ */ | |
+ pub async fn re_run_workflow_failed_jobs( | |
+ &self, | |
+ owner: &str, | |
+ repo: &str, | |
+ run_id: i64, | |
+ ) -> Result<()> { | |
+ let url = self.client.url( | |
+ &format!( | |
+ "/repos/{}/{}/actions/runs/{}/rerun-failed-jobs", | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -3035,8 +3075,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/runs/{}/timing", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&run_id.to_string()), | |
), | |
None, | |
@@ -3085,8 +3125,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/secrets?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -3123,8 +3163,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/secrets/public-key", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -3162,9 +3202,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/secrets/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -3277,9 +3317,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/secrets/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -3317,9 +3357,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/secrets/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -3367,8 +3407,8 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/workflows?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -3407,9 +3447,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/workflows/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(workflow_id), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&workflow_id.to_string()), | |
), | |
None, | |
); | |
@@ -3444,9 +3484,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/workflows/{}/disable", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(workflow_id), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&workflow_id.to_string()), | |
), | |
None, | |
); | |
@@ -3489,9 +3529,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/workflows/{}/dispatches", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(workflow_id), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&workflow_id.to_string()), | |
), | |
None, | |
); | |
@@ -3526,9 +3566,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/workflows/{}/enable", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(workflow_id), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&workflow_id.to_string()), | |
), | |
None, | |
); | |
@@ -3605,9 +3645,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/workflows/{}/runs?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(workflow_id), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&workflow_id.to_string()), | |
query_ | |
), | |
None, | |
@@ -3648,9 +3688,9 @@ impl Actions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/actions/workflows/{}/timing", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(workflow_id), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&workflow_id.to_string()), | |
), | |
None, | |
); | |
@@ -3699,7 +3739,7 @@ impl Actions { | |
&format!( | |
"/repositories/{}/environments/{}/secrets?{}", | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
- crate::progenitor_support::encode_path(environment_name), | |
+ crate::progenitor_support::encode_path(&environment_name.to_string()), | |
query_ | |
), | |
None, | |
@@ -3737,7 +3777,7 @@ impl Actions { | |
&format!( | |
"/repositories/{}/environments/{}/secrets/public-key", | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
- crate::progenitor_support::encode_path(environment_name), | |
+ crate::progenitor_support::encode_path(&environment_name.to_string()), | |
), | |
None, | |
); | |
@@ -3776,8 +3816,8 @@ impl Actions { | |
&format!( | |
"/repositories/{}/environments/{}/secrets/{}", | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
- crate::progenitor_support::encode_path(environment_name), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&environment_name.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -3891,8 +3931,8 @@ impl Actions { | |
&format!( | |
"/repositories/{}/environments/{}/secrets/{}", | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
- crate::progenitor_support::encode_path(environment_name), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&environment_name.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
@@ -3931,8 +3971,8 @@ impl Actions { | |
&format!( | |
"/repositories/{}/environments/{}/secrets/{}", | |
crate::progenitor_support::encode_path(&repository_id.to_string()), | |
- crate::progenitor_support::encode_path(environment_name), | |
- crate::progenitor_support::encode_path(secret_name), | |
+ crate::progenitor_support::encode_path(&environment_name.to_string()), | |
+ crate::progenitor_support::encode_path(&secret_name.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/activity.rs b/github/src/activity.rs | |
index 4db0579..38c0ca3 100644 | |
--- a/github/src/activity.rs | |
+++ b/github/src/activity.rs | |
@@ -62,7 +62,7 @@ impl Activity { | |
* FROM: <https://docs.github.com/rest/reference/activity#list-public-events> | |
*/ | |
pub async fn list_all_public_events(&self) -> Result<Vec<crate::types::Event>> { | |
- let url = self.client.url("/events", None); | |
+ let url = self.client.url(&"/events".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -93,7 +93,7 @@ impl Activity { | |
* FROM: <https://docs.github.com/rest/reference/activity#get-feeds> | |
*/ | |
pub async fn get_feeds(&self) -> Result<crate::types::Feed> { | |
- let url = self.client.url("/feeds", None); | |
+ let url = self.client.url(&"/feeds".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -138,8 +138,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/networks/{}/{}/events?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -173,8 +173,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/networks/{}/{}/events", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -302,7 +302,7 @@ impl Activity { | |
&self, | |
body: &crate::types::ActivityMarkNotificationsAsReadRequest, | |
) -> Result<crate::types::Error> { | |
- let url = self.client.url("/notifications", None); | |
+ let url = self.client.url(&"/notifications".to_string(), None); | |
self.client | |
.put( | |
&url, | |
@@ -513,7 +513,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/events?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -543,7 +543,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/events", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -591,8 +591,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/events?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -626,8 +626,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/events", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -695,8 +695,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/notifications?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -748,8 +748,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/notifications?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -787,8 +787,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/notifications", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -838,8 +838,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stargazers?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -888,8 +888,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/subscribers?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -923,8 +923,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/subscribers", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -960,8 +960,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/subscription", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -998,8 +998,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/subscription", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1031,8 +1031,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/subscription", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1157,8 +1157,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/user/starred/{}/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1190,8 +1190,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/user/starred/{}/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1223,8 +1223,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/user/starred/{}/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1292,7 +1292,7 @@ impl Activity { | |
pub async fn list_all_watched_repos_for_authenticated_user( | |
&self, | |
) -> Result<Vec<crate::types::MinimalRepository>> { | |
- let url = self.client.url("/user/subscriptions", None); | |
+ let url = self.client.url(&"/user/subscriptions".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -1335,7 +1335,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/events?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1368,7 +1368,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/events", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1416,8 +1416,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/events/orgs/{}?{}", | |
- crate::progenitor_support::encode_path(username), | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1451,8 +1451,8 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/events/orgs/{}", | |
- crate::progenitor_support::encode_path(username), | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1498,7 +1498,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/events/public?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1531,7 +1531,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/events/public", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1577,7 +1577,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/received_events?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1610,7 +1610,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/received_events", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1656,7 +1656,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/received_events/public?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1689,7 +1689,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/received_events/public", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1749,7 +1749,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/starred?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1796,7 +1796,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/subscriptions?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1829,7 +1829,7 @@ impl Activity { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/subscriptions", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/apps.rs b/github/src/apps.rs | |
index 5a22640..e5170b9 100644 | |
--- a/github/src/apps.rs | |
+++ b/github/src/apps.rs | |
@@ -24,7 +24,7 @@ impl Apps { | |
* FROM: <https://docs.github.com/rest/reference/apps#get-the-authenticated-app> | |
*/ | |
pub async fn get_authenticated(&self) -> Result<crate::types::GitHubApp> { | |
- let url = self.client.url("/app", None); | |
+ let url = self.client.url(&"/app".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -55,7 +55,7 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/app-manifests/{}/conversions", | |
- crate::progenitor_support::encode_path(code), | |
+ crate::progenitor_support::encode_path(&code.to_string()), | |
), | |
None, | |
); | |
@@ -81,7 +81,7 @@ impl Apps { | |
* FROM: <https://docs.github.com/rest/reference/apps#get-a-webhook-configuration-for-an-app> | |
*/ | |
pub async fn get_webhook_config_for_app(&self) -> Result<crate::types::WebhookConfig> { | |
- let url = self.client.url("/app/hook/config", None); | |
+ let url = self.client.url(&"/app/hook/config".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -107,7 +107,7 @@ impl Apps { | |
&self, | |
body: &crate::types::AppsUpdateWebhookConfigAppRequest, | |
) -> Result<crate::types::WebhookConfig> { | |
- let url = self.client.url("/app/hook/config", None); | |
+ let url = self.client.url(&"/app/hook/config".to_string(), None); | |
self.client | |
.patch( | |
&url, | |
@@ -552,7 +552,7 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/grant", | |
- crate::progenitor_support::encode_path(client_id), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
), | |
None, | |
); | |
@@ -592,8 +592,8 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/grants/{}", | |
- crate::progenitor_support::encode_path(client_id), | |
- crate::progenitor_support::encode_path(access_token), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
+ crate::progenitor_support::encode_path(&access_token.to_string()), | |
), | |
None, | |
); | |
@@ -628,7 +628,7 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/token", | |
- crate::progenitor_support::encode_path(client_id), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
), | |
None, | |
); | |
@@ -663,7 +663,7 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/token", | |
- crate::progenitor_support::encode_path(client_id), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
), | |
None, | |
); | |
@@ -698,7 +698,7 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/token", | |
- crate::progenitor_support::encode_path(client_id), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
), | |
None, | |
); | |
@@ -733,7 +733,7 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/token/scoped", | |
- crate::progenitor_support::encode_path(client_id), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
), | |
None, | |
); | |
@@ -771,8 +771,8 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/tokens/{}", | |
- crate::progenitor_support::encode_path(client_id), | |
- crate::progenitor_support::encode_path(access_token), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
+ crate::progenitor_support::encode_path(&access_token.to_string()), | |
), | |
None, | |
); | |
@@ -810,8 +810,8 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/tokens/{}", | |
- crate::progenitor_support::encode_path(client_id), | |
- crate::progenitor_support::encode_path(access_token), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
+ crate::progenitor_support::encode_path(&access_token.to_string()), | |
), | |
None, | |
); | |
@@ -849,8 +849,8 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/applications/{}/tokens/{}", | |
- crate::progenitor_support::encode_path(client_id), | |
- crate::progenitor_support::encode_path(access_token), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
+ crate::progenitor_support::encode_path(&access_token.to_string()), | |
), | |
None, | |
); | |
@@ -881,7 +881,10 @@ impl Apps { | |
*/ | |
pub async fn get_by_slug(&self, app_slug: &str) -> Result<crate::types::GitHubApp> { | |
let url = self.client.url( | |
- &format!("/apps/{}", crate::progenitor_support::encode_path(app_slug),), | |
+ &format!( | |
+ "/apps/{}", | |
+ crate::progenitor_support::encode_path(&app_slug.to_string()), | |
+ ), | |
None, | |
); | |
self.client | |
@@ -950,7 +953,7 @@ impl Apps { | |
* FROM: <https://docs.github.com/rest/reference/apps#revoke-an-installation-access-token> | |
*/ | |
pub async fn revoke_installation_access_token(&self) -> Result<()> { | |
- let url = self.client.url("/installation/token", None); | |
+ let url = self.client.url(&"/installation/token".to_string(), None); | |
self.client | |
.delete( | |
&url, | |
@@ -1053,7 +1056,9 @@ impl Apps { | |
* FROM: <https://docs.github.com/rest/reference/apps#list-plans> | |
*/ | |
pub async fn list_all_plans(&self) -> Result<Vec<crate::types::MarketplaceListingPlan>> { | |
- let url = self.client.url("/marketplace_listing/plans", None); | |
+ let url = self | |
+ .client | |
+ .url(&"/marketplace_listing/plans".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -1265,7 +1270,9 @@ impl Apps { | |
pub async fn list_all_plans_stubbed( | |
&self, | |
) -> Result<Vec<crate::types::MarketplaceListingPlan>> { | |
- let url = self.client.url("/marketplace_listing/stubbed/plans", None); | |
+ let url = self | |
+ .client | |
+ .url(&"/marketplace_listing/stubbed/plans".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -1401,7 +1408,7 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/installation", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1444,8 +1451,8 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/content_references/{}/attachments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&content_reference_id.to_string()), | |
), | |
None, | |
@@ -1484,8 +1491,8 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/installation", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1730,7 +1737,9 @@ impl Apps { | |
pub async fn list_all_subscriptions_for_authenticated_user( | |
&self, | |
) -> Result<Vec<crate::types::UserMarketplacePurchase>> { | |
- let url = self.client.url("/user/marketplace_purchases", None); | |
+ let url = self | |
+ .client | |
+ .url(&"/user/marketplace_purchases".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -1796,7 +1805,9 @@ impl Apps { | |
pub async fn list_all_subscriptions_for_authenticated_user_stubbed( | |
&self, | |
) -> Result<Vec<crate::types::UserMarketplacePurchase>> { | |
- let url = self.client.url("/user/marketplace_purchases/stubbed", None); | |
+ let url = self | |
+ .client | |
+ .url(&"/user/marketplace_purchases/stubbed".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -1829,7 +1840,7 @@ impl Apps { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/installation", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/billing.rs b/github/src/billing.rs | |
index b7cde31..5874852 100644 | |
--- a/github/src/billing.rs | |
+++ b/github/src/billing.rs | |
@@ -36,7 +36,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/settings/billing/actions", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -74,7 +74,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/settings/billing/packages", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -112,7 +112,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/settings/billing/shared-storage", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -150,7 +150,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/settings/billing/actions", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -188,7 +188,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/settings/billing/packages", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -226,7 +226,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/settings/billing/shared-storage", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -264,7 +264,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/settings/billing/actions", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -302,7 +302,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/settings/billing/packages", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -340,7 +340,7 @@ impl Billing { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/settings/billing/shared-storage", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/checks.rs b/github/src/checks.rs | |
index 0d33191..d73452f 100644 | |
--- a/github/src/checks.rs | |
+++ b/github/src/checks.rs | |
@@ -39,8 +39,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-runs", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -80,8 +80,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-runs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&check_run_id.to_string()), | |
), | |
None, | |
@@ -123,8 +123,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-runs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&check_run_id.to_string()), | |
), | |
None, | |
@@ -175,8 +175,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-runs/{}/annotations?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&check_run_id.to_string()), | |
query_ | |
), | |
@@ -212,8 +212,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-runs/{}/annotations", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&check_run_id.to_string()), | |
), | |
None, | |
@@ -253,8 +253,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-suites", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -291,8 +291,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-suites/preferences", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -332,8 +332,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-suites/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&check_suite_id.to_string()), | |
), | |
None, | |
@@ -403,8 +403,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-suites/{}/check-runs?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&check_suite_id.to_string()), | |
query_ | |
), | |
@@ -446,8 +446,8 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/check-suites/{}/rerequest", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&check_suite_id.to_string()), | |
), | |
None, | |
@@ -522,9 +522,9 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/check-runs?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
query_ | |
), | |
None, | |
@@ -587,9 +587,9 @@ impl Checks { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/check-suites?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
query_ | |
), | |
None, | |
diff --git a/github/src/code_scanning.rs b/github/src/code_scanning.rs | |
index 524c089..cde37d8 100644 | |
--- a/github/src/code_scanning.rs | |
+++ b/github/src/code_scanning.rs | |
@@ -74,8 +74,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/alerts?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -135,8 +135,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/alerts?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -178,8 +178,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/alerts/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&alert_number.to_string()), | |
), | |
None, | |
@@ -219,8 +219,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/alerts/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&alert_number.to_string()), | |
), | |
None, | |
@@ -276,8 +276,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/alerts/{}/instances?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&alert_number.to_string()), | |
query_ | |
), | |
@@ -319,8 +319,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/alerts/{}/instances?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&alert_number.to_string()), | |
query_ | |
), | |
@@ -405,8 +405,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/analyses?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -473,8 +473,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/analyses?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -533,8 +533,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/analyses/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&analysis_id.to_string()), | |
), | |
None, | |
@@ -643,8 +643,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/analyses/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&analysis_id.to_string()), | |
query_ | |
), | |
@@ -699,8 +699,8 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/sarifs", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -738,9 +738,9 @@ impl CodeScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/code-scanning/sarifs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(sarif_id), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&sarif_id.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/codes_of_conduct.rs b/github/src/codes_of_conduct.rs | |
index c05919c..d0618a0 100644 | |
--- a/github/src/codes_of_conduct.rs | |
+++ b/github/src/codes_of_conduct.rs | |
@@ -22,7 +22,7 @@ impl CodesOfConduct { | |
* FROM: <https://docs.github.com/rest/reference/codes-of-conduct#get-all-codes-of-conduct> | |
*/ | |
pub async fn get_all_codes_of_conduct(&self) -> Result<Vec<crate::types::CodeOfConduct>> { | |
- let url = self.client.url("/codes_of_conduct", None); | |
+ let url = self.client.url(&"/codes_of_conduct".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -45,7 +45,7 @@ impl CodesOfConduct { | |
* FROM: <https://docs.github.com/rest/reference/codes-of-conduct#get-all-codes-of-conduct> | |
*/ | |
pub async fn get_all_all_codes_of_conduct(&self) -> Result<Vec<crate::types::CodeOfConduct>> { | |
- let url = self.client.url("/codes_of_conduct", None); | |
+ let url = self.client.url(&"/codes_of_conduct".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -73,7 +73,7 @@ impl CodesOfConduct { | |
let url = self.client.url( | |
&format!( | |
"/codes_of_conduct/{}", | |
- crate::progenitor_support::encode_path(key), | |
+ crate::progenitor_support::encode_path(&key.to_string()), | |
), | |
None, | |
); | |
@@ -111,8 +111,8 @@ impl CodesOfConduct { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/community/code_of_conduct", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/emojis.rs b/github/src/emojis.rs | |
index afe954d..5bfe16e 100644 | |
--- a/github/src/emojis.rs | |
+++ b/github/src/emojis.rs | |
@@ -22,7 +22,7 @@ impl Emojis { | |
* FROM: <https://docs.github.com/rest/reference/emojis#get-emojis> | |
*/ | |
pub async fn get(&self) -> Result<String> { | |
- let url = self.client.url("/emojis", None); | |
+ let url = self.client.url(&"/emojis".to_string(), None); | |
self.client | |
.get( | |
&url, | |
diff --git a/github/src/enterprise_admin.rs b/github/src/enterprise_admin.rs | |
index 666a504..a114a07 100644 | |
--- a/github/src/enterprise_admin.rs | |
+++ b/github/src/enterprise_admin.rs | |
@@ -34,7 +34,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/permissions", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -71,7 +71,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/permissions", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -119,7 +119,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/permissions/organizations?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
query_ | |
), | |
None, | |
@@ -157,7 +157,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/permissions/organizations", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -195,7 +195,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/permissions/organizations/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&org_id.to_string()), | |
), | |
None, | |
@@ -234,7 +234,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/permissions/organizations/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&org_id.to_string()), | |
), | |
None, | |
@@ -271,7 +271,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/permissions/selected-actions", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -308,7 +308,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/permissions/selected-actions", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -356,7 +356,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
query_ | |
), | |
None, | |
@@ -394,7 +394,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -432,7 +432,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -471,7 +471,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -511,7 +511,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -562,7 +562,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}/organizations?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
query_ | |
), | |
@@ -603,7 +603,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}/organizations", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -644,7 +644,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}/organizations/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
crate::progenitor_support::encode_path(&org_id.to_string()), | |
), | |
@@ -686,7 +686,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}/organizations/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
crate::progenitor_support::encode_path(&org_id.to_string()), | |
), | |
@@ -738,7 +738,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}/runners?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
query_ | |
), | |
@@ -779,7 +779,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}/runners", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
), | |
None, | |
@@ -821,7 +821,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}/runners/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
@@ -863,7 +863,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runner-groups/{}/runners/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_group_id.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
@@ -913,7 +913,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runners?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
query_ | |
), | |
None, | |
@@ -950,7 +950,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runners/downloads", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -984,7 +984,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runners/downloads", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -1028,7 +1028,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runners/registration-token", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -1073,7 +1073,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runners/remove-token", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -1111,7 +1111,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runners/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
None, | |
@@ -1150,7 +1150,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/actions/runners/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
crate::progenitor_support::encode_path(&runner_id.to_string()), | |
), | |
None, | |
@@ -1230,7 +1230,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/audit-log?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
query_ | |
), | |
None, | |
@@ -1285,7 +1285,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/enterprises/{}/audit-log?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
query_ | |
), | |
None, | |
@@ -1345,7 +1345,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Groups?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
query_ | |
), | |
None, | |
@@ -1383,7 +1383,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Groups", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -1429,8 +1429,8 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Groups/{}?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
- crate::progenitor_support::encode_path(scim_group_id), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_group_id.to_string()), | |
query_ | |
), | |
None, | |
@@ -1470,8 +1470,8 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Groups/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
- crate::progenitor_support::encode_path(scim_group_id), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_group_id.to_string()), | |
), | |
None, | |
); | |
@@ -1507,8 +1507,8 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Groups/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
- crate::progenitor_support::encode_path(scim_group_id), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_group_id.to_string()), | |
), | |
None, | |
); | |
@@ -1547,8 +1547,8 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Groups/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
- crate::progenitor_support::encode_path(scim_group_id), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_group_id.to_string()), | |
), | |
None, | |
); | |
@@ -1616,7 +1616,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Users?{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
query_ | |
), | |
None, | |
@@ -1656,7 +1656,7 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Users", | |
- crate::progenitor_support::encode_path(enterprise), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
), | |
None, | |
); | |
@@ -1692,8 +1692,8 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Users/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
- crate::progenitor_support::encode_path(scim_user_id), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_user_id.to_string()), | |
), | |
None, | |
); | |
@@ -1736,8 +1736,8 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Users/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
- crate::progenitor_support::encode_path(scim_user_id), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_user_id.to_string()), | |
), | |
None, | |
); | |
@@ -1773,8 +1773,8 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Users/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
- crate::progenitor_support::encode_path(scim_user_id), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_user_id.to_string()), | |
), | |
None, | |
); | |
@@ -1828,8 +1828,8 @@ impl EnterpriseAdmin { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/enterprises/{}/Users/{}", | |
- crate::progenitor_support::encode_path(enterprise), | |
- crate::progenitor_support::encode_path(scim_user_id), | |
+ crate::progenitor_support::encode_path(&enterprise.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_user_id.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/gists.rs b/github/src/gists.rs | |
index 65e2442..f751269 100644 | |
--- a/github/src/gists.rs | |
+++ b/github/src/gists.rs | |
@@ -101,7 +101,7 @@ impl Gists { | |
&self, | |
body: &crate::types::GistsCreateRequest, | |
) -> Result<crate::types::GistSimple> { | |
- let url = self.client.url("/gists", None); | |
+ let url = self.client.url(&"/gists".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -279,7 +279,10 @@ impl Gists { | |
*/ | |
pub async fn get(&self, gist_id: &str) -> Result<crate::types::GistSimple> { | |
let url = self.client.url( | |
- &format!("/gists/{}", crate::progenitor_support::encode_path(gist_id),), | |
+ &format!( | |
+ "/gists/{}", | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
+ ), | |
None, | |
); | |
self.client | |
@@ -307,7 +310,10 @@ impl Gists { | |
*/ | |
pub async fn delete(&self, gist_id: &str) -> Result<()> { | |
let url = self.client.url( | |
- &format!("/gists/{}", crate::progenitor_support::encode_path(gist_id),), | |
+ &format!( | |
+ "/gists/{}", | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
+ ), | |
None, | |
); | |
self.client | |
@@ -339,7 +345,10 @@ impl Gists { | |
body: &crate::types::GistsUpdateRequest, | |
) -> Result<crate::types::GistSimple> { | |
let url = self.client.url( | |
- &format!("/gists/{}", crate::progenitor_support::encode_path(gist_id),), | |
+ &format!( | |
+ "/gists/{}", | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
+ ), | |
None, | |
); | |
self.client | |
@@ -384,7 +393,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/comments?{}", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
query_ | |
), | |
None, | |
@@ -414,7 +423,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/comments", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
), | |
None, | |
); | |
@@ -449,7 +458,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/comments", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
), | |
None, | |
); | |
@@ -485,7 +494,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/comments/{}", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -518,7 +527,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/comments/{}", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -556,7 +565,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/comments/{}", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -603,7 +612,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/commits?{}", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
query_ | |
), | |
None, | |
@@ -633,7 +642,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/commits", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
), | |
None, | |
); | |
@@ -679,7 +688,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/forks?{}", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
query_ | |
), | |
None, | |
@@ -709,7 +718,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/forks", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
), | |
None, | |
); | |
@@ -740,7 +749,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/forks", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
), | |
None, | |
); | |
@@ -771,7 +780,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/star", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
), | |
None, | |
); | |
@@ -802,7 +811,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/star", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
), | |
None, | |
); | |
@@ -833,7 +842,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/star", | |
- crate::progenitor_support::encode_path(gist_id), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
), | |
None, | |
); | |
@@ -865,8 +874,8 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/gists/{}/{}", | |
- crate::progenitor_support::encode_path(gist_id), | |
- crate::progenitor_support::encode_path(sha), | |
+ crate::progenitor_support::encode_path(&gist_id.to_string()), | |
+ crate::progenitor_support::encode_path(&sha.to_string()), | |
), | |
None, | |
); | |
@@ -917,7 +926,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/gists?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -956,7 +965,7 @@ impl Gists { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/gists?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
diff --git a/github/src/git.rs b/github/src/git.rs | |
index 50934d6..8260aed 100644 | |
--- a/github/src/git.rs | |
+++ b/github/src/git.rs | |
@@ -35,8 +35,8 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/blobs", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -76,9 +76,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/blobs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(file_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&file_sha.to_string()), | |
), | |
None, | |
); | |
@@ -144,8 +144,8 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/commits", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -212,9 +212,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/commits/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(commit_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&commit_sha.to_string()), | |
), | |
None, | |
); | |
@@ -270,9 +270,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/matching-refs/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
query_ | |
), | |
None, | |
@@ -313,9 +313,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/matching-refs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
), | |
None, | |
); | |
@@ -355,9 +355,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/ref/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
), | |
None, | |
); | |
@@ -394,8 +394,8 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/refs", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -428,9 +428,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/refs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
), | |
None, | |
); | |
@@ -469,9 +469,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/refs/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
), | |
None, | |
); | |
@@ -537,8 +537,8 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/tags", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -603,9 +603,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/tags/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(tag_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&tag_sha.to_string()), | |
), | |
None, | |
); | |
@@ -644,8 +644,8 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/trees", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -692,9 +692,9 @@ impl Git { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/git/trees/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(tree_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&tree_sha.to_string()), | |
query_ | |
), | |
None, | |
diff --git a/github/src/gitignore.rs b/github/src/gitignore.rs | |
index 4817a57..549d09c 100644 | |
--- a/github/src/gitignore.rs | |
+++ b/github/src/gitignore.rs | |
@@ -22,7 +22,7 @@ impl Gitignore { | |
* FROM: <https://docs.github.com/rest/reference/gitignore#get-all-gitignore-templates> | |
*/ | |
pub async fn get_all_templates(&self) -> Result<Vec<String>> { | |
- let url = self.client.url("/gitignore/templates", None); | |
+ let url = self.client.url(&"/gitignore/templates".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -45,7 +45,7 @@ impl Gitignore { | |
* FROM: <https://docs.github.com/rest/reference/gitignore#get-all-gitignore-templates> | |
*/ | |
pub async fn get_all_all_templates(&self) -> Result<Vec<String>> { | |
- let url = self.client.url("/gitignore/templates", None); | |
+ let url = self.client.url(&"/gitignore/templates".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -74,7 +74,7 @@ impl Gitignore { | |
let url = self.client.url( | |
&format!( | |
"/gitignore/templates/{}", | |
- crate::progenitor_support::encode_path(name), | |
+ crate::progenitor_support::encode_path(&name.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/interactions.rs b/github/src/interactions.rs | |
index d36e97d..6c96f42 100644 | |
--- a/github/src/interactions.rs | |
+++ b/github/src/interactions.rs | |
@@ -32,7 +32,7 @@ impl Interactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/interaction-limits", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -67,7 +67,7 @@ impl Interactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/interaction-limits", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -98,7 +98,7 @@ impl Interactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/interaction-limits", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -134,8 +134,8 @@ impl Interactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/interaction-limits", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -172,8 +172,8 @@ impl Interactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/interaction-limits", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -205,8 +205,8 @@ impl Interactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/interaction-limits", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -232,7 +232,9 @@ impl Interactions { | |
pub async fn get_restrictions_for_authenticated_user( | |
&self, | |
) -> Result<crate::types::InteractionsGetRestrictionsResponseAnyOf> { | |
- let url = self.client.url("/user/interaction-limits", None); | |
+ let url = self | |
+ .client | |
+ .url(&"/user/interaction-limits".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -256,7 +258,9 @@ impl Interactions { | |
&self, | |
body: &crate::types::InteractionLimit, | |
) -> Result<crate::types::InteractionLimits> { | |
- let url = self.client.url("/user/interaction-limits", None); | |
+ let url = self | |
+ .client | |
+ .url(&"/user/interaction-limits".to_string(), None); | |
self.client | |
.put( | |
&url, | |
@@ -277,7 +281,9 @@ impl Interactions { | |
* FROM: <https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-from-your-public-repositories> | |
*/ | |
pub async fn remove_restrictions_for_authenticated_user(&self) -> Result<()> { | |
- let url = self.client.url("/user/interaction-limits", None); | |
+ let url = self | |
+ .client | |
+ .url(&"/user/interaction-limits".to_string(), None); | |
self.client | |
.delete( | |
&url, | |
diff --git a/github/src/issues.rs b/github/src/issues.rs | |
index cf91a1a..92e60d0 100644 | |
--- a/github/src/issues.rs | |
+++ b/github/src/issues.rs | |
@@ -264,7 +264,7 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/issues?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -328,7 +328,7 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/issues?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -377,8 +377,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/assignees?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -412,8 +412,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/assignees", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -455,9 +455,9 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/assignees/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(assignee), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&assignee.to_string()), | |
), | |
None, | |
); | |
@@ -557,8 +557,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -635,8 +635,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -676,8 +676,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -742,8 +742,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -791,8 +791,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -831,8 +831,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -866,8 +866,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -907,8 +907,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -957,8 +957,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/events?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -992,8 +992,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/events", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1031,8 +1031,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/events/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&event_id.to_string()), | |
), | |
None, | |
@@ -1081,8 +1081,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1122,8 +1122,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1163,8 +1163,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/assignees", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1204,8 +1204,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/assignees", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1261,8 +1261,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
query_ | |
), | |
@@ -1304,8 +1304,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
query_ | |
), | |
@@ -1346,8 +1346,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/comments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1398,8 +1398,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/events?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
query_ | |
), | |
@@ -1435,8 +1435,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/events", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1487,8 +1487,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/labels?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
query_ | |
), | |
@@ -1524,8 +1524,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/labels", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1565,8 +1565,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/labels", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1606,8 +1606,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/labels", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1646,8 +1646,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/labels", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1688,10 +1688,10 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/labels/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
- crate::progenitor_support::encode_path(name), | |
+ crate::progenitor_support::encode_path(&name.to_string()), | |
), | |
None, | |
); | |
@@ -1732,8 +1732,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/lock", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1767,8 +1767,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/lock", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1819,8 +1819,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/timeline?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
query_ | |
), | |
@@ -1856,8 +1856,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/timeline", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -1906,8 +1906,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/labels?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -1941,8 +1941,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/labels", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1979,8 +1979,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/labels", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2018,9 +2018,9 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/labels/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&name.to_string()), | |
), | |
None, | |
); | |
@@ -2053,9 +2053,9 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/labels/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&name.to_string()), | |
), | |
None, | |
); | |
@@ -2094,9 +2094,9 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/labels/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&name.to_string()), | |
), | |
None, | |
); | |
@@ -2161,8 +2161,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/milestones?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -2210,8 +2210,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/milestones?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -2249,8 +2249,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/milestones", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2288,8 +2288,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/milestones/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&milestone_number.to_string()), | |
), | |
None, | |
@@ -2328,8 +2328,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/milestones/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&milestone_number.to_string()), | |
), | |
None, | |
@@ -2369,8 +2369,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/milestones/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&milestone_number.to_string()), | |
), | |
None, | |
@@ -2421,8 +2421,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/milestones/{}/labels?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&milestone_number.to_string()), | |
query_ | |
), | |
@@ -2458,8 +2458,8 @@ impl Issues { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/milestones/{}/labels", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&milestone_number.to_string()), | |
), | |
None, | |
diff --git a/github/src/lib.rs b/github/src/lib.rs | |
index e06008c..581536c 100644 | |
--- a/github/src/lib.rs | |
+++ b/github/src/lib.rs | |
@@ -464,7 +464,7 @@ impl Client { | |
let token = self | |
.apps() | |
.create_installation_access_token( | |
- apptoken.installation_id, | |
+ apptoken.installation_id as i64, | |
&types::AppsCreateInstallationAccessTokenRequest { | |
permissions: Default::default(), | |
repositories: Default::default(), | |
@@ -612,7 +612,7 @@ impl Client { | |
.as_secs(); | |
anyhow!( | |
"rate limit exceeded, will reset in {} seconds", | |
- u64::from(reset) - now | |
+ u64::from(reset).saturating_sub(now) | |
) | |
} | |
_ => { | |
@@ -667,7 +667,7 @@ impl Client { | |
{ | |
self.request_entity( | |
http::Method::GET, | |
- uri, | |
+ &uri, | |
message, | |
media, | |
crate::auth::AuthenticationConstraint::Unconstrained, | |
@@ -688,7 +688,7 @@ impl Client { | |
{ | |
self.request( | |
http::Method::GET, | |
- uri, | |
+ &uri, | |
Message::default(), | |
crate::utils::MediaType::Json, | |
crate::auth::AuthenticationConstraint::Unconstrained, | |
@@ -736,7 +736,7 @@ impl Client { | |
where | |
D: serde::de::DeserializeOwned + 'static + Send, | |
{ | |
- self.request_entity(http::Method::POST, uri, message, media, authentication) | |
+ self.request_entity(http::Method::POST, &uri, message, media, authentication) | |
.await | |
} | |
@@ -751,7 +751,7 @@ impl Client { | |
{ | |
self.request_entity( | |
http::Method::PATCH, | |
- uri, | |
+ &uri, | |
message, | |
media, | |
crate::auth::AuthenticationConstraint::Unconstrained, | |
@@ -786,7 +786,7 @@ impl Client { | |
{ | |
self.request_entity( | |
http::Method::PUT, | |
- uri, | |
+ &uri, | |
message, | |
media, | |
crate::auth::AuthenticationConstraint::Unconstrained, | |
@@ -800,7 +800,7 @@ impl Client { | |
{ | |
self.request_entity( | |
http::Method::DELETE, | |
- uri, | |
+ &uri, | |
message, | |
crate::utils::MediaType::Json, | |
crate::auth::AuthenticationConstraint::Unconstrained, | |
diff --git a/github/src/licenses.rs b/github/src/licenses.rs | |
index 7ffe638..39ca461 100644 | |
--- a/github/src/licenses.rs | |
+++ b/github/src/licenses.rs | |
@@ -103,7 +103,7 @@ impl Licenses { | |
let url = self.client.url( | |
&format!( | |
"/licenses/{}", | |
- crate::progenitor_support::encode_path(license), | |
+ crate::progenitor_support::encode_path(&license.to_string()), | |
), | |
None, | |
); | |
@@ -141,8 +141,8 @@ impl Licenses { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/license", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/markdown.rs b/github/src/markdown.rs | |
index 04c5113..009c81e 100644 | |
--- a/github/src/markdown.rs | |
+++ b/github/src/markdown.rs | |
@@ -22,7 +22,7 @@ impl Markdown { | |
* FROM: <https://docs.github.com/rest/reference/markdown#render-a-markdown-document> | |
*/ | |
pub async fn render(&self, body: &crate::types::MarkdownRenderRequest) -> Result<String> { | |
- let url = self.client.url("/markdown", None); | |
+ let url = self.client.url(&"/markdown".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -43,7 +43,7 @@ impl Markdown { | |
* FROM: <https://docs.github.com/rest/reference/markdown#render-a-markdown-document-in-raw-mode> | |
*/ | |
pub async fn render_raw<T: Into<reqwest::Body>>(&self, body: T) -> Result<String> { | |
- let url = self.client.url("/markdown/raw", None); | |
+ let url = self.client.url(&"/markdown/raw".to_string(), None); | |
self.client | |
.post( | |
&url, | |
diff --git a/github/src/meta.rs b/github/src/meta.rs | |
index 3141bb6..b477ac0 100644 | |
--- a/github/src/meta.rs | |
+++ b/github/src/meta.rs | |
@@ -45,7 +45,7 @@ impl Meta { | |
* FROM: <https://docs.github.com/rest/reference/meta#get-github-meta-information> | |
*/ | |
pub async fn get(&self) -> Result<crate::types::ApiOverview> { | |
- let url = self.client.url("/meta", None); | |
+ let url = self.client.url(&"/meta".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -94,7 +94,7 @@ impl Meta { | |
* Get a random sentence from the Zen of GitHub | |
*/ | |
pub async fn get_zen(&self) -> Result<String> { | |
- let url = self.client.url("/zen", None); | |
+ let url = self.client.url(&"/zen".to_string(), None); | |
self.client | |
.get( | |
&url, | |
diff --git a/github/src/migrations.rs b/github/src/migrations.rs | |
index f7bb452..1ade9ca 100644 | |
--- a/github/src/migrations.rs | |
+++ b/github/src/migrations.rs | |
@@ -49,7 +49,7 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -88,7 +88,7 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -124,7 +124,7 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -174,7 +174,7 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations/{}?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&migration_id.to_string()), | |
query_ | |
), | |
@@ -208,7 +208,7 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations/{}/archive", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&migration_id.to_string()), | |
), | |
None, | |
@@ -241,7 +241,7 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations/{}/archive", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&migration_id.to_string()), | |
), | |
None, | |
@@ -280,9 +280,9 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations/{}/repos/{}/lock", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&migration_id.to_string()), | |
- crate::progenitor_support::encode_path(repo_name), | |
+ crate::progenitor_support::encode_path(&repo_name.to_string()), | |
), | |
None, | |
); | |
@@ -330,7 +330,7 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations/{}/repositories?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&migration_id.to_string()), | |
query_ | |
), | |
@@ -365,7 +365,7 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/migrations/{}/repositories", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&migration_id.to_string()), | |
), | |
None, | |
@@ -431,8 +431,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -469,8 +469,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -502,8 +502,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -541,8 +541,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -587,8 +587,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import/authors?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -630,8 +630,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import/authors?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -671,8 +671,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import/authors/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&author_id.to_string()), | |
), | |
None, | |
@@ -709,8 +709,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import/large_files", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -743,8 +743,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import/large_files", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -781,8 +781,8 @@ impl Migrations { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/import/lfs", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -848,7 +848,7 @@ impl Migrations { | |
* FROM: <https://docs.github.com/rest/reference/migrations#list-user-migrations> | |
*/ | |
pub async fn list_all_for_authenticated_user(&self) -> Result<Vec<crate::types::Migration>> { | |
- let url = self.client.url("/user/migrations", None); | |
+ let url = self.client.url(&"/user/migrations".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -872,7 +872,7 @@ impl Migrations { | |
&self, | |
body: &crate::types::MigrationsStartRequest, | |
) -> Result<crate::types::Migration> { | |
- let url = self.client.url("/user/migrations", None); | |
+ let url = self.client.url(&"/user/migrations".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -1037,7 +1037,7 @@ impl Migrations { | |
&format!( | |
"/user/migrations/{}/repos/{}/lock", | |
crate::progenitor_support::encode_path(&migration_id.to_string()), | |
- crate::progenitor_support::encode_path(repo_name), | |
+ crate::progenitor_support::encode_path(&repo_name.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/oauth_authorizations.rs b/github/src/oauth_authorizations.rs | |
index d7666ad..30633e6 100644 | |
--- a/github/src/oauth_authorizations.rs | |
+++ b/github/src/oauth_authorizations.rs | |
@@ -259,7 +259,7 @@ impl OauthAuthorizations { | |
&self, | |
body: &crate::types::OauthAuthorizationsCreateAuthorizationRequest, | |
) -> Result<crate::types::Authorization> { | |
- let url = self.client.url("/authorizations", None); | |
+ let url = self.client.url(&"/authorizations".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -299,7 +299,7 @@ impl OauthAuthorizations { | |
let url = self.client.url( | |
&format!( | |
"/authorizations/clients/{}", | |
- crate::progenitor_support::encode_path(client_id), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
), | |
None, | |
); | |
@@ -342,8 +342,8 @@ impl OauthAuthorizations { | |
let url = self.client.url( | |
&format!( | |
"/authorizations/clients/{}/{}", | |
- crate::progenitor_support::encode_path(client_id), | |
- crate::progenitor_support::encode_path(fingerprint), | |
+ crate::progenitor_support::encode_path(&client_id.to_string()), | |
+ crate::progenitor_support::encode_path(&fingerprint.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/orgs.rs b/github/src/orgs.rs | |
index 34f759d..8c9ffd3 100644 | |
--- a/github/src/orgs.rs | |
+++ b/github/src/orgs.rs | |
@@ -99,7 +99,10 @@ impl Orgs { | |
*/ | |
pub async fn get(&self, org: &str) -> Result<crate::types::OrganizationFull> { | |
let url = self.client.url( | |
- &format!("/orgs/{}", crate::progenitor_support::encode_path(org),), | |
+ &format!( | |
+ "/orgs/{}", | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ ), | |
None, | |
); | |
self.client | |
@@ -133,7 +136,10 @@ impl Orgs { | |
body: &crate::types::OrgsUpdateRequest, | |
) -> Result<crate::types::OrganizationFull> { | |
let url = self.client.url( | |
- &format!("/orgs/{}", crate::progenitor_support::encode_path(org),), | |
+ &format!( | |
+ "/orgs/{}", | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ ), | |
None, | |
); | |
self.client | |
@@ -213,7 +219,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/audit-log?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -270,7 +276,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/audit-log?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -302,7 +308,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/blocks", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -331,7 +337,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/blocks", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -363,8 +369,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/blocks/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -396,8 +402,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/blocks/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -429,8 +435,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/blocks/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -466,7 +472,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/credential-authorizations", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -500,7 +506,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/credential-authorizations", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -534,7 +540,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/credential-authorizations/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&credential_id.to_string()), | |
), | |
None, | |
@@ -581,7 +587,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/failed_invitations?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -614,7 +620,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/failed_invitations", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -660,7 +666,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -690,7 +696,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -725,7 +731,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -757,7 +763,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -790,7 +796,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -828,7 +834,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -867,7 +873,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}/config", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -907,7 +913,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}/config", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -956,7 +962,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}/deliveries?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
query_ | |
), | |
@@ -997,7 +1003,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}/deliveries?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
query_ | |
), | |
@@ -1037,7 +1043,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}/deliveries/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
crate::progenitor_support::encode_path(&delivery_id.to_string()), | |
), | |
@@ -1077,7 +1083,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}/deliveries/{}/attempts", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
crate::progenitor_support::encode_path(&delivery_id.to_string()), | |
), | |
@@ -1111,7 +1117,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/hooks/{}/pings", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -1158,7 +1164,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/installations?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1205,7 +1211,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/invitations?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1238,7 +1244,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/invitations", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1275,7 +1281,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/invitations", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1309,7 +1315,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/invitations/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&invitation_id.to_string()), | |
), | |
None, | |
@@ -1358,7 +1364,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/invitations/{}/teams?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&invitation_id.to_string()), | |
query_ | |
), | |
@@ -1393,7 +1399,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/invitations/{}/teams", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&invitation_id.to_string()), | |
), | |
None, | |
@@ -1455,7 +1461,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/members?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1498,7 +1504,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/members?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1531,8 +1537,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/members/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1564,8 +1570,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/members/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1601,8 +1607,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/memberships/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1647,8 +1653,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/memberships/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1682,8 +1688,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/memberships/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1736,7 +1742,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/outside_collaborators?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1775,7 +1781,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/outside_collaborators?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1812,8 +1818,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/outside_collaborators/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1845,8 +1851,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/outside_collaborators/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1892,7 +1898,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/public_members?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -1925,7 +1931,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/public_members", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -1957,8 +1963,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/public_members/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1996,8 +2002,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/public_members/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2033,8 +2039,8 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/public_members/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2146,7 +2152,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/user/memberships/orgs/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -2181,7 +2187,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/user/memberships/orgs/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -2255,7 +2261,7 @@ impl Orgs { | |
pub async fn list_all_for_authenticated_user( | |
&self, | |
) -> Result<Vec<crate::types::OrganizationSimple>> { | |
- let url = self.client.url("/user/orgs", None); | |
+ let url = self.client.url(&"/user/orgs".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -2300,7 +2306,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/orgs?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -2335,7 +2341,7 @@ impl Orgs { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/orgs", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/packages.rs b/github/src/packages.rs | |
index af6d343..b670678 100644 | |
--- a/github/src/packages.rs | |
+++ b/github/src/packages.rs | |
@@ -39,9 +39,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/packages/{}/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
), | |
None, | |
); | |
@@ -83,9 +83,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/packages/{}/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
), | |
None, | |
); | |
@@ -138,9 +138,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/packages/{}/{}/restore?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
query_ | |
), | |
None, | |
@@ -199,9 +199,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/packages/{}/{}/versions?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
query_ | |
), | |
None, | |
@@ -245,9 +245,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/packages/{}/{}/versions?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
query_ | |
), | |
None, | |
@@ -291,9 +291,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/packages/{}/{}/versions/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
crate::progenitor_support::encode_path(&package_version_id.to_string()), | |
), | |
None, | |
@@ -338,9 +338,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/packages/{}/{}/versions/{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
crate::progenitor_support::encode_path(&package_version_id.to_string()), | |
), | |
None, | |
@@ -389,9 +389,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/packages/{}/{}/versions/{}/restore", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
crate::progenitor_support::encode_path(&package_version_id.to_string()), | |
), | |
None, | |
@@ -432,7 +432,7 @@ impl Packages { | |
&format!( | |
"/user/packages/{}/{}", | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
), | |
None, | |
); | |
@@ -472,7 +472,7 @@ impl Packages { | |
&format!( | |
"/user/packages/{}/{}", | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
), | |
None, | |
); | |
@@ -522,7 +522,7 @@ impl Packages { | |
&format!( | |
"/user/packages/{}/{}/restore?{}", | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
query_ | |
), | |
None, | |
@@ -580,7 +580,7 @@ impl Packages { | |
&format!( | |
"/user/packages/{}/{}/versions?{}", | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
query_ | |
), | |
None, | |
@@ -624,7 +624,7 @@ impl Packages { | |
&format!( | |
"/user/packages/{}/{}/versions?{}", | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
query_ | |
), | |
None, | |
@@ -667,7 +667,7 @@ impl Packages { | |
&format!( | |
"/user/packages/{}/{}/versions/{}", | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
crate::progenitor_support::encode_path(&package_version_id.to_string()), | |
), | |
None, | |
@@ -710,7 +710,7 @@ impl Packages { | |
&format!( | |
"/user/packages/{}/{}/versions/{}", | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
crate::progenitor_support::encode_path(&package_version_id.to_string()), | |
), | |
None, | |
@@ -756,7 +756,7 @@ impl Packages { | |
&format!( | |
"/user/packages/{}/{}/versions/{}/restore", | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
crate::progenitor_support::encode_path(&package_version_id.to_string()), | |
), | |
None, | |
@@ -798,9 +798,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/packages/{}/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
), | |
None, | |
); | |
@@ -841,9 +841,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/packages/{}/{}/versions", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
), | |
None, | |
); | |
@@ -880,9 +880,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/packages/{}/{}/versions", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
), | |
None, | |
); | |
@@ -925,9 +925,9 @@ impl Packages { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/packages/{}/{}/versions/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
crate::progenitor_support::encode_path(&package_type.to_string()), | |
- crate::progenitor_support::encode_path(package_name), | |
+ crate::progenitor_support::encode_path(&package_name.to_string()), | |
crate::progenitor_support::encode_path(&package_version_id.to_string()), | |
), | |
None, | |
diff --git a/github/src/projects.rs b/github/src/projects.rs | |
index d04a3b8..920734f 100644 | |
--- a/github/src/projects.rs | |
+++ b/github/src/projects.rs | |
@@ -49,7 +49,7 @@ impl Projects { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/projects?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -88,7 +88,7 @@ impl Projects { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/projects?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -124,7 +124,7 @@ impl Projects { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/projects", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -743,7 +743,7 @@ impl Projects { | |
&format!( | |
"/projects/{}/collaborators/{}", | |
crate::progenitor_support::encode_path(&project_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -776,7 +776,7 @@ impl Projects { | |
&format!( | |
"/projects/{}/collaborators/{}", | |
crate::progenitor_support::encode_path(&project_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -813,7 +813,7 @@ impl Projects { | |
&format!( | |
"/projects/{}/collaborators/{}/permission", | |
crate::progenitor_support::encode_path(&project_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -980,8 +980,8 @@ impl Projects { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/projects?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -1021,8 +1021,8 @@ impl Projects { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/projects?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -1060,8 +1060,8 @@ impl Projects { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/projects", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1088,7 +1088,7 @@ impl Projects { | |
&self, | |
body: &crate::types::ProjectsCreateRequest, | |
) -> Result<crate::types::Project> { | |
- let url = self.client.url("/user/projects", None); | |
+ let url = self.client.url(&"/user/projects".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -1136,7 +1136,7 @@ impl Projects { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/projects?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1175,7 +1175,7 @@ impl Projects { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/projects?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
diff --git a/github/src/pulls.rs b/github/src/pulls.rs | |
index 600fbbc..1f12c28 100644 | |
--- a/github/src/pulls.rs | |
+++ b/github/src/pulls.rs | |
@@ -73,8 +73,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -130,8 +130,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -175,8 +175,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -241,8 +241,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -290,8 +290,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -330,8 +330,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -370,8 +370,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -411,8 +411,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -465,8 +465,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -508,8 +508,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -577,8 +577,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
query_ | |
), | |
@@ -628,8 +628,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
query_ | |
), | |
@@ -677,8 +677,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/comments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -722,8 +722,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/comments/{}/replies", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
@@ -775,8 +775,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/commits?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
query_ | |
), | |
@@ -812,8 +812,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/commits", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -864,8 +864,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/files?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
query_ | |
), | |
@@ -901,8 +901,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/files", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -936,8 +936,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/merge", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -977,8 +977,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/merge", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -1029,8 +1029,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/requested_reviewers?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
query_ | |
), | |
@@ -1071,8 +1071,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/requested_reviewers", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -1112,8 +1112,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/requested_reviewers", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -1164,8 +1164,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
query_ | |
), | |
@@ -1201,8 +1201,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -1248,8 +1248,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
@@ -1290,8 +1290,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
crate::progenitor_support::encode_path(&review_id.to_string()), | |
), | |
@@ -1334,8 +1334,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
crate::progenitor_support::encode_path(&review_id.to_string()), | |
), | |
@@ -1377,8 +1377,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
crate::progenitor_support::encode_path(&review_id.to_string()), | |
), | |
@@ -1432,8 +1432,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews/{}/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
crate::progenitor_support::encode_path(&review_id.to_string()), | |
query_ | |
@@ -1471,8 +1471,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews/{}/comments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
crate::progenitor_support::encode_path(&review_id.to_string()), | |
), | |
@@ -1515,8 +1515,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews/{}/dismissals", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
crate::progenitor_support::encode_path(&review_id.to_string()), | |
), | |
@@ -1559,8 +1559,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/reviews/{}/events", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
crate::progenitor_support::encode_path(&review_id.to_string()), | |
), | |
@@ -1601,8 +1601,8 @@ impl Pulls { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/{}/update-branch", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&pull_number.to_string()), | |
), | |
None, | |
diff --git a/github/src/rate_limit.rs b/github/src/rate_limit.rs | |
index fd0fdf4..8a0e2f8 100644 | |
--- a/github/src/rate_limit.rs | |
+++ b/github/src/rate_limit.rs | |
@@ -24,7 +24,7 @@ impl RateLimit { | |
* FROM: <https://docs.github.com/rest/reference/rate-limit#get-rate-limit-status-for-the-authenticated-user> | |
*/ | |
pub async fn get(&self) -> Result<crate::types::RateLimitOverview> { | |
- let url = self.client.url("/rate_limit", None); | |
+ let url = self.client.url(&"/rate_limit".to_string(), None); | |
self.client | |
.get( | |
&url, | |
diff --git a/github/src/reactions.rs b/github/src/reactions.rs | |
index e867cc1..f85c2a9 100644 | |
--- a/github/src/reactions.rs | |
+++ b/github/src/reactions.rs | |
@@ -57,8 +57,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
crate::progenitor_support::encode_path(&comment_number.to_string()), | |
query_ | |
@@ -104,8 +104,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
crate::progenitor_support::encode_path(&comment_number.to_string()), | |
query_ | |
@@ -151,8 +151,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments/{}/reactions", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
crate::progenitor_support::encode_path(&comment_number.to_string()), | |
), | |
@@ -198,8 +198,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments/{}/reactions/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
crate::progenitor_support::encode_path(&comment_number.to_string()), | |
crate::progenitor_support::encode_path(&reaction_id.to_string()), | |
@@ -259,8 +259,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
query_ | |
), | |
@@ -304,8 +304,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
query_ | |
), | |
@@ -348,8 +348,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/reactions", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
), | |
None, | |
@@ -392,8 +392,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/reactions/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
crate::progenitor_support::encode_path(&reaction_id.to_string()), | |
), | |
@@ -483,8 +483,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
query_ | |
), | |
@@ -526,8 +526,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
query_ | |
), | |
@@ -568,8 +568,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments/{}/reactions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -612,8 +612,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments/{}/reactions/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
crate::progenitor_support::encode_path(&reaction_id.to_string()), | |
), | |
@@ -670,8 +670,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
query_ | |
), | |
@@ -713,8 +713,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
query_ | |
), | |
@@ -755,8 +755,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments/{}/reactions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -799,8 +799,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/comments/{}/reactions/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
crate::progenitor_support::encode_path(&reaction_id.to_string()), | |
), | |
@@ -857,8 +857,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
query_ | |
), | |
@@ -900,8 +900,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
query_ | |
), | |
@@ -942,8 +942,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/reactions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
), | |
None, | |
@@ -986,8 +986,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/issues/{}/reactions/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&issue_number.to_string()), | |
crate::progenitor_support::encode_path(&reaction_id.to_string()), | |
), | |
@@ -1044,8 +1044,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
query_ | |
), | |
@@ -1087,8 +1087,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments/{}/reactions?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
query_ | |
), | |
@@ -1129,8 +1129,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments/{}/reactions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -1173,8 +1173,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pulls/comments/{}/reactions/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
crate::progenitor_support::encode_path(&reaction_id.to_string()), | |
), | |
@@ -1215,8 +1215,8 @@ impl Reactions { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/{}/reactions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&release_id.to_string()), | |
), | |
None, | |
diff --git a/github/src/repos.rs b/github/src/repos.rs | |
index 1ec5be4..55bb55d 100644 | |
--- a/github/src/repos.rs | |
+++ b/github/src/repos.rs | |
@@ -70,7 +70,7 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/repos?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -117,7 +117,7 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/repos?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -160,7 +160,7 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/repos", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -194,8 +194,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -230,8 +230,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -268,8 +268,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -314,8 +314,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/autolinks?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -351,8 +351,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/autolinks", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -389,8 +389,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/autolinks", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -430,8 +430,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/autolinks/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&autolink_id.to_string()), | |
), | |
None, | |
@@ -467,8 +467,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/autolinks/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&autolink_id.to_string()), | |
), | |
None, | |
@@ -501,8 +501,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/automated-security-fixes", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -534,8 +534,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/automated-security-fixes", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -588,8 +588,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -629,8 +629,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -669,9 +669,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -709,9 +709,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -756,9 +756,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -796,9 +796,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -836,9 +836,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/enforce_admins", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -878,9 +878,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/enforce_admins", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -920,9 +920,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/enforce_admins", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -960,9 +960,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_pull_request_reviews", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1000,9 +1000,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_pull_request_reviews", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1045,9 +1045,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_pull_request_reviews", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1089,9 +1089,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_signatures", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1131,9 +1131,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_signatures", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1173,9 +1173,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_signatures", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1213,9 +1213,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_status_checks", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1253,9 +1253,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_status_checks", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1296,9 +1296,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_status_checks", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1336,9 +1336,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1372,9 +1372,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1413,9 +1413,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1454,9 +1454,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1495,9 +1495,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/required_status_checks/contexts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1539,9 +1539,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1581,9 +1581,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1623,9 +1623,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/apps", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1661,9 +1661,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/apps", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1708,9 +1708,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/apps", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1755,9 +1755,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/apps", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1802,9 +1802,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/apps", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1844,9 +1844,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/teams", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1882,9 +1882,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/teams", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1929,9 +1929,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/teams", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -1976,9 +1976,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/teams", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -2023,9 +2023,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/teams", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -2065,9 +2065,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/users", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -2103,9 +2103,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/users", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -2150,9 +2150,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/users", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -2197,9 +2197,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/users", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -2244,9 +2244,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/protection/restrictions/users", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -2299,9 +2299,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/branches/{}/rename", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(branch), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&branch.to_string()), | |
), | |
None, | |
); | |
@@ -2359,8 +2359,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/collaborators?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -2402,8 +2402,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/collaborators?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -2439,9 +2439,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/collaborators/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2490,9 +2490,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/collaborators/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2525,9 +2525,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/collaborators/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2565,9 +2565,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/collaborators/{}/permission", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2617,8 +2617,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -2654,8 +2654,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -2693,8 +2693,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -2733,8 +2733,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -2774,8 +2774,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/comments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&comment_id.to_string()), | |
), | |
None, | |
@@ -2876,8 +2876,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -2960,8 +2960,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -3002,9 +3002,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/branches-where-head", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(commit_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&commit_sha.to_string()), | |
), | |
None, | |
); | |
@@ -3040,9 +3040,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/branches-where-head", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(commit_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&commit_sha.to_string()), | |
), | |
None, | |
); | |
@@ -3092,9 +3092,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/comments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(commit_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&commit_sha.to_string()), | |
query_ | |
), | |
None, | |
@@ -3129,9 +3129,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/comments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(commit_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&commit_sha.to_string()), | |
), | |
None, | |
); | |
@@ -3172,9 +3172,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/comments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(commit_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&commit_sha.to_string()), | |
), | |
None, | |
); | |
@@ -3224,9 +3224,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/pulls?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(commit_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&commit_sha.to_string()), | |
query_ | |
), | |
None, | |
@@ -3261,9 +3261,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/pulls", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(commit_sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&commit_sha.to_string()), | |
), | |
None, | |
); | |
@@ -3348,9 +3348,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
query_ | |
), | |
None, | |
@@ -3409,9 +3409,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/status?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
query_ | |
), | |
None, | |
@@ -3464,9 +3464,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/statuses?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
query_ | |
), | |
None, | |
@@ -3503,9 +3503,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/commits/{}/statuses", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
), | |
None, | |
); | |
@@ -3552,8 +3552,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/community/profile", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -3642,9 +3642,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/compare/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(basehead), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&basehead.to_string()), | |
query_ | |
), | |
None, | |
@@ -3721,9 +3721,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contents/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(path), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&path.to_string()), | |
query_ | |
), | |
None, | |
@@ -3800,9 +3800,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contents/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(path), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&path.to_string()), | |
query_ | |
), | |
None, | |
@@ -3879,9 +3879,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contents/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(path), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&path.to_string()), | |
query_ | |
), | |
None, | |
@@ -3958,9 +3958,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contents/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(path), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&path.to_string()), | |
query_ | |
), | |
None, | |
@@ -4037,9 +4037,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contents/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(path), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&path.to_string()), | |
query_ | |
), | |
None, | |
@@ -4079,9 +4079,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contents/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(path), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&path.to_string()), | |
), | |
None, | |
); | |
@@ -4126,9 +4126,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contents/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(path), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&path.to_string()), | |
), | |
None, | |
); | |
@@ -4183,8 +4183,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contributors?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -4226,8 +4226,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/contributors?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -4296,8 +4296,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -4349,8 +4349,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -4432,8 +4432,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -4471,8 +4471,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&deployment_id.to_string()), | |
), | |
None, | |
@@ -4518,8 +4518,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&deployment_id.to_string()), | |
), | |
None, | |
@@ -4570,8 +4570,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments/{}/statuses?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&deployment_id.to_string()), | |
query_ | |
), | |
@@ -4607,8 +4607,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments/{}/statuses", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&deployment_id.to_string()), | |
), | |
None, | |
@@ -4650,8 +4650,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments/{}/statuses", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&deployment_id.to_string()), | |
), | |
None, | |
@@ -4692,8 +4692,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/deployments/{}/statuses/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&deployment_id.to_string()), | |
crate::progenitor_support::encode_path(&status_id.to_string()), | |
), | |
@@ -4741,8 +4741,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/dispatches", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -4780,8 +4780,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/environments", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -4819,9 +4819,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/environments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(environment_name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&environment_name.to_string()), | |
), | |
None, | |
); | |
@@ -4866,9 +4866,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/environments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(environment_name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&environment_name.to_string()), | |
), | |
None, | |
); | |
@@ -4906,9 +4906,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/environments/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(environment_name), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&environment_name.to_string()), | |
), | |
None, | |
); | |
@@ -4961,8 +4961,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/forks?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -5002,8 +5002,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/forks?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -5043,8 +5043,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/forks", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -5092,8 +5092,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -5127,8 +5127,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -5166,8 +5166,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -5205,8 +5205,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -5240,8 +5240,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -5281,8 +5281,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -5323,8 +5323,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}/config", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -5366,8 +5366,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}/config", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -5418,8 +5418,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}/deliveries?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
query_ | |
), | |
@@ -5461,8 +5461,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}/deliveries?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
query_ | |
), | |
@@ -5504,8 +5504,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}/deliveries/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
crate::progenitor_support::encode_path(&delivery_id.to_string()), | |
), | |
@@ -5547,8 +5547,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}/deliveries/{}/attempts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
crate::progenitor_support::encode_path(&delivery_id.to_string()), | |
), | |
@@ -5583,8 +5583,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}/pings", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -5620,8 +5620,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/hooks/{}/tests", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&hook_id.to_string()), | |
), | |
None, | |
@@ -5670,8 +5670,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/invitations?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -5705,8 +5705,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/invitations", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -5744,8 +5744,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/invitations/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&invitation_id.to_string()), | |
), | |
None, | |
@@ -5785,8 +5785,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/invitations/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&invitation_id.to_string()), | |
), | |
None, | |
@@ -5835,8 +5835,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/keys?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -5870,8 +5870,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/keys", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -5908,8 +5908,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/keys", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -5947,8 +5947,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/keys/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&key_id.to_string()), | |
), | |
None, | |
@@ -5982,8 +5982,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/keys/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&key_id.to_string()), | |
), | |
None, | |
@@ -6016,8 +6016,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/languages", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6054,8 +6054,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/merges", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6087,8 +6087,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6125,8 +6125,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6163,8 +6163,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6196,8 +6196,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6245,8 +6245,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages/builds?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -6280,8 +6280,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages/builds", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6319,8 +6319,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages/builds", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6356,8 +6356,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages/builds/latest", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6395,8 +6395,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages/builds/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&build_id.to_string()), | |
), | |
None, | |
@@ -6437,8 +6437,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/pages/health", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6483,8 +6483,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/readme?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -6532,9 +6532,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/readme/{}?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(dir), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&dir.to_string()), | |
query_ | |
), | |
None, | |
@@ -6585,8 +6585,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -6622,8 +6622,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6662,8 +6662,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6701,8 +6701,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/assets/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&asset_id.to_string()), | |
), | |
None, | |
@@ -6736,8 +6736,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/assets/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&asset_id.to_string()), | |
), | |
None, | |
@@ -6777,8 +6777,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/assets/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&asset_id.to_string()), | |
), | |
None, | |
@@ -6817,8 +6817,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/latest", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -6856,9 +6856,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/tags/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(tag), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&tag.to_string()), | |
), | |
None, | |
); | |
@@ -6896,8 +6896,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&release_id.to_string()), | |
), | |
None, | |
@@ -6931,8 +6931,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&release_id.to_string()), | |
), | |
None, | |
@@ -6972,8 +6972,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&release_id.to_string()), | |
), | |
None, | |
@@ -7024,8 +7024,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/{}/assets?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&release_id.to_string()), | |
query_ | |
), | |
@@ -7061,8 +7061,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/{}/assets", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&release_id.to_string()), | |
), | |
None, | |
@@ -7131,8 +7131,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/releases/{}/assets?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&release_id.to_string()), | |
query_ | |
), | |
@@ -7166,8 +7166,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/code_frequency", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7200,8 +7200,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/code_frequency", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7237,8 +7237,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/commit_activity", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7271,8 +7271,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/commit_activity", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7314,8 +7314,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/contributors", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7354,8 +7354,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/contributors", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7393,8 +7393,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/participation", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7432,8 +7432,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/punch_card", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7468,8 +7468,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/stats/punch_card", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7510,9 +7510,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/statuses/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(sha), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&sha.to_string()), | |
), | |
None, | |
); | |
@@ -7560,8 +7560,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/tags?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -7591,8 +7591,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/tags", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7633,9 +7633,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/tarball/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
), | |
None, | |
); | |
@@ -7683,8 +7683,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/teams?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -7714,8 +7714,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/teams", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7763,8 +7763,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/topics?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -7802,8 +7802,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/topics", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7846,8 +7846,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/traffic/clones?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -7884,8 +7884,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/traffic/popular/paths", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7918,8 +7918,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/traffic/popular/paths", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7955,8 +7955,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/traffic/popular/referrers", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -7989,8 +7989,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/traffic/popular/referrers", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -8033,8 +8033,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/traffic/views?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -8072,8 +8072,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/transfer", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -8105,8 +8105,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/vulnerability-alerts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -8138,8 +8138,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/vulnerability-alerts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -8171,8 +8171,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/vulnerability-alerts", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -8213,9 +8213,9 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/zipball/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
- crate::progenitor_support::encode_path(ref_), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
+ crate::progenitor_support::encode_path(&ref_.to_string()), | |
), | |
None, | |
); | |
@@ -8259,8 +8259,8 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/generate", | |
- crate::progenitor_support::encode_path(template_owner), | |
- crate::progenitor_support::encode_path(template_repo), | |
+ crate::progenitor_support::encode_path(&template_owner.to_string()), | |
+ crate::progenitor_support::encode_path(&template_repo.to_string()), | |
), | |
None, | |
); | |
@@ -8502,7 +8502,7 @@ impl Repos { | |
&self, | |
body: &crate::types::ReposCreateRequest, | |
) -> Result<crate::types::Repository> { | |
- let url = self.client.url("/user/repos", None); | |
+ let url = self.client.url(&"/user/repos".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -8567,7 +8567,9 @@ impl Repos { | |
pub async fn list_all_invitations_for_authenticated_user( | |
&self, | |
) -> Result<Vec<crate::types::RepositoryInvitation>> { | |
- let url = self.client.url("/user/repository_invitations", None); | |
+ let url = self | |
+ .client | |
+ .url(&"/user/repository_invitations".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -8689,7 +8691,7 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/repos?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -8736,7 +8738,7 @@ impl Repos { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/repos?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
diff --git a/github/src/scim.rs b/github/src/scim.rs | |
index 37d41a0..f851ddc 100644 | |
--- a/github/src/scim.rs | |
+++ b/github/src/scim.rs | |
@@ -70,7 +70,7 @@ impl Scim { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/organizations/{}/Users?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -106,7 +106,7 @@ impl Scim { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/organizations/{}/Users", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -142,8 +142,8 @@ impl Scim { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/organizations/{}/Users/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(scim_user_id), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_user_id.to_string()), | |
), | |
None, | |
); | |
@@ -184,8 +184,8 @@ impl Scim { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/organizations/{}/Users/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(scim_user_id), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_user_id.to_string()), | |
), | |
None, | |
); | |
@@ -217,8 +217,8 @@ impl Scim { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/organizations/{}/Users/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(scim_user_id), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_user_id.to_string()), | |
), | |
None, | |
); | |
@@ -270,8 +270,8 @@ impl Scim { | |
let url = self.client.url( | |
&format!( | |
"/scim/v2/organizations/{}/Users/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(scim_user_id), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&scim_user_id.to_string()), | |
), | |
None, | |
); | |
diff --git a/github/src/secret_scanning.rs b/github/src/secret_scanning.rs | |
index 44a856f..24ffab8 100644 | |
--- a/github/src/secret_scanning.rs | |
+++ b/github/src/secret_scanning.rs | |
@@ -58,8 +58,8 @@ impl SecretScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/secret-scanning/alerts?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -105,8 +105,8 @@ impl SecretScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/secret-scanning/alerts?{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
query_ | |
), | |
None, | |
@@ -147,8 +147,8 @@ impl SecretScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/secret-scanning/alerts/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&alert_number.to_string()), | |
), | |
None, | |
@@ -190,8 +190,8 @@ impl SecretScanning { | |
let url = self.client.url( | |
&format!( | |
"/repos/{}/{}/secret-scanning/alerts/{}", | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
crate::progenitor_support::encode_path(&alert_number.to_string()), | |
), | |
None, | |
diff --git a/github/src/teams.rs b/github/src/teams.rs | |
index d7b0839..7e0267c 100644 | |
--- a/github/src/teams.rs | |
+++ b/github/src/teams.rs | |
@@ -48,7 +48,7 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/team-sync/groups?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -95,7 +95,7 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams?{}", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
query_ | |
), | |
None, | |
@@ -125,7 +125,7 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -162,7 +162,7 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams", | |
- crate::progenitor_support::encode_path(org), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
), | |
None, | |
); | |
@@ -196,8 +196,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -233,8 +233,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -273,8 +273,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -336,8 +336,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
query_ | |
), | |
None, | |
@@ -383,8 +383,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
query_ | |
), | |
None, | |
@@ -426,8 +426,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -467,8 +467,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
), | |
None, | |
@@ -509,8 +509,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
), | |
None, | |
@@ -552,8 +552,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
), | |
None, | |
@@ -613,8 +613,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
query_ | |
), | |
@@ -658,8 +658,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
query_ | |
), | |
@@ -704,8 +704,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
), | |
None, | |
@@ -748,8 +748,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
crate::progenitor_support::encode_path(&comment_number.to_string()), | |
), | |
@@ -793,8 +793,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
crate::progenitor_support::encode_path(&comment_number.to_string()), | |
), | |
@@ -839,8 +839,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/discussions/{}/comments/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&discussion_number.to_string()), | |
crate::progenitor_support::encode_path(&comment_number.to_string()), | |
), | |
@@ -892,8 +892,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/invitations?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
query_ | |
), | |
None, | |
@@ -929,8 +929,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/invitations", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -988,8 +988,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/members?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
query_ | |
), | |
None, | |
@@ -1031,8 +1031,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/members?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
query_ | |
), | |
None, | |
@@ -1080,9 +1080,9 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/memberships/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1131,9 +1131,9 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/memberships/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1177,9 +1177,9 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/memberships/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1229,8 +1229,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/projects?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
query_ | |
), | |
None, | |
@@ -1266,8 +1266,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/projects", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -1307,8 +1307,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/projects/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&project_id.to_string()), | |
), | |
None, | |
@@ -1350,8 +1350,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/projects/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&project_id.to_string()), | |
), | |
None, | |
@@ -1392,8 +1392,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/projects/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
crate::progenitor_support::encode_path(&project_id.to_string()), | |
), | |
None, | |
@@ -1444,8 +1444,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/repos?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
query_ | |
), | |
None, | |
@@ -1481,8 +1481,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/repos", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -1528,10 +1528,10 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/repos/{}/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1576,10 +1576,10 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/repos/{}/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1621,10 +1621,10 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/repos/{}/{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -1664,8 +1664,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/team-sync/group-mappings", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -1706,8 +1706,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/team-sync/group-mappings", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -1757,8 +1757,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/teams?{}", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
query_ | |
), | |
None, | |
@@ -1794,8 +1794,8 @@ impl Teams { | |
let url = self.client.url( | |
&format!( | |
"/orgs/{}/teams/{}/teams", | |
- crate::progenitor_support::encode_path(org), | |
- crate::progenitor_support::encode_path(team_slug), | |
+ crate::progenitor_support::encode_path(&org.to_string()), | |
+ crate::progenitor_support::encode_path(&team_slug.to_string()), | |
), | |
None, | |
); | |
@@ -2643,7 +2643,7 @@ impl Teams { | |
&format!( | |
"/teams/{}/members/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2686,7 +2686,7 @@ impl Teams { | |
&format!( | |
"/teams/{}/members/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2727,7 +2727,7 @@ impl Teams { | |
&format!( | |
"/teams/{}/members/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2773,7 +2773,7 @@ impl Teams { | |
&format!( | |
"/teams/{}/memberships/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2821,7 +2821,7 @@ impl Teams { | |
&format!( | |
"/teams/{}/memberships/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -2864,7 +2864,7 @@ impl Teams { | |
&format!( | |
"/teams/{}/memberships/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -3183,8 +3183,8 @@ impl Teams { | |
&format!( | |
"/teams/{}/repos/{}/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -3228,8 +3228,8 @@ impl Teams { | |
&format!( | |
"/teams/{}/repos/{}/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -3265,8 +3265,8 @@ impl Teams { | |
&format!( | |
"/teams/{}/repos/{}/{}", | |
crate::progenitor_support::encode_path(&team_id.to_string()), | |
- crate::progenitor_support::encode_path(owner), | |
- crate::progenitor_support::encode_path(repo), | |
+ crate::progenitor_support::encode_path(&owner.to_string()), | |
+ crate::progenitor_support::encode_path(&repo.to_string()), | |
), | |
None, | |
); | |
@@ -3483,7 +3483,7 @@ impl Teams { | |
* FROM: <https://docs.github.com/rest/reference/teams#list-teams-for-the-authenticated-user> | |
*/ | |
pub async fn list_all_for_authenticated_user(&self) -> Result<Vec<crate::types::FullTeam>> { | |
- let url = self.client.url("/user/teams", None); | |
+ let url = self.client.url(&"/user/teams".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
diff --git a/github/src/users.rs b/github/src/users.rs | |
index 8bcde49..17dff3b 100644 | |
--- a/github/src/users.rs | |
+++ b/github/src/users.rs | |
@@ -24,7 +24,7 @@ impl Users { | |
* FROM: <https://docs.github.com/rest/reference/users#get-the-authenticated-user> | |
*/ | |
pub async fn get_authenticated_public_user(&self) -> Result<crate::types::PublicUser> { | |
- let url = self.client.url("/user", None); | |
+ let url = self.client.url(&"/user".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -47,7 +47,7 @@ impl Users { | |
* FROM: <https://docs.github.com/rest/reference/users#get-the-authenticated-user> | |
*/ | |
pub async fn get_authenticated_private_user(&self) -> Result<crate::types::PrivateUser> { | |
- let url = self.client.url("/user", None); | |
+ let url = self.client.url(&"/user".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -70,7 +70,7 @@ impl Users { | |
* FROM: <https://docs.github.com/rest/reference/users#get-the-authenticated-user> | |
*/ | |
pub async fn get_authenticated(&self) -> Result<crate::types::UsersGetByUsernameResponseOneOf> { | |
- let url = self.client.url("/user", None); | |
+ let url = self.client.url(&"/user".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -94,7 +94,7 @@ impl Users { | |
&self, | |
body: &crate::types::UsersUpdateAuthenticatedRequest, | |
) -> Result<crate::types::PrivateUser> { | |
- let url = self.client.url("/user", None); | |
+ let url = self.client.url(&"/user".to_string(), None); | |
self.client | |
.patch( | |
&url, | |
@@ -115,7 +115,7 @@ impl Users { | |
* FROM: <https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user> | |
*/ | |
pub async fn list_blocked_by_authenticated(&self) -> Result<Vec<crate::types::SimpleUser>> { | |
- let url = self.client.url("/user/blocks", None); | |
+ let url = self.client.url(&"/user/blocks".to_string(), None); | |
self.client | |
.get( | |
&url, | |
@@ -138,7 +138,7 @@ impl Users { | |
* FROM: <https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user> | |
*/ | |
pub async fn list_all_blocked_by_authenticated(&self) -> Result<Vec<crate::types::SimpleUser>> { | |
- let url = self.client.url("/user/blocks", None); | |
+ let url = self.client.url(&"/user/blocks".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -166,7 +166,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/user/blocks/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -197,7 +197,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/user/blocks/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -228,7 +228,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/user/blocks/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -255,7 +255,7 @@ impl Users { | |
&self, | |
body: &crate::types::UsersSetPrimaryEmailVisibilityAuthenticatedRequest, | |
) -> Result<Vec<crate::types::Email>> { | |
- let url = self.client.url("/user/email/visibility", None); | |
+ let url = self.client.url(&"/user/email/visibility".to_string(), None); | |
self.client | |
.patch( | |
&url, | |
@@ -316,7 +316,7 @@ impl Users { | |
* FROM: <https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user> | |
*/ | |
pub async fn list_all_emails_for_authenticated(&self) -> Result<Vec<crate::types::Email>> { | |
- let url = self.client.url("/user/emails", None); | |
+ let url = self.client.url(&"/user/emails".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -340,7 +340,7 @@ impl Users { | |
&self, | |
body: &crate::types::UsersAddEmailAuthenticatedRequestOneOf, | |
) -> Result<Vec<crate::types::Email>> { | |
- let url = self.client.url("/user/emails", None); | |
+ let url = self.client.url(&"/user/emails".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -364,7 +364,7 @@ impl Users { | |
&self, | |
body: &crate::types::UsersAddEmailAuthenticatedRequestOneOf, | |
) -> Result<()> { | |
- let url = self.client.url("/user/emails", None); | |
+ let url = self.client.url(&"/user/emails".to_string(), None); | |
self.client | |
.delete( | |
&url, | |
@@ -429,7 +429,7 @@ impl Users { | |
pub async fn list_all_followers_for_authenticated_user( | |
&self, | |
) -> Result<Vec<crate::types::SimpleUser>> { | |
- let url = self.client.url("/user/followers", None); | |
+ let url = self.client.url(&"/user/followers".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -494,7 +494,7 @@ impl Users { | |
pub async fn list_all_followed_by_authenticated( | |
&self, | |
) -> Result<Vec<crate::types::SimpleUser>> { | |
- let url = self.client.url("/user/following", None); | |
+ let url = self.client.url(&"/user/following".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -522,7 +522,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/user/following/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -555,7 +555,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/user/following/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -586,7 +586,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/user/following/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -650,7 +650,7 @@ impl Users { | |
* FROM: <https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user> | |
*/ | |
pub async fn list_all_gpg_keys_for_authenticated(&self) -> Result<Vec<crate::types::GpgKey>> { | |
- let url = self.client.url("/user/gpg_keys", None); | |
+ let url = self.client.url(&"/user/gpg_keys".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -674,7 +674,7 @@ impl Users { | |
&self, | |
body: &crate::types::UsersCreateGpgKeyAuthenticatedRequest, | |
) -> Result<crate::types::GpgKey> { | |
- let url = self.client.url("/user/gpg_keys", None); | |
+ let url = self.client.url(&"/user/gpg_keys".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -802,7 +802,7 @@ impl Users { | |
pub async fn list_all_public_ssh_keys_for_authenticated( | |
&self, | |
) -> Result<Vec<crate::types::Key>> { | |
- let url = self.client.url("/user/keys", None); | |
+ let url = self.client.url(&"/user/keys".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -826,7 +826,7 @@ impl Users { | |
&self, | |
body: &crate::types::UsersCreatePublicSshKeyAuthenticatedRequest, | |
) -> Result<crate::types::Key> { | |
- let url = self.client.url("/user/keys", None); | |
+ let url = self.client.url(&"/user/keys".to_string(), None); | |
self.client | |
.post( | |
&url, | |
@@ -956,7 +956,7 @@ impl Users { | |
pub async fn list_all_public_emails_for_authenticated( | |
&self, | |
) -> Result<Vec<crate::types::Email>> { | |
- let url = self.client.url("/user/public_emails", None); | |
+ let url = self.client.url(&"/user/public_emails".to_string(), None); | |
self.client | |
.get_all_pages( | |
&url, | |
@@ -1059,7 +1059,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1099,7 +1099,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1139,7 +1139,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1185,7 +1185,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/followers?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1218,7 +1218,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/followers", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1264,7 +1264,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/following?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1297,7 +1297,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/following", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1329,8 +1329,8 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/following/{}", | |
- crate::progenitor_support::encode_path(username), | |
- crate::progenitor_support::encode_path(target_user), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
+ crate::progenitor_support::encode_path(&target_user.to_string()), | |
), | |
None, | |
); | |
@@ -1376,7 +1376,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/gpg_keys?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1409,7 +1409,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/gpg_keys", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); | |
@@ -1462,7 +1462,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/hovercard?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1509,7 +1509,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/keys?{}", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
query_ | |
), | |
None, | |
@@ -1542,7 +1542,7 @@ impl Users { | |
let url = self.client.url( | |
&format!( | |
"/users/{}/keys", | |
- crate::progenitor_support::encode_path(username), | |
+ crate::progenitor_support::encode_path(&username.to_string()), | |
), | |
None, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment