-
Type:
Bug
-
Status: Done (View Workflow)
-
Priority:
High
-
Resolution: Done
-
Affects Version/s: 6.0.1
-
Fix Version/s: 6.10.0
-
Labels:None
-
Sprint:DevTools 85, DevTools 86
-
Critical Points:1
When determining the mirrorable repositories for a user, ScriptRunner currently uses the /user/repos endpoint of the GitHub API, which implicitly chooses the user based on the provided access token. However, the endpoint only shows repos which that user has explicit access to: this can miss out some public repositories, and also precludes the possibility of using one user's token to mirror a public repo belonging to another user.
Organization-based mirroring uses the /orgs/:org/repos endpoint, which takes the name of the organization of interest as an explicit URL parameter. There is an analogous endpoint for users, /users/:username/repos, which ScriptRunner should use in place of /user/repos.