Skip to content

Commit 178cacd

Browse files
committed
Use commit URL to get repo name
1 parent f6a2ada commit 178cacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resource/Async/Repository/Branch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function refresh(): Branch
1616
public function detailedCommit(): PromiseInterface
1717
{
1818
return $this->handleCommand(new DetailedCommitCommand(
19-
\str_replace('/branches/' . $this->name . '/protection', '', \explode('/repos/', $this->protection_url)[1]),
19+
\str_replace('/commits/' . $this->commit->sha(), '', \explode('/repos/', $this->commit->url())[1]),
2020
$this->commit->sha()
2121
));
2222
}

0 commit comments

Comments
 (0)