liushooter / actions

BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

how to get github discussions categoryId #5

Open liushooter opened 2 years ago

liushooter commented 2 years ago
gh api graphql -f query='
{
  # https://github.com/github/docs

  repository(owner: "github", name: "docs") {
    id # RepositoryID
    name
    discussionCategories(first: 10) {
      nodes {
        id # CategoryID
        name
      }
    }
  }
}'