fix: GitHub list_issues built the wrong URL for org-owned repos
Used format!("repos/{owner}/{repo}/issues", ...) instead of the
slug() helper list_pull_requests already uses, so an org-owned repo
(passed as 'Org/repo') produced repos/{personal_owner}/Org/repo/issues
— a 404 the code silently swallows into an empty list, making the
Issues tab look like 'no issues' instead of a broken request.
This commit is contained in:
1 parent
0aed003b32
commit
2944d4df05
1 file changed
+2
-2
@@ -418,8 +418,8 @@ impl Provider for GitHubProvider {
|
|||||||
async fn list_issues(&self, repo: &str) -> Result<Vec<IssueDetail>> {
|
async fn list_issues(&self, repo: &str) -> Result<Vec<IssueDetail>> {
|
||||||
let resp = self.client
|
let resp = self.client
|
||||||
.get(self.url(&format!(
|
.get(self.url(&format!(
|
||||||
"repos/{}/{}/issues?state=open&per_page=100&pulls=false",
|
"repos/{}/issues?state=open&per_page=100&pulls=false",
|
||||||
self.owner, repo
|
self.slug(repo)
|
||||||
)))
|
)))
|
||||||
.send().await?;
|
.send().await?;
|
||||||
if !resp.status().is_success() { return Ok(vec![]); }
|
if !resp.status().is_success() { return Ok(vec![]); }
|
||||||
|
|||||||
Reference in new issue
Block a user