@theholocron/holocron-plugin-github 5.0.0-alpha.547 → 5.0.0-alpha.549
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/dist/index.mjs +8 -6
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1974,12 +1974,14 @@ var GitHubProjects = class {
|
|
|
1974
1974
|
return repo === this.repo ? `#${number}` : `${repo}#${number}`;
|
|
1975
1975
|
}
|
|
1976
1976
|
parseKey(key) {
|
|
1977
|
-
const
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1977
|
+
const trimmed = key.trim();
|
|
1978
|
+
const hash = trimmed.lastIndexOf("#");
|
|
1979
|
+
const repo = hash > 0 ? trimmed.slice(0, hash) : void 0;
|
|
1980
|
+
const digits = trimmed.slice(hash + 1);
|
|
1981
|
+
if (!/^\d+$/.test(digits) || repo !== void 0 && !/^[^#\s]+$/.test(repo)) throw new Error(`not an issue key: ${key}`);
|
|
1980
1982
|
return {
|
|
1981
|
-
repo:
|
|
1982
|
-
number: Number(
|
|
1983
|
+
repo: repo ?? this.repo,
|
|
1984
|
+
number: Number(digits)
|
|
1983
1985
|
};
|
|
1984
1986
|
}
|
|
1985
1987
|
};
|
|
@@ -2442,7 +2444,7 @@ function withLink(body, link) {
|
|
|
2442
2444
|
const text = body ?? "";
|
|
2443
2445
|
if (names(text, ref)) return body;
|
|
2444
2446
|
const line = `${link.keyword ?? "Refs"} ${ref}`;
|
|
2445
|
-
return text.trim() === "" ? line : `${text.
|
|
2447
|
+
return text.trim() === "" ? line : `${text.trimEnd()}\n\n${line}`;
|
|
2446
2448
|
}
|
|
2447
2449
|
/** Puts the pull request (by node id) on each board of the organization found by title; a board not found or refused is returned by name. */
|
|
2448
2450
|
async function addToBoards(client, repo, nodeId, titles) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-github",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.549",
|
|
4
4
|
"description": "Holocron plugin for GitHub. Implements source, ci, secrets, environments, and issues capabilities against the GitHub REST API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -44,21 +44,21 @@
|
|
|
44
44
|
"tsx": "4.23.15",
|
|
45
45
|
"typescript": "^6.0.3",
|
|
46
46
|
"vitest": "^5.1.1",
|
|
47
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
48
|
-
"@theholocron/eslint-config": "^8.9.0-alpha.
|
|
47
|
+
"@theholocron/cli": "5.0.0-alpha.549",
|
|
48
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.24",
|
|
49
49
|
"@theholocron/fs-utils": "^1.17.0-alpha.6",
|
|
50
50
|
"@theholocron/github-client": "^1.58.0-alpha.59",
|
|
51
51
|
"@theholocron/http-client": "^1.58.0-alpha.59",
|
|
52
52
|
"@theholocron/misc-utils": "^1.17.0-alpha.6",
|
|
53
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.
|
|
54
|
-
"@theholocron/tsdown-config": "^8.9.0-alpha.
|
|
55
|
-
"@theholocron/vitest-config": "^8.9.0-alpha.
|
|
53
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.24",
|
|
54
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.24",
|
|
55
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.24"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@theholocron/fs-utils": "^1.16.0",
|
|
59
59
|
"@theholocron/github-client": "^1.58.0",
|
|
60
60
|
"@theholocron/misc-utils": "^1.16.0",
|
|
61
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
61
|
+
"@theholocron/cli": "5.0.0-alpha.549"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22"
|