Skip to content

Commit 6a18300

Browse files
committed
fix: docs on how to get discussion information
Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent 080fce0 commit 6a18300

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

docs/release.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,22 @@ Without these settings, GoReleaser will attempt to create its own GitHub release
103103

104104
- The draft-first pattern supports repositories with **immutable releases** enabled. The release is created as a draft, artifacts are uploaded, and only then is it published.
105105
- Artifact attestation requires a **public repository**. Private user-owned or organization repositories on free plans will see a warning and skip attestation automatically.
106-
- To get the discussion repository ID and category ID, use the GitHub GraphQL API Explorer: https://docs.github.com/en/graphql/overview/explorer with the following query (replace `OWNER` and `REPO` with the appropriate values):
107-
108-
```graphql
109-
query {
110-
repository(owner: "OWNER", name: "REPO") {
111-
id
112-
discussionCategories(first: 50) {
113-
nodes {
114-
id
115-
name
116-
slug
106+
- To get the discussion repository ID and category ID, use the GitHub CLI (gh) with the following cli and graphql query (replace `OWNER` and `REPO` with the appropriate values):
107+
- Our former suggested way to get this information, The GraphQL API Explorer](https://docs.github.com/en/graphql/guides/using-graphql-clients), was removed on November 11, 2025.
108+
109+
```
110+
gh api graphql -f query=' 7:57:20
111+
query($owner: String!, $repo: String!) {
112+
repository(owner: $owner, name: $repo) {
113+
id
114+
discussionCategories(first: 50) {
115+
nodes {
116+
id
117+
name
118+
slug
119+
}
117120
}
118121
}
119122
}
120-
}
123+
' -f owner='OWNER' -f repo='REPO'
121124
```

0 commit comments

Comments
 (0)