We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d49c022 + 2277ad7 commit 9f16d2dCopy full SHA for 9f16d2d
src/github.rs
@@ -1228,7 +1228,7 @@ impl Repository {
1228
client: &GithubClient,
1229
refname: &str,
1230
sha: &str,
1231
- ) -> anyhow::Result<()> {
+ ) -> anyhow::Result<GitReference> {
1232
let url = format!("{}/git/refs/{}", self.url(), refname);
1233
client
1234
.json(client.patch(&url).json(&serde_json::json!({
@@ -1241,8 +1241,7 @@ impl Repository {
1241
"{} failed to update reference {refname} to {sha}",
1242
self.full_name
1243
)
1244
- })?;
1245
- Ok(())
+ })
1246
}
1247
1248
/// Returns a list of recent commits on the given branch.
0 commit comments