Comparing version 11.2.7 to 11.2.8
@@ -13,3 +13,3 @@ "use strict"; | ||
exports.mergeResults = exports.resultsWithFailure = exports.markdownCode = void 0; | ||
var markdownCode = function (string) { return "\n```sh\n".concat(string, "\n```\n"); }; | ||
var markdownCode = function (string) { return "\n```\n".concat(string, "\n```\n"); }; | ||
exports.markdownCode = markdownCode; | ||
@@ -16,0 +16,0 @@ var resultsWithFailure = function (failure, moreMarkdown) { |
@@ -154,3 +154,3 @@ "use strict"; | ||
child.on("close", function (code) { return __awaiter(void 0, void 0, void 0, function () { | ||
var failResults, danger; | ||
var moreMarkdown, failResults, danger; | ||
return __generator(this, function (_a) { | ||
@@ -164,3 +164,4 @@ switch (_a.label) { | ||
process.exitCode = code; | ||
failResults = (0, reporting_1.resultsWithFailure)("`".concat(processDisplayName, "` failed."), "### Log\n\n" + (0, reporting_1.markdownCode)(allLogs)); | ||
moreMarkdown = "### Log\n\n<details>\n\n" + (0, reporting_1.markdownCode)(allLogs) + "\n\n</details>\n"; | ||
failResults = (0, reporting_1.resultsWithFailure)("`".concat(processDisplayName, "` failed."), moreMarkdown); | ||
if (results) { | ||
@@ -167,0 +168,0 @@ results = (0, reporting_1.mergeResults)(results, failResults); |
@@ -16,3 +16,3 @@ import GitLabAPI from "./gitlab/GitLabAPI"; | ||
updateOrCreateComment: (dangerID: string, newComment: string) => Promise<string>; | ||
createComment: (comment: string) => Promise<GitLabNote>; | ||
createComment: (_dangerID: string, comment: string) => Promise<GitLabNote>; | ||
createInlineComment: (git: GitDSL, comment: string, path: string, line: number) => Promise<GitLabDiscussion>; | ||
@@ -19,0 +19,0 @@ updateInlineComment: (comment: string, id: string) => Promise<GitLabNote>; |
@@ -187,3 +187,3 @@ "use strict"; | ||
return [3 /*break*/, 6]; | ||
case 4: return [4 /*yield*/, this.createComment(newComment)]; | ||
case 4: return [4 /*yield*/, this.createComment(dangerID, newComment)]; | ||
case 5: | ||
@@ -236,3 +236,3 @@ // create a new comment | ||
}); }; | ||
this.createComment = function (comment) { return __awaiter(_this, void 0, void 0, function () { | ||
this.createComment = function (_dangerID, comment) { return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
@@ -239,0 +239,0 @@ switch (_a.label) { |
{ | ||
"name": "danger", | ||
"version": "11.2.7", | ||
"version": "11.2.8", | ||
"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
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
1399336
21694