@savvy-web/silk-effects 5.5.0 → 5.5.1
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.
|
@@ -95,10 +95,12 @@ function formatChangelogEntry(entry, options) {
|
|
|
95
95
|
*/
|
|
96
96
|
function formatPRAndUserAttribution(pr, user, links) {
|
|
97
97
|
let prReference = "";
|
|
98
|
-
if (pr)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
if (pr) {
|
|
99
|
+
if (links?.pull) {
|
|
100
|
+
const pullUrl = extractUrlFromMarkdown(links.pull);
|
|
101
|
+
prReference = ` [#${String(pr)}](${pullUrl})`;
|
|
102
|
+
} else prReference = ` (#${String(pr)})`;
|
|
103
|
+
}
|
|
102
104
|
if (user) {
|
|
103
105
|
if (links?.user) {
|
|
104
106
|
const userUrl = extractUrlFromMarkdown(links.user);
|
|
@@ -69,18 +69,20 @@ function readSigningDiagnostic() {
|
|
|
69
69
|
const isSsh = gpgFormat === "ssh";
|
|
70
70
|
let keyResolves = false;
|
|
71
71
|
let keyExpiry = null;
|
|
72
|
-
if (signingKey)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
72
|
+
if (signingKey) {
|
|
73
|
+
if (isSsh) keyResolves = yield* Effect.tryPromise(async () => {
|
|
74
|
+
await stat(signingKey);
|
|
75
|
+
return true;
|
|
76
|
+
}).pipe(Effect.orElseSucceed(() => false));
|
|
77
|
+
else {
|
|
78
|
+
const stdout = yield* spawner.string(ChildProcess.make("gpg", [
|
|
79
|
+
"--list-secret-keys",
|
|
80
|
+
"--with-colons",
|
|
81
|
+
signingKey
|
|
82
|
+
])).pipe(Effect.orElseSucceed(() => ""));
|
|
83
|
+
keyResolves = stdout.trim().length > 0;
|
|
84
|
+
keyExpiry = parseGpgKeyExpiry(stdout);
|
|
85
|
+
}
|
|
84
86
|
}
|
|
85
87
|
let agentResponsive = true;
|
|
86
88
|
if (!isSsh) agentResponsive = yield* spawner.exitCode(ChildProcess.make("gpg-connect-agent", ["/bye"])).pipe(Effect.timeout("1 second"), Effect.map((code) => code === 0), Effect.orElseSucceed(() => false));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/silk-effects",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Effect library for Silk Suite conventions",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk-effects",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"@changesets/config": "^4.0.0-next.6",
|
|
34
34
|
"@changesets/get-github-info": "^1.0.0-next.4",
|
|
35
35
|
"@changesets/get-release-plan": "^5.0.0-next.9",
|
|
36
|
-
"@effected/commands": "^0.
|
|
37
|
-
"@effected/git": "^0.
|
|
38
|
-
"@effected/glob": "^0.
|
|
39
|
-
"@effected/jsonc": "^0.
|
|
40
|
-
"@effected/package-json": "^0.
|
|
41
|
-
"@effected/templates": "^0.
|
|
42
|
-
"@effected/walker": "^0.
|
|
43
|
-
"@effected/workspaces": "^0.
|
|
44
|
-
"@effected/yaml": "^0.
|
|
36
|
+
"@effected/commands": "^0.4.0",
|
|
37
|
+
"@effected/git": "^0.7.0",
|
|
38
|
+
"@effected/glob": "^0.3.0",
|
|
39
|
+
"@effected/jsonc": "^0.6.0",
|
|
40
|
+
"@effected/package-json": "^0.8.0",
|
|
41
|
+
"@effected/templates": "^0.2.0",
|
|
42
|
+
"@effected/walker": "^0.4.0",
|
|
43
|
+
"@effected/workspaces": "^0.11.0",
|
|
44
|
+
"@effected/yaml": "^0.7.0",
|
|
45
45
|
"@manypkg/get-packages": "^3.1.0",
|
|
46
46
|
"mdast-util-heading-range": "^4.0.0",
|
|
47
47
|
"mdast-util-to-string": "^4.0.0",
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
"yaml-lint": "^1.7.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"effect": "4.0.0-beta.
|
|
59
|
+
"effect": "4.0.0-beta.107"
|
|
60
60
|
}
|
|
61
61
|
}
|