@jsenv/github-pull-request-impact 1.7.5 → 1.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/github-pull-request-impact",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"description": "Report pull request impact on something",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"test": "node ./scripts/test.mjs"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@jsenv/filesystem": "4.
|
|
37
|
+
"@jsenv/filesystem": "4.10.2",
|
|
38
38
|
"@jsenv/log": "3.5.2"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable new-cap */
|
|
2
1
|
/**
|
|
3
2
|
* This function is generic and is meant to be reused by
|
|
4
3
|
* @jsenv/file-size-impact, @jsenv/performance-impact and @jsenv/lighthouse-score-impact
|
|
@@ -7,7 +6,6 @@
|
|
|
7
6
|
import { fileURLToPath } from "node:url";
|
|
8
7
|
import { assertAndNormalizeDirectoryUrl } from "@jsenv/filesystem";
|
|
9
8
|
import { createLogger } from "@jsenv/log";
|
|
10
|
-
|
|
11
9
|
import * as githubRESTAPI from "./internal/github_rest_api.js";
|
|
12
10
|
import { exec } from "./internal/exec.js";
|
|
13
11
|
import { renderGeneratedByText } from "./internal/renderGeneratedByText.js";
|
|
@@ -308,7 +306,7 @@ const commentPrImpact = async ({
|
|
|
308
306
|
await execCommandInRootDirectory(
|
|
309
307
|
`git merge FETCH_HEAD --allow-unrelated-histories --no-ff --no-commit`,
|
|
310
308
|
);
|
|
311
|
-
} catch
|
|
309
|
+
} catch {
|
|
312
310
|
throw new Error(`git merge command failed (is there a merge conflict?)`);
|
|
313
311
|
}
|
|
314
312
|
await restoreGitUserEmail();
|
|
@@ -367,7 +365,7 @@ const ensureGitConfig = async (
|
|
|
367
365
|
try {
|
|
368
366
|
await execCommandInRootDirectory(`git config ${name}`);
|
|
369
367
|
return () => {};
|
|
370
|
-
} catch
|
|
368
|
+
} catch {
|
|
371
369
|
await execCommandInRootDirectory(`git config ${name} "${valueIfMissing}"`);
|
|
372
370
|
return async () => {
|
|
373
371
|
await execCommandInRootDirectory(`git config --unset ${name}`);
|