Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to track usage of template #8

Open
paolobrasolin opened this issue Feb 6, 2022 · 0 comments
Open

Find a way to track usage of template #8

paolobrasolin opened this issue Feb 6, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@paolobrasolin
Copy link
Owner

paolobrasolin commented Feb 6, 2022

Apparently, unlike forks, that's impossible. See https://github.community/t/is-there-a-way-to-find-repositories-generated-from-my-template-repository/122838

The GraphQL API helps, with limited scope:

{
  viewer {
    repository(name: "krater") {
      stargazers(first: 100) {
        edges {
          node {
            repositories(first: 10) {
              edges {
                node {
                  nameWithOwner
                  templateRepository {
                    nameWithOwner
                  }
                }
              }
            }
          }
        }
      }
      watchers(first: 100) {
        edges {
          node {
            name
            repositories(first: 10) {
              edges {
                node {
                  nameWithOwner
                  templateRepository {
                    nameWithOwner
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Maybe we'd better just add a dotfile to the repo and ask the users to gracefully keep it, so we can find it via the ordinary search. 🤷

@paolobrasolin paolobrasolin added the enhancement New feature or request label Feb 6, 2022
@paolobrasolin paolobrasolin self-assigned this Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant