Error creating pull request: Unprocessable Entity (HTTP 422) in github actions
Shayam-S3 opened this issue · comments
Shayam sundar commented
I am trying to create a GitHub action to automate PR creation and I got the below error
From https://github.com/Shayam-S3/MyProject
- [new branch] PreProd -> PreProd
- [new branch] PreProd -> origin/PreProd
- Master 7bcfc5b [origin/Master] adtest
PreProd 3f6c249 Update main.yml
remotes/origin/Master 7bcfc5b adtest
remotes/origin/PreProd 3f6c249 Update main.yml
hub pull-request -b PreProd -h Master --no-edit -m "Pulling refs/heads/Master into main" -m "👑 An automated PR" -r "kingdonb" -d || true
Error creating pull request: Unprocessable Entity (HTTP 422)
Rafael Guglielmetti commented
Maybe I am saying something very dumb but it seems that you are trying to create a draft pull requests (flag -d
) and your repo does not allow it.
Shayam sundar commented
Now I am able to create the PR the problem is with the secret token