Skip to content

Commit 85cbfa9

Browse files
committed
chore: update discussion release docs
Update Discussion Release docs on how to get the discussion repository id and the discussion category id via graphql. Signed-off-by: jmeridth <[email protected]>
1 parent 6a8fc91 commit 85cbfa9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/release-discussion.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,22 @@
2727
## Outputs
2828
2929
None
30+
31+
## Notes
32+
33+
In order to get the discussion repository ID and category ID, you can 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):
34+
35+
```graphql
36+
query {
37+
repository(owner: "OWNER", name: "REPO") {
38+
id
39+
discussionCategories(first: 50) {
40+
nodes {
41+
id
42+
name
43+
slug
44+
}
45+
}
46+
}
47+
}
48+
```

0 commit comments

Comments
 (0)