Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-774

Use /users/:username/repos endpoint for GitHub mirroring

    Details

    • 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

      Description

      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.

        Attachments

          Structure

            Activity

              People

              Assignee:
              jmarques Jose Marques
              Reporter:
              jchoules Joanna Choules
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel