github-datasource icon indicating copy to clipboard operation
github-datasource copied to clipboard

Add Topics to Repository Fields

Open RichiCoder1 opened this issue 5 years ago • 4 comments

We'd like to be able to pull the topics for a given Repo. Would be nice to either have this as a field on projects or a separate source (or both).

RichiCoder1 avatar Oct 29 '20 19:10 RichiCoder1

This seems relatively easy to implement, so if there's a 👍🏻 or 👎🏻 on implementation I could contribute this.

RichiCoder1 avatar Oct 29 '20 21:10 RichiCoder1

As far as I can tell in their GraphQL API (GitHub's v4 API), there is no "Topic" resource under the "Repository" resource.

I'm not familiar with topics but I can't seem to find any information about it in their API aside from listing the number of stargazers or repositories that are in a topic, which is helpful but does not match what you want in this issue.

kminehart avatar Apr 10 '21 23:04 kminehart

There's def a topics resource, it's just specifically named

query {
  repository(owner: "github", name: "gitignore") {
    name,
    repositoryTopics(first: 100) {
      nodes {
        topic {
          name
        }
      }
    }
  }
}

RichiCoder1 avatar Apr 13 '21 17:04 RichiCoder1

Anyone update on this feature. is there any way to pull out topics from repository. ?

githubadmin123456 avatar Dec 30 '22 03:12 githubadmin123456