label-actions icon indicating copy to clipboard operation
label-actions copied to clipboard

[BUG] Workflow fails if `close-reason` is empty

Open LukeSavefrogs opened this issue 10 months ago • 0 comments

The documentation states that close-reason is optional:

image

However this is only partially true, since if not provided and close is true, the workflow will fail with the following error:

Error: GraphqlResponseError: Request failed due to following response errors:
 - Variable $reason of type DiscussionCloseReason was provided invalid value

I suggest to update the documentation with something like the following:

-Optional, defaults to ''
+Optional when `close` is set to `false`, defaults to ''

LukeSavefrogs avatar Mar 27 '24 21:03 LukeSavefrogs