SIGN IN SIGN UP

Add `throw` option to `Workflow.create_dispatch` to raise exceptions (#2966)

When using Workflow.create_dispatch(), we only get a boolean response
even though the GitHub API returns detailed error messages.

This adds an option to the method to throw exceptions with the error
data when it fails.

We've been having issues with creating workflow dispatch with
missing/too many arguments.

---------

Co-authored-by: Enrico Minack <github@enrico.minack.dev>
D
Denis Blanchette committed
19e1c5032397a95c58fe25760723ffc24cbe0ec8
Parent: 6461909
Committed by GitHub <noreply@github.com> on 1/6/2026, 7:31:20 PM