Thanks to visit codestin.com
Credit goes to github.com

Skip to content

when running workflow.create_dispatch , the class returns "False" without any explanation  #2416

@saargrin

Description

@saargrin

when executing
workflow.create_dispatch with dispatch_inputs parameters, only "False" is returned when there are issues with formatting or input names

in Workflow.py , create_dispatch function

    status, _, _ = self._requester.requestJson(
        "POST", f"{self.url}/dispatches", input={"ref": ref, "inputs": inputs}
    )
    return status == 204

this should at least print the real error code , that would be a lot more informative

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions