Closed hui1110 closed 2 years ago
PASS_IF_EXISTS
is only relevant if you already have the PR and want the test to pass: https://github.com/vsoch/pull-request-action/blob/e64deeba68463798e4438d116312934afcd2d74a/pull-request.py#L326-L328
The error you are linking is triggered up here: https://github.com/vsoch/pull-request-action/blob/e64deeba68463798e4438d116312934afcd2d74a/pull-request.py#L110-L112 and it suggests that the GitHub API doesn't like the formatting of some of your parameters.
Also this line suggests you made it through that second part:
No pull request from ***:branch_name to main is open, continuing!
I'm suspicious about your title and body being empty (or a .) - I would try actually putting some content there. If that still doesn't work, try removing special characters from your branch name (I think I see a :
)
Thanks for your reply, this has been fixed. The parameter does not conform to the format of the GitHub API.
Sure thing! I've definitely hit this issue before too. If you are all set please feel free to close the issue.
After creating a pull request, I added the variable
PASS_IF_EXISTS
, try to update the pull request, there will be the following print:The variable
PASS_IF_EXISTS
doesn't seem to work.