Whenever I try to create a PR I get
[Debug 28373s 194ms] GitHubRepository> Creating pull requests failed: HttpError: Validation Failed
right after I choose target branch
Steps to Reproduce:
I believe I am having the same issue trying to create a pull request when following
the steps above, creating a new pull request using the '+' option using a local
and published branch. Output shown below.
I was able to create the pull request manually using the 'hub pull-request' command,
and once created I was able to see and navigate around in the pull request using the
extension which is great. I am stuck trying to use the extension to create the PR from
a branch.
Installation details:
Code - Insiders
Version 1.36.0-insider (1.36.0-insider)
fe0c3e785c22c3ed2d5caa7178488c92d62bdb08
MacOs 10.14.5 Mojave
Installed Extensions:
formulahendry.[email protected]
GitHub.[email protected]
Hyzeta.[email protected]
markis.[email protected]
ms-python.[email protected]
njpwerner.[email protected]
teabyii.[email protected]
tomoki1207.[email protected]
vscode-icons-team.[email protected]
Pull request output:
[Info] Looking for git repository
[Info] Git repository found, initializing review manager and pr tree view.
[Info] Found GitHub remote
[Info] https://api.github.com: GraphQL support detected
[Info] Review> no matching pull request metadata found for current branch undefined
[Info] Found GitHub remote
[Info] Review> no matching pull request metadata found for current branch undefined
[Info] Found GitHub remote
[Info] Review> no matching pull request metadata found for current branch master
[Info] Found GitHub remote
[Info] Review> no matching pull request metadata found for current branch master
[Info] Found GitHub remote
[Info] Review> no matching pull request metadata found for current branch azure-ci-v1
[Info] GitHubRepository> Creating pull requests failed: HttpError: Validation Failed
[Info] GitHubRepository> Creating pull requests failed: HttpError: Validation Failed
[Info] GitHubRepository> Creating pull requests failed: HttpError: Validation Failed
[Info] Found GitHub remote
Any solution to this? I'm having the same issue
+1 here.
+1
+1
The same issue. Please fix.
+1
+1
+1
Any Solution for this?
Unfortunately, the logs aren't currently detailed enough to know what the exact cause is - there are several reasons why validation might fail when creating a pull request. One common one is there being no difference in commits between the target branch and the current branch. Possibly the extension isn't correctly setting a title.
I have already check in a change that should fix the way we format the error from GitHub, so there should be more details in both the extension output log and in the notification. This is available in the nightly version of the extension (https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github-insiders), can you give it a try there to see if there's more information? Note that if you do install the nightly version, you should disable the normal version of the extension so that they don't conflict with each other
+1
Extension version 0.12.0 should now show a more detailed error notification when this happens - please let me know what you see
+1
@jzsplk Was there any additional information in the error? What version of the extension are you using?
+1
Pull request creation failed. Validation failed: You can't perform that action at this time.
Any Solution for this?
I had the same issue. it appears that I was logged in with my private github user and not with the github user I have for work.
after logging in with my work user I was able to create the PR
I keep getting this warning when trying to create a pull request:
Creating pull requests for 'Scyfren:Scyfren/issue18' failed: Validation Failed: Value "undefined" cannot be set for field undefined (code: custom)
I'm sure that I'm putting in a title name when using custom. This even shows up when trying to use the commit and branch option. I think it started happening when I accidentally tried to create a pull request using the custom option but with no title.
Reproduced with plugin version v0.18.0 and VS Code 1.47.3 with git version 2.27.0.windows.1 on Windows 10 1909.
I also get this with visual code 1.47.3 running on ubuntu 18.04.1 VM in azure. The full error message is
Creating pull requests for 'mrevow:master' failed: Validation Failed: Value "undefined" cannot be set for field undefined (code: custom)
I tried back and forth and have found some kind of __rules(?)__ where it doesn't complain validation error and works fine.
The new_branch that you want to merge into master has to exist at repository.
Create branch at your local environment -> push that branch to the repository -> And make a PR for master branch
Doing like this works for me so far.
Seems this issue has been open a long time with many people hitting it.
Can't anything be done about it?
I solved it by clearing the code source and doing a fresh clean copy.
I guess the git config was wrong.
I hope my solution will help others.
Any solution to this? I'm having the same issue
Most helpful comment
I keep getting this warning when trying to create a pull request:
Creating pull requests for 'Scyfren:Scyfren/issue18' failed: Validation Failed: Value "undefined" cannot be set for field undefined (code: custom)
I'm sure that I'm putting in a title name when using custom. This even shows up when trying to use the commit and branch option. I think it started happening when I accidentally tried to create a pull request using the custom option but with no title.