shayki5 / azure-devops-create-pr-task

Azure Pipelines task to create PR in Azure DevOps or GitHub during a build or release pipeline
https://marketplace.visualstudio.com/items?itemName=ShaykiAbramczyk.CreatePullRequest
MIT License
58 stars 35 forks source link

Cross platform task #145

Open bdovaz opened 2 years ago

bdovaz commented 2 years ago

I created the index.ts file following the blog post where it explains how to make the wrapper:

Remaining tasks:

As I said, I have no experience with TypeScript or developing tasks for Azure Pipelines.... I see that there is no test so I'm afraid that creating a regression is very easy.

I need you to lend me a hand in what you can to speed up this PR. Otherwise, I don't think I will be able to do it on my own.

shayki5 commented 2 years ago

Hi, Thank you so much for your PR, i will check it! First thing i can see that iIn the task.json need to change the execution from PS to TS:

    "execution": {
        "Node10": {
            "target": "index.js"
        }
    }
bdovaz commented 2 years ago

Replaced!

shayki5 commented 2 years ago

Great! need to change the pipeline to convert .ts to .js file, can you push the .js file just for the tests?

bdovaz commented 2 years ago

It's git ignored because it's automatically generated with "npm run build" (with tsc) command.

bdovaz commented 1 year ago

@shayki5 any news? Have you been able to take the time to check it?

shayki5 commented 1 year ago

Not yet ๐Ÿ˜ž need to change the pipeline also for support the ts.. i have already an example from my other extensions: https://github.com/shayki5/azure-devops-print-all-variables/blob/master/azure-pipelines.yml Just need to time to make it work also in this pr...

DaleMckeown commented 1 year ago

How is this progressing? It would really like to be able to run this on other platforms other than windows.

shayki5 commented 1 year ago

@DaleMckeown Unfortunately I haven't had time to delve into it yet, the pipeline needs to be updated also to support it. In the meantime, you can run a dedicated Windows job for this step.

steveruddell commented 1 year ago

Not yet ๐Ÿ˜ž need to change the pipeline also for support the ts.. i have already an example from my other extensions: https://github.com/shayki5/azure-devops-print-all-variables/blob/master/azure-pipelines.yml Just need to time to make it work also in this pr...

@shayki5 can you describe more specifically what needs to happen for this PR to be able to be completed? I and others may be willing to contribute if the acceptance criteria were specified (and if possible the specific files that need to be updated). Thanks!

shayki5 commented 1 year ago

Hi @steveruddell, thank you for your comment! First of all need to update the azure pipeline to build the extension from the ts files, you can see an example here: https://github.com/shayki5/azure-devops-print-all-variables/blob/master/azure-pipelines.yml After that it will be possible to check the other files. I just don't have any experience with wrapping PS extension with TS, you can see here some guidness: https://blogs.blackmarble.co.uk/rfennell/a-technique-for-porting-powershell-based-azure-devops-extensions-to-node-so-they-can-be-run-cross-platform-without-a-complete-re-write/

nbaju1 commented 3 months ago

Any progress on this? Having this work on Linux is a much wanted feature.

shayki5 commented 3 months ago

@nbaju1 Unfortunately I haven't gotten to it yet ๐Ÿ˜’, want to try contributing?