Skip to content

Commit d93911b

Browse files
authored
Merge pull request #2071 from Urgau/fix-get_issue
Prefer GitHub `issues` endpoint as it accept both PR and issues
2 parents 522a47b + c0251f3 commit d93911b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ impl Repository {
18881888
}
18891889

18901890
pub async fn get_issue(&self, client: &GithubClient, issue_num: u64) -> anyhow::Result<Issue> {
1891-
let url = format!("{}/pulls/{issue_num}", self.url(client));
1891+
let url = format!("{}/issues/{issue_num}", self.url(client));
18921892
client
18931893
.json(client.get(&url))
18941894
.await

0 commit comments

Comments
 (0)