@theholocron/holocron-plugin-github 5.0.0-alpha.477 → 5.0.0-alpha.479
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.d.mts +2 -0
- package/dist/index.mjs +5 -0
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -115,8 +115,10 @@ export declare class GitHubIssues implements Issues {
|
|
|
115
115
|
body?: string;
|
|
116
116
|
labels?: string[];
|
|
117
117
|
milestone?: string;
|
|
118
|
+
assignees?: string[];
|
|
118
119
|
}): Promise<{
|
|
119
120
|
key: string;
|
|
121
|
+
dropped?: string[];
|
|
120
122
|
}>;
|
|
121
123
|
transition(key: string, slot: LifecycleSlot): Promise<LifecycleResult>;
|
|
122
124
|
/** Adds a comment to the issue with the given key. */
|
package/dist/index.mjs
CHANGED
|
@@ -658,6 +658,11 @@ var GitHubIssues = class {
|
|
|
658
658
|
/** Creates an issue and returns its key as `#<number>`; the milestone is resolved from its title. */
|
|
659
659
|
async create(input) {
|
|
660
660
|
const body = { title: input.summary };
|
|
661
|
+
if (input.assignees?.length) {
|
|
662
|
+
const isMe = (a) => /^@?me$/i.test(a);
|
|
663
|
+
const me = input.assignees.some(isMe) ? (await this.getMyself()).id : void 0;
|
|
664
|
+
body.assignees = [...new Set(input.assignees.map((a) => isMe(a) && me ? me : a.replace(/^@/, "")))];
|
|
665
|
+
}
|
|
661
666
|
if (input.body) body.body = input.body;
|
|
662
667
|
if (input.labels?.length) body.labels = input.labels;
|
|
663
668
|
if (input.milestone) body.milestone = await this.resolveMilestone(input.milestone);
|
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.479",
|
|
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": "^5.9.3",
|
|
46
46
|
"vitest": "^5.1.0",
|
|
47
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.20",
|
|
47
48
|
"@theholocron/fs-utils": "^1.17.0-alpha.5",
|
|
48
49
|
"@theholocron/github-client": "^1.58.0-alpha.40",
|
|
49
|
-
"@theholocron/
|
|
50
|
+
"@theholocron/cli": "5.0.0-alpha.479",
|
|
51
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.20",
|
|
50
52
|
"@theholocron/http-client": "^1.58.0-alpha.40",
|
|
51
|
-
"@theholocron/
|
|
52
|
-
"@theholocron/cli": "5.0.0-alpha.477",
|
|
53
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.20",
|
|
53
54
|
"@theholocron/tsdown-config": "^8.9.0-alpha.20",
|
|
54
|
-
"@theholocron/
|
|
55
|
-
"@theholocron/vitest-config": "^8.9.0-alpha.20"
|
|
55
|
+
"@theholocron/misc-utils": "^1.17.0-alpha.5"
|
|
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.479"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22"
|