Is it possible to trigger somehow Azure Pipelines with custom GitHub Pull Request comments (besides the standard ones)?
We’ve found the following documentation suggesting to use webhook triggers but as far as I understand this feature isn’t yet implemented in Azure Pipelines, is it?
Custom GitHub PR comment triggers for Azure Pipelines
Yes, you are right. The feature Incoming Webhook should not yet implemented in Azure Pipelines at this time.
Now, Azure pipeline trigger only support the "standard" GitHub Pull Request comments, like /AzurePipelines runor /AzurePipelines run <pipeline-name>. So we could not use the custom GitHub PR comment trigger the Azure pipeline currently.
The workaround as Levi Lu answered in that post, but the limitation is that the pipeline still needs to be executed for each PR.
If above workaround not help you, you could add your request for this feature on our UserVoice site (https://developercommunity.visualstudio.com/content/idea/post.html?space=21 ), which is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps:
Hope this helps.
Related
I have an azure pipeline that triggers on a branch commit to build the content of the branch and automatically create a release.
I tried to add the Pre-Deployement Approvals in the release stage conditions, and this sends a notification in slack channel where i can approve the releases.
This workflow works just fine. Today i wanted to experiment with jira and azure devops, so i intalled the integration Azure pipeline jira integration to keep track of the releases that belong to a specific ticket. This is the extensione i am using:
https://github.com/Microsoft/azure-pipelines-jira
This works well and i can see all the releases in the ticket issue. But i was wondering if there is any way to enable the approval on a release and when this trigger to send a notification in jira to be approved instead of slack.
Thank you so much for anyone who can point me on the right direction if any.
I have Azure YAML pipelines that have been created long back and I am now looking into migrating my existing devops solutions form Azure to Github Actions.
How do I approach migrating / translating existing pipelines from Azure DevOps to Github Actions?
Manually translating each ADO Pipeline is not something that would be consider a feasible solution for the number of pipelines I have.
Reference Links:
Azure DevOps Pipelines: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/?view=azure-pipelines
Github Actions: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
Simply put: I need to convert my existing ADO pipelines to Github Actions
I am thinking of building a tool to serve this purpose of converting Azure DevOps pipelines to Github Actions but need ideas on how to approach this problem.
From Leo Liu's answer, May 2022:
I am afraid there is no such out of box extension or tool to batch Convert Azure Pipelines YAML to Github Actions YAML at this moment.
Update:
Introducing GitHub Actions Importer (Nov. 2022)
We’ve launched a public preview of GitHub Actions Importer, which helps you forecast, plan, and automate migrations from your current CI/CD tool to GitHub Actions.
Doing individual migrations is relatively easy in isolation.
However, for those that have a large and established CI/CD footprint, having tooling available to assist with migrations is key to their ability to adopt Actions at scale.
In the time that we’ve been developing and using GitHub Actions Importer in its private preview form, we’ve encountered numerous customers that have thousands of pipelines—even in excess of 15K—in their legacy environments that need to be migrated.
GitHub Actions Importer is designed to help when manual migration is not feasible, such as when users have a large number of teams that depend on hundreds or thousands of workflows.
To learn more, see Automating migrations with GitHub Actions Importer and the announcement post on the GitHub blog.
Sign up here to request access to the public preview.
So check it out: it does list Azure DevOps in its Supported CI platforms.
How to Batch Convert Azure Pipelines YAML to Github Actions YAML?
I am afraid there is no such out of box extension or tool to batch Convert Azure Pipelines YAML to Github Actions YAML at this moment.
There is a tool to make migrations between Azure Pipelines YAML and GitHub Actions YAML easier for one YAML file at a time:
Convert Azure Pipelines YAML to GitHub Actions YAML
But the tool for batch convert doesn't seem to exist yet.
I have a bulk of workitem in azuredevops project. I want do delete the comments inside all of them, even the comments raised by others. Is there a way to do it? I tried with delete comments api and it gives me an error: VS403664: Unable to update the comment xxx, you must be a creator of the comment to update it
I was also facing the same issue.
Delete comment feature is now no longer supported in azure devops because in recent time azure devops architecture has been changed due to that it is not providing
comment id to each and every comment hence it's not possible to distinguished each and every comment and because of this issue deleting comment is not supported by azure devops.
unfortunately in the azure devops docs it's not updated yet.
I hope this will be helpful.
Please elaborate the steps to create a workflow of Visual
Studio Team Services and Github.
Integration of Github with VSTS and creating a workflow.
Once we create user stories in vsts, is there any way to create a
transition from one state to another(New->Active->resolved),
based on repository update(github).
There is a way to transition from on state to another when github repo is update:
Create a CI build definition for the github repo.
Add a power shell task to change the stories state.
But usually user stories are linked with repo on VSTS not github, that’s more useful and meaningful.
Automatically is only using VSTS git repo.
If you like update this, you need to create a manual integration, possible using the VSTS Rest Api.
How do you get VSTS to build when a PR is created in GitHub? I've tried several triggers in the VSTS build like refs/pull/*/merge and refs/pull/*/head. I have a build working when a commit is made to the master branch, but I can't get a build to trigger when a PR is created.
I get the following when a PR is created.
Also, the webhook history shows that a message was successfully posted to VSTS, but the build never starts.
The official Microsoft VSTS GitHub Integration extension now supports this directly.
I think it's the trigger. Try what's described in this blog post.
There is not an easy way to enable this today for PRs. It is on the VSTS feature backlog that we want to address soon.
The way to make it work today would be to do something like: add a webhook to call your own custom service endpoint. Within your service endpoint, you could then call into VSTS to queue a build, and the build would need a step to post success/fail back to GitHub.
In your custom service endpoint, you would need to make sure the user is authorized as a contributor on the GitHub repo.
On the new VSTS UI you can find it in Build Edit -> Triggers: