Comparing version 11.0.7 to 11.1.1
@@ -137,7 +137,7 @@ "use strict"; | ||
sourceParts = (this.env.CODEBUILD_SOURCE_VERSION || "").split("/"); | ||
triggerParts = (this.env.CODEBUILD_WEBHOOK_TRIGGER || "").split("/"); | ||
branchName = triggerParts[0] === "branch" ? triggerParts[1] : null; | ||
triggerParts = this.env.CODEBUILD_WEBHOOK_TRIGGER || ""; | ||
branchName = triggerParts.startsWith("branch/") ? triggerParts.replace("branch/", "") : null; | ||
prId = sourceParts[0] === "pr" ? sourceParts[1] : null; | ||
if (!prId) { | ||
prId = triggerParts[0] === "pr" ? triggerParts[1] : null; | ||
prId = triggerParts.startsWith("pr/") ? triggerParts.replace("pr/", "") : null; | ||
} | ||
@@ -144,0 +144,0 @@ if (!(!prId && branchName)) return [3 /*break*/, 2]; |
@@ -413,3 +413,3 @@ "use strict"; | ||
this.getPullRequestInlineComments = function (dangerID) { return __awaiter(_this, void 0, void 0, function () { | ||
var userID, repo, prID; | ||
var userID, repo, prID, dangerIDMessage; | ||
return __generator(this, function (_a) { | ||
@@ -422,2 +422,3 @@ switch (_a.label) { | ||
prID = this.repoMetadata.pullRequestID; | ||
dangerIDMessage = (0, githubIssueTemplate_1.dangerIDToString)(dangerID); | ||
return [4 /*yield*/, this.getAllOfResource("repos/".concat(repo, "/pulls/").concat(prID, "/comments")).then(function (v) { | ||
@@ -427,3 +428,3 @@ return v | ||
.map(function (i) { | ||
return __assign(__assign({}, i), { ownedByDanger: i.user.id == userID && i.body.includes(dangerID) }); | ||
return __assign(__assign({}, i), { ownedByDanger: i.user.id == userID && i.body.includes(dangerIDMessage) }); | ||
}) | ||
@@ -430,0 +431,0 @@ .filter(function (i) { return i.ownedByDanger; }); |
{ | ||
"name": "danger", | ||
"version": "11.0.7", | ||
"version": "11.1.1", | ||
"description": "Unit tests for Team Culture", | ||
@@ -5,0 +5,0 @@ "main": "distribution/danger.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1368343
21286