@theholocron/github-client 1.16.0 → 1.17.0
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 +1 -1
- package/dist/index.mjs +10 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -286,7 +286,7 @@ declare function createGitHubClient(opts: GitHubClientOptions): {
|
|
|
286
286
|
updatePages: (repo: string, payload: UpdatePagesPayload) => Promise<void>;
|
|
287
287
|
};
|
|
288
288
|
properties: {
|
|
289
|
-
setProperties: (repo: string, values: Record<string, string>) => Promise<void>;
|
|
289
|
+
setProperties: (repo: string, values: Record<string, string | string[]>) => Promise<void>;
|
|
290
290
|
};
|
|
291
291
|
pulls: {
|
|
292
292
|
getPullRequest: (repo: string, number: number) => Promise<GitHubPullRequest>;
|
package/dist/index.mjs
CHANGED
|
@@ -184,7 +184,16 @@ function pages(rest) {
|
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region src/properties/properties.ts
|
|
186
186
|
function properties(rest) {
|
|
187
|
-
return {
|
|
187
|
+
return {
|
|
188
|
+
/**
|
|
189
|
+
* `value` is a plain string for `string`/`single_select`/`true_false`
|
|
190
|
+
* custom properties, or a string array for `multi_select` ones —
|
|
191
|
+
* GitHub's own PATCH body accepts either per property. A single-string
|
|
192
|
+
* comma-joined value has no length ceiling GitHub documents, but real
|
|
193
|
+
* usage hits one in practice (a `string`-type property with enough
|
|
194
|
+
* joined values 422s as "too long"); `multi_select` has none.
|
|
195
|
+
*/
|
|
196
|
+
setProperties: (repo, values) => {
|
|
188
197
|
const propertyList = Object.entries(values).map(([property_name, value]) => ({
|
|
189
198
|
property_name,
|
|
190
199
|
value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/github-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "A TypeScript client for the GitHub REST API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github",
|
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@theholocron/observability": "^0.3.0",
|
|
36
|
-
"@theholocron/http-client": "^1.
|
|
36
|
+
"@theholocron/http-client": "^1.17.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
+
"@theholocron/cli": "5.0.0-alpha.3",
|
|
39
40
|
"@theholocron/eslint-config": "^8.2.0",
|
|
40
41
|
"@theholocron/tsconfig": "^8.2.0",
|
|
41
42
|
"@theholocron/tsdown-config": "^8.2.0",
|
|
42
43
|
"@theholocron/vitest-config": "^8.2.0",
|
|
43
44
|
"@types/node": "^26.4.1",
|
|
44
|
-
"@vitest/coverage-v8": "^
|
|
45
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
45
46
|
"@vitest/eslint-plugin": "^1.6.25",
|
|
46
47
|
"eslint": "^10.8.1",
|
|
47
48
|
"eslint-plugin-n": "^18.3.0",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"globals": "^17.12.0",
|
|
50
51
|
"tsdown": "^0.22.14",
|
|
51
52
|
"typescript": "^5.9.3",
|
|
52
|
-
"vitest": "^
|
|
53
|
+
"vitest": "^5.0.0"
|
|
53
54
|
},
|
|
54
55
|
"engines": {
|
|
55
56
|
"node": ">=22.0.0"
|
|
@@ -60,11 +61,10 @@
|
|
|
60
61
|
"releases": "https://github.com/theholocron/clients/releases",
|
|
61
62
|
"wiki": "https://github.com/theholocron/clients/wiki",
|
|
62
63
|
"scripts": {
|
|
63
|
-
"build": "tsdown",
|
|
64
|
-
"
|
|
65
|
-
"test": "vitest run",
|
|
66
|
-
"test:coverage": "vitest run --coverage",
|
|
64
|
+
"delivery.build": "tsdown",
|
|
65
|
+
"sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
|
|
67
66
|
"test:watch": "vitest",
|
|
68
|
-
"
|
|
67
|
+
"verification.typeSafety": "holocron run verification.typeSafety --",
|
|
68
|
+
"verification.unitTests": "holocron run verification.unitTests --"
|
|
69
69
|
}
|
|
70
70
|
}
|