rstudioSettings icon indicating copy to clipboard operation
rstudioSettings copied to clipboard

Offer a way to find all repositories that were created from this template

Open krlmlr opened this issue 4 years ago • 0 comments

There seems to be no native GitHub way to do this as of now (and it's so easy with forks...).

With GraphQL it might be possible. The screenshot is taken from the post above.

971de42b7d41ed8c36055601aa90e8e02b0934e4

The following query shows all my repositories with their template:

query { 
  viewer {
    repositories(first: 100) {
      edges {
        node {
          nameWithOwner,
          templateRepository {
            nameWithOwner
          }
        }
      }
    }
  }
}

It can be run in https://docs.github.com/en/graphql/overview/explorer.

It should be possible to extend the search to all repositories, and to filter for a particular templateRepository.nameWithOwner . Pinging @maelle.

Relevant StackOverflow question: https://stackoverflow.com/q/62943177/946850.

krlmlr avatar May 14 '21 06:05 krlmlr