@theholocron/holocron-plugin-github 5.0.0-alpha.9 → 5.0.0-alpha.90

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
@@ -159,7 +159,7 @@ declare class GitHubSource implements Source {
159
159
  removeWorkflowFile(name: string): Promise<void>;
160
160
  writeRepoFile(path: string, contents: string): Promise<void>;
161
161
  syncLabels(canonical: ReadonlyArray<LabelDef>, stale: ReadonlyArray<string>): Promise<string>;
162
- syncProperties(values: Record<string, string>): Promise<string>;
162
+ syncProperties(values: Record<string, string | string[]>): Promise<string>;
163
163
  syncTeams(teams: TeamEntry$1[]): Promise<string>;
164
164
  syncTopics(topics: string[]): Promise<string>;
165
165
  syncDescription(description: string): Promise<string>;
package/dist/index.mjs CHANGED
@@ -708,10 +708,11 @@ function issues(ctx) {
708
708
  }
709
709
  function createPlugin(options) {
710
710
  function makeCtx(resolver) {
711
+ const token = resolver(options);
711
712
  return {
712
713
  options,
713
714
  client: createGitHubClient$1({
714
- token: resolver(options),
715
+ token,
715
716
  baseUrl: options.baseUrl,
716
717
  fetch: options.fetch
717
718
  }),
@@ -721,8 +722,9 @@ function createPlugin(options) {
721
722
  }
722
723
  function makeOrgClient() {
723
724
  try {
725
+ const token = resolveOrgToken(options);
724
726
  return createGitHubClient$1({
725
- token: resolveOrgToken(options),
727
+ token,
726
728
  baseUrl: options.baseUrl,
727
729
  fetch: options.fetch
728
730
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-github",
3
- "version": "5.0.0-alpha.9",
3
+ "version": "5.0.0-alpha.90",
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",
@@ -34,11 +34,12 @@
34
34
  "libsodium-wrappers": "^0.8.4"
35
35
  },
36
36
  "devDependencies": {
37
- "@theholocron/eslint-config": "^8.0.0",
38
- "@theholocron/github-client": "^1.14.2",
39
- "@theholocron/tsconfig": "^8.0.0",
40
- "@theholocron/tsdown-config": "^8.0.0",
41
- "@theholocron/vitest-config": "^8.0.0",
37
+ "@theholocron/eslint-config": "^8.6.0",
38
+ "@theholocron/github-client": "^1.33.0",
39
+ "@theholocron/http-client": "^1.31.0",
40
+ "@theholocron/tsconfig": "^8.4.5",
41
+ "@theholocron/tsdown-config": "^8.4.5",
42
+ "@theholocron/vitest-config": "^8.4.5",
42
43
  "@types/node": "^26",
43
44
  "@vitest/coverage-v8": "^4.1.11",
44
45
  "@vitest/eslint-plugin": "^1.6.27",
@@ -49,11 +50,11 @@
49
50
  "tsx": "4.23.12",
50
51
  "typescript": "^5.9.3",
51
52
  "vitest": "^4.1.11",
52
- "@theholocron/cli": "5.0.0-alpha.9"
53
+ "@theholocron/cli": "5.0.0-alpha.90"
53
54
  },
54
55
  "peerDependencies": {
55
- "@theholocron/github-client": "^1.14.2",
56
- "@theholocron/cli": "5.0.0-alpha.9"
56
+ "@theholocron/github-client": "^1.33.0",
57
+ "@theholocron/cli": "5.0.0-alpha.90"
57
58
  },
58
59
  "engines": {
59
60
  "node": ">=22"