-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feat(azure-devops): block and trigger #4664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e3c9ada
azure devops logo on white
mzxchandra 27fcd25
generated ADO tool docs
mzxchandra 5fd4568
generated ADO tool docs
mzxchandra 22cd7ae
added ADO to registries
mzxchandra 0db4cff
ADO workflow triggers
mzxchandra 1bacff0
ADO workflow triggers
mzxchandra 39eaa61
tool layer for ADO, checks passed and manual verified
mzxchandra 15c617e
ADO workflow triggers
mzxchandra 8e07ef1
block layer for ADO
mzxchandra 042410e
ADO icon svg
mzxchandra e0aa743
generated docs for ADO triggers
mzxchandra c2a150d
committing the tests for azure devops tools and blocks
mzxchandra e49a52c
Update apps/sim/triggers/azure_devops/utils.ts
mzxchandra 1bdfd79
Update apps/sim/tools/azure_devops/update_work_item.ts
mzxchandra 61b4d91
Update apps/sim/triggers/azure_devops/utils.ts
mzxchandra d11aa83
comma syntax error patched
mzxchandra c084b6c
azure devops: validate-integration fixes + manual description
waleedlatif1 c4a3508
azure_devops: second-pass audit fixes + formatter cleanup
waleedlatif1 119ac04
azure_devops: address PR review comments
waleedlatif1 609a647
idemtpotency
waleedlatif1 db0b46b
azure_devops: address bugbot review comments
waleedlatif1 cdc8041
azure_devops: address additional bugbot comments
waleedlatif1 41b172f
azure_devops: address more bugbot comments
waleedlatif1 5959ecb
azure_devops: pin add_comment to documented api-version 7.0-preview.3
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ | |
| "ashby", | ||
| "athena", | ||
| "attio", | ||
| "azure_devops", | ||
| "box", | ||
| "brandfetch", | ||
| "brightdata", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| --- | ||
| title: Azure Devops | ||
| description: Available Azure Devops triggers for automating workflows | ||
| --- | ||
|
|
||
| import { BlockInfoCard } from "@/components/ui/block-info-card" | ||
|
|
||
| <BlockInfoCard | ||
| type="azure_devops" | ||
| color="#0078D4" | ||
| /> | ||
|
|
||
| Azure Devops provides 3 triggers for automating workflows based on events. | ||
|
|
||
| ## Triggers | ||
|
|
||
| ### Azure DevOps Build Failed | ||
|
|
||
| Trigger workflow when an Azure DevOps build fails, is canceled, or partially succeeds | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `buildId` | number | Build ID | | ||
| | `buildNumber` | string | Build number string \(e.g. 20240101.1\) | | ||
| | `result` | string | Build result: failed \| canceled \| partiallySucceeded | | ||
| | `pipelineId` | number | Pipeline definition ID | | ||
| | `pipelineName` | string | Pipeline definition name | | ||
| | `projectName` | string | Azure DevOps project name | | ||
| | `branch` | string | Source branch name \(refs/heads/ prefix stripped\) | | ||
| | `commitSha` | string | Source commit SHA | | ||
| | `triggeredBy` | string | Display name of the person who triggered the build | | ||
| | `triggeredByEmail` | string | Email/unique name of the person who triggered the build | | ||
| | `startTime` | string | Build start time \(ISO 8601\) | | ||
| | `finishTime` | string | Build finish time \(ISO 8601\) | | ||
| | `buildUrl` | string | API URL for the build resource | | ||
|
|
||
|
|
||
| --- | ||
|
|
||
| ### Azure DevOps Webhook (All Service Hook Events) | ||
|
|
||
| Trigger on whichever service hook event types you configure in Azure DevOps. Sim does not filter deliveries for this trigger. | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `eventType` | string | Service hook event type \(e.g. build.complete, workitem.created\) | | ||
| | `notificationId` | number | Notification ID | | ||
| | `subscriptionId` | string | Service hook subscription ID | | ||
| | `publisherId` | string | Publisher ID \(e.g. tfs\) | | ||
| | `createdDate` | string | Event creation time \(ISO 8601\) | | ||
| | `resource` | json | Event resource payload | | ||
| | `resourceContainers` | json | Resource container references \(project, collection, etc.\) | | ||
| | `message` | json | Short message object | | ||
| | `detailedMessage` | json | Detailed message object | | ||
|
|
||
|
|
||
| --- | ||
|
|
||
| ### Azure DevOps Work Item Created | ||
|
|
||
| Trigger workflow when a work item is created in Azure DevOps | ||
|
|
||
| #### Output | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --------- | ---- | ----------- | | ||
| | `workItemId` | number | Work item ID | | ||
| | `workItemType` | string | Work item type for Basic process \(e.g. Issue, Task, Epic\) | | ||
| | `title` | string | Work item title | | ||
| | `state` | string | Work item state for Basic process \(e.g. To Do, Doing, Done\) | | ||
| | `createdBy` | string | Display name of the creator | | ||
| | `assignedTo` | string | Assignee display name, or empty string if unassigned | | ||
| | `priority` | number | Priority \(1–4\), or 0 if not set | | ||
| | `areaPath` | string | Area path | | ||
| | `iterationPath` | string | Iteration path | | ||
| | `description` | string | Work item description \(HTML\), or empty string if not set | | ||
| | `projectName` | string | Azure DevOps project name | | ||
| | `workItemUrl` | string | API URL for the work item resource | | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| "airtable", | ||
| "ashby", | ||
| "attio", | ||
| "azure_devops", | ||
| "calcom", | ||
| "calendly", | ||
| "circleback", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.