Comparing version 12.3.0 to 12.3.1
@@ -32,3 +32,4 @@ import { Env, CISource } from "../ci_source"; | ||
* run: yarn danger ci | ||
* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* env: | ||
* GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* ``` | ||
@@ -101,3 +102,4 @@ * | ||
* run: danger-swift ci | ||
* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* env: | ||
* GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* ``` | ||
@@ -149,3 +151,4 @@ * | ||
* uses: danger/danger-js@9.1.6 | ||
* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* env: | ||
* GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* ``` | ||
@@ -152,0 +155,0 @@ * |
@@ -37,3 +37,4 @@ "use strict"; | ||
* run: yarn danger ci | ||
* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* env: | ||
* GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* ``` | ||
@@ -106,3 +107,4 @@ * | ||
* run: danger-swift ci | ||
* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* env: | ||
* GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* ``` | ||
@@ -154,3 +156,4 @@ * | ||
* uses: danger/danger-js@9.1.6 | ||
* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* env: | ||
* GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
* ``` | ||
@@ -293,3 +296,3 @@ * | ||
var eventName = process.env.GITHUB_EVENT_NAME; | ||
var isPR = eventName === "pull_request"; | ||
var isPR = eventName === "pull_request" || eventName === "pull_request_target"; | ||
if (!isPR) { | ||
@@ -296,0 +299,0 @@ console.log("Note: Running Danger on with generalised GitHub Actions support, this does not include `danger.github.pr`."); |
@@ -15,4 +15,4 @@ "use strict"; | ||
var fileDiffs = (0, parse_diff_1.default)(diff); | ||
var addedDiffs = fileDiffs.filter(function (diff) { return diff["new"]; }); | ||
var removedDiffs = fileDiffs.filter(function (diff) { return diff["deleted"]; }); | ||
var addedDiffs = fileDiffs.filter(function (diff) { return diff.new == true; }); | ||
var removedDiffs = fileDiffs.filter(function (diff) { return diff.deleted == true; }); | ||
var modifiedDiffs = fileDiffs.filter(function (diff) { return !(0, lodash_includes_1.default)(addedDiffs, diff) && !(0, lodash_includes_1.default)(removedDiffs, diff); }); | ||
@@ -19,0 +19,0 @@ return { |
@@ -11,2 +11,3 @@ import { Octokit as GitHubNodeAPI } from "@octokit/rest"; | ||
patch: string; | ||
status: string; | ||
} | ||
@@ -13,0 +14,0 @@ /** This represent the GitHub API */ |
@@ -489,3 +489,13 @@ "use strict"; | ||
function prefixedPatch(file) { | ||
return "\ndiff --git a/".concat(file.filename, " b/").concat(file.filename, "\n--- a/").concat(file.filename, "\n+++ b/").concat(file.filename, "\n").concat(file.patch, "\n"); | ||
var fileMode = ""; | ||
if (file.status == "added") { | ||
fileMode = "new file mode"; | ||
} | ||
else if (file.status == "removed") { | ||
fileMode = "deleted file mode"; | ||
} | ||
else if (file.status == "modified") { | ||
fileMode = "modified file mode"; | ||
} | ||
return "\ndiff --git a/".concat(file.filename, " b/").concat(file.filename, "\n").concat(fileMode, " 0\n--- a/").concat(file.filename, "\n+++ b/").concat(file.filename, "\n").concat(file.patch, "\n"); | ||
} | ||
@@ -492,0 +502,0 @@ var files, diff, error_2; |
{ | ||
"name": "danger", | ||
"version": "12.3.0", | ||
"version": "12.3.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
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
1412721
21649