Add work item comment
Action ID:tools.azure_devops.add_work_item_comment
Add a comment to a work item.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Create pull request comment thread
Action ID:tools.azure_devops.create_pull_request_thread
Create a comment thread on a pull request.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-threads/create?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Comments in the thread, each as
{"content": "...", "commentType": "text"}.Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.File/line context, e.g.
{"filePath": "/src/app.py", "rightFileStart": {"line": 1, "offset": 1}, "rightFileEnd": {"line": 1, "offset": 1}}.Default: null.Create work item
Action ID:tools.azure_devops.create_work_item
Create a work item of the given type (for example Bug or Task) from a mapping of field reference names to values.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/create?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Field reference names mapped to values, e.g.
{"System.Title": "Investigate alert", "System.Description": "..."}.Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Expand parameters for work item attributes. One of
none, relations, fields, links, all.Default: null.Get Advanced Security alert
Action ID:tools.azure_devops.get_alert
Get a GitHub Advanced Security for Azure DevOps alert by ID.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/advancedsecurity/alerts/get?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://advsec.dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Get pipeline run
Action ID:tools.azure_devops.get_pipeline_run
Get a pipeline run by ID.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/runs/get?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Get pull request
Action ID:tools.azure_devops.get_pull_request
Get a pull request by ID.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-request?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Get repository
Action ID:tools.azure_devops.get_repository
Get a Git repository by ID or name.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/get-repository?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Get work item
Action ID:tools.azure_devops.get_work_item
Get a single work item by ID.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/get-work-item?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Expand parameters for work item attributes. One of
none, relations, fields, links, all.Default: null.Comma-separated list of field reference names to return. Cannot be combined with
expand.Default: null.List Advanced Security alerts
Action ID:tools.azure_devops.list_alerts
List GitHub Advanced Security for Azure DevOps alerts (secret, dependency, code scanning) for a repository. Returns one page; pass continuation_token to fetch the next page.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/advancedsecurity/alerts/list?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://advsec.dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.List builds
Action ID:tools.azure_devops.list_builds
List builds in a project matching optional filters. Returns one page; pass continuation_token to fetch the next page.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/build/builds/list?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Result order (e.g.
finishTimeDescending, queueTimeDescending, startTimeDescending).Default: null.Filter by build reason (e.g.
manual, individualCI, schedule, pullRequest).Default: null.Filter by status (e.g.
inProgress, completed, cancelling, postponed, notStarted, all).Default: null.List pipeline runs
Action ID:tools.azure_devops.list_pipeline_runs
List the top 10000 runs for a pipeline.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/runs/list?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.List pipelines
Action ID:tools.azure_devops.list_pipelines
List pipelines in a project. Returns one page; pass continuation_token to fetch the next page.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/list?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.List projects
Action ID:tools.azure_devops.list_projects
List projects in an Azure DevOps organization. Returns one page; pass continuation_token to fetch the next page.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/core/projects/list?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Continuation token (number of projects already fetched) from the previous page.Default:
null.Filter on team project state. One of
all, createPending, deleted, deleting, new, unchanged, wellFormed.Default: null.List pull requests
Action ID:tools.azure_devops.list_pull_requests
List pull requests in a repository matching optional search criteria.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.List repositories
Action ID:tools.azure_devops.list_repositories
List Git repositories in a project.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Include hidden repositories.Default:
null.List teams
Action ID:tools.azure_devops.list_teams
List teams in a project.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/core/teams/get-teams?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.List work item comments
Action ID:tools.azure_devops.list_work_item_comments
List comments on a work item. Returns one page; pass continuation_token to fetch the next page.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/get-comments?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Additional data to include. One of
none, reactions, renderedText, renderedTextOnly, all.Default: null.List work items
Action ID:tools.azure_devops.list_work_items
Get a batch of work items by IDs (maximum 200).
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/list?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Expand parameters for work item attributes. One of
none, relations, fields, links, all.Default: null.Comma-separated list of field reference names to return. Cannot be combined with
expand.Default: null.Query work items (WIQL)
Action ID:tools.azure_devops.query_work_items
Run a WIQL query and return matching work item references.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/wiql/query-by-wiql?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
WIQL query text, e.g.
SELECT [System.Id] FROM WorkItems WHERE [System.State] = 'Active'.Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Run pipeline
Action ID:tools.azure_devops.run_pipeline
Run a YAML pipeline, optionally overriding the branch, template parameters, and variables.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/runs/run-pipeline?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Run resources, e.g.
{"repositories": {"self": {"refName": "refs/heads/main"}}} to pick the branch.Default: null.Update work item
Action ID:tools.azure_devops.update_work_item
Update fields on an existing work item from a mapping of field reference names to values.
Reference: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/update?view=azure-devops-rest-7.2
Secrets
Optional secrets:azure_devops_oauth: OAuth tokenAZURE_DEVOPS_USER_TOKEN.azure_devops_oauth: OAuth tokenAZURE_DEVOPS_SERVICE_TOKEN.
Input fields
Field reference names mapped to new values, e.g.
{"System.State": "Closed"}.Azure DevOps base URL. Defaults to
https://dev.azure.com (Azure DevOps Services). For Azure DevOps Server, set this to the collection URL.Default: null.Expand parameters for work item attributes. One of
none, relations, fields, links, all.Default: null.