Skip to content

Commit c0251f3

Browse files
committed
Prefer issues endpoint as it accept both PR and issues
1 parent 42e52d0 commit c0251f3

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
@@ -1930,7 +1930,7 @@ impl Repository {
19301930
}
19311931

19321932
pub async fn get_issue(&self, client: &GithubClient, issue_num: u64) -> anyhow::Result<Issue> {
1933-
let url = format!("{}/pulls/{issue_num}", self.url(client));
1933+
let url = format!("{}/issues/{issue_num}", self.url(client));
19341934
client
19351935
.json(client.get(&url))
19361936
.await

0 commit comments

Comments
 (0)