Comments (17)
Hi @TarunSingh12April,
Can you share please the task configuration?
Thank you,
Shayki
from azure-devops-create-pr-task.
Hi again @TarunSingh12April,
I updated the extension (to version 1.0.44) and I think it also fixed this error, can you update and check please?
Thank you,
Shayki
from azure-devops-create-pr-task.
Thanks Shayki.
I am still getting the same error.
Task looks like:
I've one query, in extension tab of Azure organizational settings I can see that your extension is installed in my project with latest version 1.0.44. But in task log, 1.0.0. is mentioned as version. Is it normal?
Thank you.
Tarun
from azure-devops-create-pr-task.
Hi @TarunSingh12April, thank you for the information!
About your query, yes, it's normal, the task is 1.0.44 :)
About the error, I caught what cause the error and I fixed it, please ensure the version is 1.0.45.
But put attention, if you give a test email address (in the reviewers) you will get an error that the email address not exist.
Thank you,
Shayki
from azure-devops-create-pr-task.
Hi @shayki5 , Thank you so much for your continuous help.
It seems issue still persists. Version 1.0.45 is reflecting in organization settings and I have used valid email address for reviewers field, still getting same error:
"Cannot convert 'System.String[]' to the type 'System.String' required by parameter 'Message'. Specified method is not supported."
Please help.. :(
Regards,
Tarun
from azure-devops-create-pr-task.
Please remove the task from the build, save, refresh and add again the task.
Or create a new build definition and add the task.
If the above not worked so uninstall the extension and re-install again.
I don't know why but there is an issued with the new versions of the extensions where the task is exist in the pipeline.
Thanks,
Shayki
from azure-devops-create-pr-task.
Hi @shayki5 ,
I re-installed the extension and created new pipeline. It is showing different error now:
"ConvertFrom-Json : Invalid JSON primitive: Page."
It is showing id of reviewer as blank, please have a look in below snip.
Thank you,
Tarun
from azure-devops-create-pr-task.
@shayki5 I forgot to enable Oauth in new pipeline, I have enabled it. It is now showing reviewers id. But still getting same error: "ConvertFrom-Json : Invalid JSON primitive: Page."
from azure-devops-create-pr-task.
@TarunSingh12April Ok, it's look like you still get an error when the task try to create PR but it can't print the error correctly and you get the Json error.
I fixed it and updated the extension now, please remove the task and add him again to the build definition (it should be enough, but I'm not sure) and try again.
Thanks,
Shayki
from azure-devops-create-pr-task.
Hi @shayki5,
Still no luck, same error is coming with version 1.0.46. I tried creating new pipeline, still same error.
However the last link which it is accessing (prior getting failed) gives "404 Page not found" error.
link: https://dev.azure.com/<my_project_name>/<git_repo_name>/_apis/git/repositories/<my_project_name>/<my_git_repository_name>/pullrequests?api-version=5.0
Is there is anything I can do to rectify this from my side.
Our code is not in Azure repos, we are using Github for that.
Thank you,
Tarun
from azure-devops-create-pr-task.
Hi @TarunSingh12April,
That explain the error... the extension can create a PR for Azure DevOps (Repos), not for GitHub :(
It can be useful feature to add, but it will be a lot of work, I will start check it.
Best regards,
Shayki
from azure-devops-create-pr-task.
@shayki5 ohhh... :( However thank you so much for your continuous efforts. I am pretty sure you will add this feature as well.
Regards,
Tarun
from azure-devops-create-pr-task.
You're welcome!
I will keep you update here.
from azure-devops-create-pr-task.
Hi @TarunSingh12April,
I have a good news! I updated the extension with GitHub support :)
The new version is 1.2.1 (it should be updated automatically, check if the Git Type radio buttons exist in the task, if not - uninstall and re-install....).
If you have any questions about it you can ask here.
Kind regards,
Shayki
from azure-devops-create-pr-task.
Hi @shayki5 ,
Thank you so much, new version is working for me. I am able to raise PR in github repo and it is adding reviewers as well.
Thanks again for your help.
Regards,
Tarun
from azure-devops-create-pr-task.
Hi Tarun,
Great! I glad to hear it :)
If you will find a bugs or do you think about an improvements please let e know :)
Thank you,
Shayki
from azure-devops-create-pr-task.
Sure Shayki.
Regards,
Tarun
from azure-devops-create-pr-task.
Related Issues (20)
- Does not work under Linux x64 agent HOT 1
- Running Task in self-managed agent behind a Proxy HOT 6
- Getting 403 Forbidden in the CreatePullRequestTask HOT 1
- Set the creator of the PR to the author of the commit instead of the Build Service User HOT 2
- Wildcard support in targetBranch HOT 7
- Create PR by other user than "project collection build service" HOT 9
- Running on Azure windows-latest agent pool still task is failing HOT 2
- Enhancement - Add work item via ID/URL HOT 1
- Getting error The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel HOT 13
- Automatically complete PR HOT 1
- 400 Bad Request to bypass PR policies HOT 4
- Feature request: add support for git tags
- Is "deleteSourch" a typo? HOT 1
- Version 1.2.363 breaks pipeline for branch with forward slash HOT 3
- Can't set Auto Complete to PR HOT 2
- Error (404) Not Found when adding reviewers on my PR (Azure DevOps) HOT 6
- alwaysCreatePr does not work HOT 1
- Use original git commit message as description (ADO) HOT 6
- Can't check "Delete Source Branch" when using "Bypass Policies" HOT 4
- Autocomplete option not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-devops-create-pr-task.