Bug: gh pr edit --add-reviewer fails with Resource not accessible by integration or '' not found when only…
Bug: gh pr edit --add-reviewer fails with Resource not accessible by integration or '' not found when only…: a task in LegoFlow-SWE (Harbor dataset). The command gh pr edit --add-reviewer unconditionally fetches organization teams from the GitHub API whenever a reviewer modification is requested…
The task
The command `gh pr edit --add-reviewer` unconditionally fetches organization teams from the GitHub API whenever a reviewer modification is requested. This leads to failures in environments where the access token does not include `organization.read` scope (e.g., the default `GITHUB_TOKEN` in GitHub Actions) or when…
Part of Lego-X/LegoFlow-SWE.