Correct versioning for features in GHES 3.12+ (#49013)
This commit is contained in:
@@ -14,8 +14,7 @@ This API is available for authenticated users, {% data variables.product.prodnam
|
|||||||
|
|
||||||
### Repository.discussions
|
### Repository.discussions
|
||||||
|
|
||||||
List the discussions within a repository. If `categoryId` is specified, only results within that category 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 %}
|
||||||
If `answered` is not specified, both answered and unanswered discussions will be returned.
|
|
||||||
|
|
||||||
_Signature:_
|
_Signature:_
|
||||||
|
|
||||||
@@ -26,7 +25,9 @@ discussions(
|
|||||||
first: Int,
|
first: Int,
|
||||||
last: Int,
|
last: Int,
|
||||||
categoryId: ID = null,
|
categoryId: ID = null,
|
||||||
|
{%- ifversion answered-fields-for-discussions %}
|
||||||
answered: Boolean = null,
|
answered: Boolean = null,
|
||||||
|
{%- endif %}
|
||||||
orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC}
|
orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC}
|
||||||
) : Discussion
|
) : Discussion
|
||||||
```
|
```
|
||||||
@@ -159,10 +160,12 @@ type Discussion implements Comment & Deletable & Lockable & Node & Reactable & R
|
|||||||
"""
|
"""
|
||||||
activeLockReason: LockReason
|
activeLockReason: LockReason
|
||||||
|
|
||||||
|
{%- ifversion answered-fields-for-discussions %}
|
||||||
"""
|
"""
|
||||||
Check if this discussion has been answered
|
Check if this discussion has been answered
|
||||||
"""
|
"""
|
||||||
isAnswered: Boolean!
|
isAnswered: Boolean!
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The comment chosen as this discussion's answer, if any.
|
The comment chosen as this discussion's answer, if any.
|
||||||
|
|||||||
6
data/features/answered-fields-for-discussions.yml
Normal file
6
data/features/answered-fields-for-discussions.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Reference: #12006
|
||||||
|
|
||||||
|
versions:
|
||||||
|
fpt: '*'
|
||||||
|
ghec: '*'
|
||||||
|
ghes: '>=3.12'
|
||||||
@@ -3,3 +3,4 @@
|
|||||||
versions:
|
versions:
|
||||||
fpt: '*'
|
fpt: '*'
|
||||||
ghec: '*'
|
ghec: '*'
|
||||||
|
ghes: '>=3.12'
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
versions:
|
versions:
|
||||||
fpt: '*'
|
fpt: '*'
|
||||||
ghec: '*'
|
ghec: '*'
|
||||||
ghes: '>=3.11'
|
ghes: '>=3.12'
|
||||||
|
|||||||
Reference in New Issue
Block a user