Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

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

@krlmlr

Description

@krlmlr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions