Giter VIP home page Giter VIP logo

Comments (17)

shayki5 avatar shayki5 commented on September 25, 2024

Hi @TarunSingh12April,
Can you share please the task configuration?
Thank you,
Shayki

from azure-devops-create-pr-task.

shayki5 avatar shayki5 commented on September 25, 2024

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.

TarunSingh12April avatar TarunSingh12April commented on September 25, 2024

Thanks Shayki.

I am still getting the same error.
Task looks like:
image

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?
image

Thank you.
Tarun

from azure-devops-create-pr-task.

shayki5 avatar shayki5 commented on September 25, 2024

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.

TarunSingh12April avatar TarunSingh12April commented on September 25, 2024

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."

image

image

Please help.. :(

Regards,
Tarun

from azure-devops-create-pr-task.

shayki5 avatar shayki5 commented on September 25, 2024

Hi @TarunSingh12April,

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.

TarunSingh12April avatar TarunSingh12April commented on September 25, 2024

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.

image

image

Thank you,
Tarun

from azure-devops-create-pr-task.

TarunSingh12April avatar TarunSingh12April commented on September 25, 2024

@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.

shayki5 avatar shayki5 commented on September 25, 2024

@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.

TarunSingh12April avatar TarunSingh12April commented on September 25, 2024

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.

shayki5 avatar shayki5 commented on September 25, 2024

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.

TarunSingh12April avatar TarunSingh12April commented on September 25, 2024

@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.

shayki5 avatar shayki5 commented on September 25, 2024

You're welcome!
I will keep you update here.

from azure-devops-create-pr-task.

shayki5 avatar shayki5 commented on September 25, 2024

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.

TarunSingh12April avatar TarunSingh12April commented on September 25, 2024

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.

shayki5 avatar shayki5 commented on September 25, 2024

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.

TarunSingh12April avatar TarunSingh12April commented on September 25, 2024

Sure Shayki.

Regards,
Tarun

from azure-devops-create-pr-task.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.