Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Workflow fails if close-reason is empty #28

Open
LukeSavefrogs opened this issue Mar 27, 2024 · 0 comments
Open

[BUG] Workflow fails if close-reason is empty #28

LukeSavefrogs opened this issue Mar 27, 2024 · 0 comments

Comments

@LukeSavefrogs
Copy link

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 ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant