-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Workflow.create_dispatch(): Arguments support "ref: Commit" but API does not #2881
Comments
You are right. Would you like to create a PR to fix this? |
laysauchoa
added a commit
to laysauchoa/PyGithub
that referenced
this issue
Mar 27, 2024
The Github API doesn't support commit SHAs as it is limited to branches and tags. closes:PyGithub#2881
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This:
PyGithub/github/Workflow.py
Line 137 in 34c4642
The Github API simply doesn't support SHAs there: it's limited to branches and tags.
The REST API documentation also mentions branches and tags: https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event--parameters
The text was updated successfully, but these errors were encountered: