@theholocron/github-client 1.16.1 → 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 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 { setProperties: (repo, values) => {
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.16.1",
3
+ "version": "1.17.0",
4
4
  "description": "A TypeScript client for the GitHub REST API",
5
5
  "keywords": [
6
6
  "github",
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@theholocron/observability": "^0.3.0",
36
- "@theholocron/http-client": "^1.16.1"
36
+ "@theholocron/http-client": "^1.17.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@theholocron/cli": "5.0.0-alpha.3",