diff --git a/content/graphql/guides/using-the-graphql-api-for-discussions.md b/content/graphql/guides/using-the-graphql-api-for-discussions.md index 2e052e26bbcf..de6d6962f091 100644 --- a/content/graphql/guides/using-the-graphql-api-for-discussions.md +++ b/content/graphql/guides/using-the-graphql-api-for-discussions.md @@ -14,8 +14,7 @@ This API is available for authenticated users, {% data variables.product.prodnam ### Repository.discussions -List the discussions within a repository. If `categoryId` is specified, only results within that category will be returned. -If `answered` is not specified, both answered and unanswered discussions will be returned. +List the discussions within a repository. If `categoryId` is specified, only results within that category will be returned. {% ifversion answered-fields-for-discussions %}If `answered` is not specified, both answered and unanswered discussions will be returned.{% endif %} _Signature:_ @@ -26,7 +25,9 @@ discussions( first: Int, last: Int, categoryId: ID = null, + {%- ifversion answered-fields-for-discussions %} answered: Boolean = null, + {%- endif %} orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC} ) : Discussion ``` @@ -159,10 +160,12 @@ type Discussion implements Comment & Deletable & Lockable & Node & Reactable & R """ activeLockReason: LockReason + {%- ifversion answered-fields-for-discussions %} """ Check if this discussion has been answered """ isAnswered: Boolean! + {%- endif %} """ The comment chosen as this discussion's answer, if any. diff --git a/data/features/answered-fields-for-discussions.yml b/data/features/answered-fields-for-discussions.yml new file mode 100644 index 000000000000..d1e7ac5707bf --- /dev/null +++ b/data/features/answered-fields-for-discussions.yml @@ -0,0 +1,6 @@ +# Reference: #12006 + +versions: + fpt: '*' + ghec: '*' + ghes: '>=3.12' diff --git a/data/features/markdown-alerts.yml b/data/features/markdown-alerts.yml index 18ae6ab36a35..9268be0daa7b 100644 --- a/data/features/markdown-alerts.yml +++ b/data/features/markdown-alerts.yml @@ -3,3 +3,4 @@ versions: fpt: '*' ghec: '*' + ghes: '>=3.12' diff --git a/data/features/merge-queue.yml b/data/features/merge-queue.yml index 9f5d8e139c3a..d4d8f6aa17c3 100644 --- a/data/features/merge-queue.yml +++ b/data/features/merge-queue.yml @@ -2,4 +2,4 @@ versions: fpt: '*' ghec: '*' - ghes: '>=3.11' + ghes: '>=3.12'