Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(azure-devops): report build validation to PR watches #24568

Closedjuliusmarmingewants to merge 6 commits intomain fromtakeover/pr-18759opened View on GitHub

Showing 5 changed files with 143 additions and 2 deletions (loading 3).

x
0 of 5 viewed, 5 left
93 additions and 2 deletionspackages/source-control-azure-devops/src/server/AzureDevOpsPullRequestCli.test.tsModified
View file
@@ -61,6 +61,17 @@
],
};
​
+const buildPolicy = {
+ status: "rejected",
+ configuration: {
+ id: 12,
+ isEnabled: true,
+ isBlocking: true,
+ type: { id: "0609b952-1397-4640-95ec-e00a01b2c241" },
+ settings: { displayName: "Tests" },
+ },
+};
+​
function pullRequestRows(
count: number,
firstNumber: number,
@@ -120,6 +131,7 @@
output(json({ ...pullRequestRow, lastMergeSourceCommit: { commitId: previousHead } })),
+ .mockReturnValueOnce(Effect.succeed(output("[]")))
.mockReturnValueOnce(
Effect.succeed(
output(
@@ -146,8 +158,8 @@
});