@theholocron/holocron-plugin-github 5.0.0-alpha.575 → 5.0.0-alpha.577

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
@@ -7,7 +7,7 @@
7
7
  * receives plugin-level options from `holocron.config.json` and
8
8
  * returns the bound implementation.
9
9
  */
10
- import { AddedItem, Auth, AuthError, BoardItem, BoardItemInput, BoardState, BoardSummary, BoardTemplate, Ci, CiRun, CiRunFilter, EnsureRelaySourceInput, EnsureRelaySourceResult, EnsureReport, Environment, Environments, ExportInfo, ImportOptions, ImportResult, InspectRelaySourceInput, Issue, IssueCreateInput, IssuePatch, IssueRecord, IssueSearchFilter, IssueSelector, IssueTypeDeclaration, IssueTypeInfo, IssueUpdateResult, Issues, LabelDef, LifecycleResult, LifecycleSlot, MoveReport, PagesConfig, PluginToken, Projects, PullRequest, PullRequestChecks, PullRequestInput, PullRequestPatch, PullRequestResult, RelaySourceState, RepoRef, RepoSettings, ResolveTokenInput, Ruleset, SecretAccess, SecretScope, Secrets, Source, SourceBranch, SourceCheckRun, SourceCheckRunWrite, SourceCommitStatus, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, SyncResult, TeamEntry, TeamEntry as TeamEntry$1, TeamPermission, TeamPermission as TeamPermission$1, TrackerDoctorReport, TrackerUser, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess, createFeatureResolver } from "@theholocron/cli";
10
+ import { AddedItem, Auth, AuthError, BoardItem, BoardItemInput, BoardState, BoardSummary, BoardTemplate, Ci, CiRun, CiRunFilter, EnsureRelaySourceInput, EnsureRelaySourceResult, EnsureReport, Environment, Environments, ExportInfo, ImportOptions, ImportResult, InspectRelaySourceInput, Issue, IssueCreateInput, IssuePatch, IssueRecord, IssueSearchFilter, IssueSelector, IssueTypeDeclaration, IssueTypeInfo, IssueUpdateResult, Issues, LabelDef, LifecycleResult, LifecycleSlot, MoveReport, PagesConfig, PluginToken, Projects, PullRequest, PullRequestChecks, PullRequestInput, PullRequestPatch, PullRequestResult, RelaySourceState, RepoRef, RepoSettings, ResolveTokenInput, Ruleset, SecretAccess, SecretScope, Secrets, Source, SourceBranch, SourceCheckRun, SourceCheckRunWrite, SourceCommitStatus, SourceFile, SourceRepoInfo, SourceRequiredChecks, SourceRulesetDetail, SourceSecurity, SourceTeamMember, SyncResult, TeamEntry, TeamEntry as TeamEntry$1, TeamPermission, TeamPermission as TeamPermission$1, TrackerDoctorReport, TrackerUser, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess, createFeatureResolver } from "@theholocron/cli";
11
11
  import { GitHubClient, GitHubClientOptions, GraphQLClient, createGitHubClient } from "@theholocron/github-client";
12
12
  /** Resolves the token for read-only GitHub access (`HOLOCRON_READ_TOKEN`, keyring key `github.read`). */
13
13
  export declare const resolveReadToken: import("@theholocron/cli").FeatureResolver;
@@ -184,6 +184,15 @@ interface CanonicalLabel {
184
184
  * - Leaves unrecognised labels that aren't in `stale` untouched.
185
185
  */
186
186
  export declare function syncLabels(client: GitHubClient, repo: string, canonical: ReadonlyArray<CanonicalLabel>, stale: ReadonlyArray<string>): Promise<string>;
187
+ /** What the board reads on one pull request's head commit to decide its required checks. */
188
+ interface CommitChecks {
189
+ /** Every check run on the commit. */
190
+ checkRuns: SourceCheckRun[];
191
+ /** The commit's statuses; empty unless they were asked for. */
192
+ commitStatuses: SourceCommitStatus[];
193
+ }
194
+ /** Reads one commit's checks; `withStatuses` is true only when a required context may be a commit status. */
195
+ type CommitChecksReader = (repo: string, sha: string, withStatuses: boolean) => Promise<CommitChecks>;
187
196
  /** Options of the GitHub `projects` capability. */
188
197
  interface ProjectsOptions {
189
198
  /** The repository the provider is configured for, as `owner/name`; its items get the short key `#N`. */
@@ -192,12 +201,13 @@ interface ProjectsOptions {
192
201
  /** The GitHub implementation of the `projects` capability, backed by Projects v2. */
193
202
  export declare class GitHubProjects implements Projects {
194
203
  private readonly graphql;
204
+ private readonly readCommitChecks?;
195
205
  /** Capability key, always `"projects"`. */
196
206
  readonly key: "projects";
197
207
  /** Provider name, always `"github"`. */
198
208
  readonly providerName = "github";
199
209
  private readonly repo;
200
- constructor(graphql: GraphQLClient, opts: ProjectsOptions);
210
+ constructor(graphql: GraphQLClient, opts: ProjectsOptions, readCommitChecks?: CommitChecksReader | undefined);
201
211
  /** Every board of the organization, open and closed. */
202
212
  list(owner: string): Promise<BoardSummary[]>;
203
213
  /** The open board with exactly this name. */
@@ -229,8 +239,12 @@ export declare class GitHubProjects implements Projects {
229
239
  * then reads, one small query per issue, the pull requests that close each open issue a rule could still move (it has a
230
240
  * status that is not `done` or `blocked` and no open blocker), each with the aggregate `ci / Required checks` state of
231
241
  * its head commit. An issue whose read fails keeps no `pullRequests` and carries `pullRequestsProblem` instead.
242
+ *
243
+ * With `required` (a repo with no aggregate) each open pull request's `checks` is the verdict of those required
244
+ * checks on its head commit, read with one check-runs list per pull request (and its statuses only when a required
245
+ * context may be one); without it the read is the aggregate's, exactly as before.
232
246
  */
233
- items(_owner: string, board: BoardSummary, template: BoardTemplate): Promise<BoardItem[]>;
247
+ items(_owner: string, board: BoardSummary, template: BoardTemplate, required?: SourceRequiredChecks): Promise<BoardItem[]>;
234
248
  /** Puts an item in a status; `transitioned` is false when it already is there. */
235
249
  setStatus(_owner: string, board: BoardSummary, key: string, status: string): Promise<LifecycleResult>;
236
250
  /**
@@ -421,7 +435,7 @@ export declare class GitHubSource implements Source {
421
435
  createPullRequest(input: PullRequestInput, repo?: string): Promise<PullRequestResult>;
422
436
  updatePullRequest(number: number, patch: PullRequestPatch, repo?: string): Promise<PullRequestResult>;
423
437
  markReady(number: number, repo?: string): Promise<boolean>;
424
- getPullRequestChecks(number: number, repo?: string): Promise<PullRequestChecks>;
438
+ getPullRequestChecks(number: number, repo?: string, required?: SourceRequiredChecks): Promise<PullRequestChecks>;
425
439
  listCheckRuns(ref: string, repo?: string): Promise<SourceCheckRun[]>;
426
440
  listCommitStatuses(ref: string, repo?: string): Promise<SourceCommitStatus[]>;
427
441
  createCheckRun(sha: string, name: string, write: SourceCheckRunWrite, repo?: string): Promise<number>;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import { AuthError, MissingTokenError, ProviderApiError, areaLabelsForFiles, areaLabelsForTitle, connectionProbe, createFeatureResolver, pickByCreation, readKeysLimited, reportProgress, tokenExpectations, whoamiAction } from "@theholocron/cli";
2
+ import { AuthError, MissingTokenError, ProviderApiError, areaLabelsForFiles, areaLabelsForTitle, connectionProbe, createFeatureResolver, pickByCreation, readKeysLimited, reportProgress, requiredChecksVerdict, tokenExpectations, whoamiAction } from "@theholocron/cli";
3
3
  import { createGitHubClient, createGitHubClient as createGitHubClient$1 } from "@theholocron/github-client";
4
4
  import { mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
5
5
  import { dirname, join } from "node:path";
@@ -104,6 +104,65 @@ var GitHubCi = class {
104
104
  }
105
105
  }
106
106
  };
107
+ // src/capabilities/check-runs.ts
108
+ /** Every check run on a commit in the plain shape the CLI reads (the aggregate's own included). */
109
+ async function readCheckRuns(client, repo, ref) {
110
+ return (await client.checks.listCheckRunsForRef(repo, ref)).map((run) => ({
111
+ id: run.id,
112
+ name: run.name,
113
+ status: run.status,
114
+ conclusion: run.conclusion,
115
+ startedAt: run.started_at ?? null,
116
+ url: run.details_url ?? run.html_url,
117
+ appSlug: run.app?.slug ?? null
118
+ }));
119
+ }
120
+ /** The commit statuses on a commit, newest first, in the plain shape the CLI reads. */
121
+ async function readCommitStatuses(client, repo, ref) {
122
+ return (await client.statuses.listCommitStatuses(repo, ref)).map((status) => ({
123
+ context: status.context,
124
+ state: status.state,
125
+ url: status.target_url
126
+ }));
127
+ }
128
+ /** GitHub's `output` for a write: the title and summary, and the details only when there are some. */
129
+ function outputFor(write) {
130
+ return {
131
+ title: write.title,
132
+ summary: write.summary,
133
+ ...write.text === "" ? {} : { text: write.text }
134
+ };
135
+ }
136
+ /** Posts a check run on a commit and returns its id. */
137
+ async function postCheckRun(client, repo, sha, name, write) {
138
+ return (await client.checks.createCheckRun(repo, {
139
+ name,
140
+ head_sha: sha,
141
+ status: write.status,
142
+ ...write.conclusion === void 0 ? {} : { conclusion: write.conclusion },
143
+ output: outputFor(write),
144
+ ...write.startedAt === void 0 ? {} : { started_at: write.startedAt }
145
+ })).id;
146
+ }
147
+ /** Changes a check run: its state, verdict and output. */
148
+ async function patchCheckRun(client, repo, id, write) {
149
+ await client.checks.updateCheckRun(repo, id, {
150
+ status: write.status,
151
+ ...write.conclusion === void 0 ? {} : { conclusion: write.conclusion },
152
+ output: outputFor(write)
153
+ });
154
+ }
155
+ // src/capabilities/commit-checks.ts
156
+ /**
157
+ * The real {@link CommitChecksReader}: one list of the commit's check runs and, only when asked, one of its statuses.
158
+ * Read now, never cached.
159
+ */
160
+ function commitChecksReader(client) {
161
+ return async (repo, sha, withStatuses) => ({
162
+ checkRuns: await readCheckRuns(client, repo, sha),
163
+ commitStatuses: withStatuses ? await readCommitStatuses(client, repo, sha) : []
164
+ });
165
+ }
107
166
  // src/capabilities/environments.ts
108
167
  /** The GitHub implementation of the `environments` capability, managing a repo's deployment environments. */
109
168
  var GitHubEnvironments = class {
@@ -1321,6 +1380,23 @@ function parseIssueNumber(key, owner, repoName) {
1321
1380
  if (!/^\d+$/.test(num)) throw new Error(`Invalid GitHub issue key "${key}" — expected #N or N.`);
1322
1381
  return parseInt(num, 10);
1323
1382
  }
1383
+ // src/capabilities/required-board-checks.ts
1384
+ /**
1385
+ * The state of a pull request's required checks on its head commit, for a repo with no `ci / Required checks`
1386
+ * aggregate. The rule is the CLI's `requiredChecksVerdict()`, the one `close work` uses: a required check that has not
1387
+ * posted or whose newest run is unfinished or cancelled is `pending`, a failed one is `failure`, and an empty list is
1388
+ * `none` (unknown, never green) with no read at all.
1389
+ */
1390
+ async function requiredBoardChecks(read, repo, sha, required) {
1391
+ if (required.expected.length === 0) return "none";
1392
+ const { checkRuns, commitStatuses } = await read(repo, sha, required.statuses.length > 0);
1393
+ return requiredChecksVerdict({
1394
+ expected: required.expected,
1395
+ statuses: required.statuses,
1396
+ checkRuns,
1397
+ commitStatuses
1398
+ }).state;
1399
+ }
1324
1400
  /**
1325
1401
  * One issue's closing pull requests and the aggregate check on each one's newest commit. It is its own small query,
1326
1402
  * never part of the board's items query: nested under `items(first: 100)` it multiplies past GitHub's resource limit.
@@ -1333,6 +1409,15 @@ const CLOSING_QUERY = `query($id: ID!) { node(id: $id) { ... on Issue {
1333
1409
  } } } } }
1334
1410
  } }
1335
1411
  } } }`;
1412
+ /**
1413
+ * The same read for a repo with no aggregate: the pull requests and their head commit, whose check runs and statuses
1414
+ * are then read through REST (a commit's check suites are too many to nest here).
1415
+ */
1416
+ const CLOSING_REQUIRED_QUERY = `query($id: ID!) { node(id: $id) { ... on Issue {
1417
+ closedByPullRequestsReferences(first: 5, includeClosedPrs: true) { nodes {
1418
+ number state isDraft headRefOid repository { nameWithOwner }
1419
+ } }
1420
+ } } }`;
1336
1421
  const FAILED$1 = /* @__PURE__ */ new Set([
1337
1422
  "FAILURE",
1338
1423
  "TIMED_OUT",
@@ -1368,19 +1453,35 @@ function toBoardPullRequests(nodes, keyOf) {
1368
1453
  });
1369
1454
  }
1370
1455
  /**
1456
+ * Like {@link toBoardPullRequests} for a repo with no aggregate: an open pull request's `checks` is the verdict of the
1457
+ * required checks on its head commit (one read each); a merged or closed one is `none` and is not read.
1458
+ */
1459
+ function toRequiredBoardPullRequests(nodes, keyOf, input) {
1460
+ return Promise.all(nodes.map(async (pr) => {
1461
+ const state = pr.state === "OPEN" ? "open" : pr.state === "MERGED" ? "merged" : "closed";
1462
+ return {
1463
+ key: keyOf(pr.repository.nameWithOwner, pr.number),
1464
+ state,
1465
+ draft: pr.isDraft,
1466
+ checks: state === "open" ? await requiredBoardChecks(input.read, pr.repository.nameWithOwner, pr.headRefOid, input.required) : "none"
1467
+ };
1468
+ }));
1469
+ }
1470
+ /**
1371
1471
  * Reads the closing pull requests of each issue (by node id) with one small query per issue, a few at a time. A query
1372
1472
  * that fails is that issue's `problem` and nothing else: the others are read, and the caller leaves the failed one's
1373
- * pull-request rules unapplied.
1473
+ * pull-request rules unapplied. With `requiredInput` (a repo with no aggregate) each open pull request's `checks` is
1474
+ * the verdict of the required checks on its head commit instead of the aggregate's state.
1374
1475
  */
1375
- async function readClosingPullRequests(graphql, contentIds, keyOf) {
1476
+ async function readClosingPullRequests(graphql, contentIds, keyOf, requiredInput) {
1376
1477
  const results = /* @__PURE__ */ new Map();
1377
1478
  let next = 0;
1378
1479
  const worker = async () => {
1379
1480
  for (let i = next++; i < contentIds.length; i = next++) {
1380
1481
  const id = contentIds[i];
1381
1482
  try {
1382
- const nodes = (await graphql.query(CLOSING_QUERY, { id })).node?.closedByPullRequestsReferences?.nodes;
1383
- results.set(id, nodes ? { pullRequests: toBoardPullRequests(nodes, keyOf) } : { problem: "GitHub returned no pull request list" });
1483
+ const nodes = (await graphql.query(requiredInput ? CLOSING_REQUIRED_QUERY : CLOSING_QUERY, { id })).node?.closedByPullRequestsReferences?.nodes;
1484
+ results.set(id, nodes ? { pullRequests: requiredInput ? await toRequiredBoardPullRequests(nodes, keyOf, requiredInput) : toBoardPullRequests(nodes, keyOf) } : { problem: "GitHub returned no pull request list" });
1384
1485
  } catch (err) {
1385
1486
  results.set(id, { problem: err instanceof Error ? err.message : String(err) });
1386
1487
  }
@@ -1471,13 +1572,15 @@ function toOptionInput(o) {
1471
1572
  /** The GitHub implementation of the `projects` capability, backed by Projects v2. */
1472
1573
  var GitHubProjects = class {
1473
1574
  graphql;
1575
+ readCommitChecks;
1474
1576
  /** Capability key, always `"projects"`. */
1475
1577
  key = "projects";
1476
1578
  /** Provider name, always `"github"`. */
1477
1579
  providerName = "github";
1478
1580
  repo;
1479
- constructor(graphql, opts) {
1581
+ constructor(graphql, opts, readCommitChecks) {
1480
1582
  this.graphql = graphql;
1583
+ this.readCommitChecks = readCommitChecks;
1481
1584
  this.repo = opts.repo;
1482
1585
  }
1483
1586
  /** Every board of the organization, open and closed. */
@@ -1717,8 +1820,13 @@ var GitHubProjects = class {
1717
1820
  * then reads, one small query per issue, the pull requests that close each open issue a rule could still move (it has a
1718
1821
  * status that is not `done` or `blocked` and no open blocker), each with the aggregate `ci / Required checks` state of
1719
1822
  * its head commit. An issue whose read fails keeps no `pullRequests` and carries `pullRequestsProblem` instead.
1823
+ *
1824
+ * With `required` (a repo with no aggregate) each open pull request's `checks` is the verdict of those required
1825
+ * checks on its head commit, read with one check-runs list per pull request (and its statuses only when a required
1826
+ * context may be one); without it the read is the aggregate's, exactly as before.
1720
1827
  */
1721
- async items(_owner, board, template) {
1828
+ async items(_owner, board, template, required) {
1829
+ if (required && !this.readCommitChecks) throw new Error("this GitHub projects provider was built without a way to read a commit's checks");
1722
1830
  const categories = new Map(template.statuses.map((s) => [s.name, s.category]));
1723
1831
  const raw = await this.fetchItems(board.id);
1724
1832
  const wanted = raw.filter((i) => {
@@ -1726,7 +1834,10 @@ var GitHubProjects = class {
1726
1834
  const category = status ? categories.get(status) : void 0;
1727
1835
  return i.issue && i.open && status !== void 0 && i.blockers.length === 0 && category !== "done" && category !== "blocked";
1728
1836
  });
1729
- const closing = await readClosingPullRequests(this.graphql, wanted.map((i) => i.contentId), (r, n) => this.keyOf(r, n));
1837
+ const closing = await readClosingPullRequests(this.graphql, wanted.map((i) => i.contentId), (r, n) => this.keyOf(r, n), required && this.readCommitChecks ? {
1838
+ required,
1839
+ read: this.readCommitChecks
1840
+ } : void 0);
1730
1841
  return raw.map((i) => {
1731
1842
  const read = closing.get(i.contentId);
1732
1843
  const status = i.values[STATUS_FIELD];
@@ -2105,54 +2216,6 @@ function toGHScope(scope) {
2105
2216
  };
2106
2217
  return scope;
2107
2218
  }
2108
- // src/capabilities/check-runs.ts
2109
- /** Every check run on a commit in the plain shape the CLI reads (the aggregate's own included). */
2110
- async function readCheckRuns(client, repo, ref) {
2111
- return (await client.checks.listCheckRunsForRef(repo, ref)).map((run) => ({
2112
- id: run.id,
2113
- name: run.name,
2114
- status: run.status,
2115
- conclusion: run.conclusion,
2116
- startedAt: run.started_at ?? null,
2117
- url: run.details_url ?? run.html_url,
2118
- appSlug: run.app?.slug ?? null
2119
- }));
2120
- }
2121
- /** The commit statuses on a commit, newest first, in the plain shape the CLI reads. */
2122
- async function readCommitStatuses(client, repo, ref) {
2123
- return (await client.statuses.listCommitStatuses(repo, ref)).map((status) => ({
2124
- context: status.context,
2125
- state: status.state,
2126
- url: status.target_url
2127
- }));
2128
- }
2129
- /** GitHub's `output` for a write: the title and summary, and the details only when there are some. */
2130
- function outputFor(write) {
2131
- return {
2132
- title: write.title,
2133
- summary: write.summary,
2134
- ...write.text === "" ? {} : { text: write.text }
2135
- };
2136
- }
2137
- /** Posts a check run on a commit and returns its id. */
2138
- async function postCheckRun(client, repo, sha, name, write) {
2139
- return (await client.checks.createCheckRun(repo, {
2140
- name,
2141
- head_sha: sha,
2142
- status: write.status,
2143
- ...write.conclusion === void 0 ? {} : { conclusion: write.conclusion },
2144
- output: outputFor(write),
2145
- ...write.startedAt === void 0 ? {} : { started_at: write.startedAt }
2146
- })).id;
2147
- }
2148
- /** Changes a check run: its state, verdict and output. */
2149
- async function patchCheckRun(client, repo, id, write) {
2150
- await client.checks.updateCheckRun(repo, id, {
2151
- status: write.status,
2152
- ...write.conclusion === void 0 ? {} : { conclusion: write.conclusion },
2153
- output: outputFor(write)
2154
- });
2155
- }
2156
2219
  // src/capabilities/files.ts
2157
2220
  /** Reads one file; `null` when it does not exist. `version` is the blob sha `writeFile` needs to replace exactly this one. */
2158
2221
  /** A fine-grained token only reaches the repositories and permissions it was given; say which one is missing. */
@@ -2415,6 +2478,33 @@ async function readPullRequestChecks(client, repo, number) {
2415
2478
  }))
2416
2479
  };
2417
2480
  }
2481
+ /**
2482
+ * Whether the required checks of a pull request's newest commit are green, for a repo with no `ci / Required checks`
2483
+ * aggregate (`ci.aggregate: "none"`). Reads the commit's check runs and, only when a status context is required, its
2484
+ * commit statuses, then lets the CLI's `requiredChecksVerdict()` decide: the rule lives there and nowhere else. Read
2485
+ * now, never cached. Optional checks that failed are listed with `required: false` and never change the state.
2486
+ */
2487
+ async function readRequiredPullRequestChecks(client, repo, number, required) {
2488
+ const sha = (await client.pulls.getPullRequest(repo, number)).head.sha;
2489
+ const checkRuns = await readCheckRuns(client, repo, sha);
2490
+ const commitStatuses = required.statuses.length > 0 ? await readCommitStatuses(client, repo, sha) : [];
2491
+ const verdict = requiredChecksVerdict({
2492
+ expected: required.expected,
2493
+ statuses: required.statuses,
2494
+ checkRuns,
2495
+ commitStatuses
2496
+ });
2497
+ const failing = verdict.failing.map((f) => ({
2498
+ name: f.name,
2499
+ ...f.url === void 0 ? {} : { url: f.url },
2500
+ required: f.required
2501
+ }));
2502
+ return {
2503
+ state: verdict.state,
2504
+ sha,
2505
+ failing
2506
+ };
2507
+ }
2418
2508
  // src/capabilities/pull-requests.ts
2419
2509
  /** The GitHub pull request as the neutral {@link PullRequest}. */
2420
2510
  function toPullRequest(raw) {
@@ -3143,7 +3233,8 @@ var GitHubSource = class {
3143
3233
  async markReady(number, repo) {
3144
3234
  return markReady(this.client, repo ?? this.repo, number);
3145
3235
  }
3146
- async getPullRequestChecks(number, repo) {
3236
+ async getPullRequestChecks(number, repo, required) {
3237
+ if (required) return readRequiredPullRequestChecks(this.client, repo ?? this.repo, number, required);
3147
3238
  return readPullRequestChecks(this.client, repo ?? this.repo, number);
3148
3239
  }
3149
3240
  async listCheckRuns(ref, repo) {
@@ -4448,7 +4539,7 @@ function issues(ctx, orgClient) {
4448
4539
  }
4449
4540
  /** Builds the `projects` capability: GitHub Projects v2 over GraphQL, with items keyed relative to the configured repo. */
4450
4541
  function projects(ctx) {
4451
- return new GitHubProjects(ctx.client.graphql, { repo: ctx.repo });
4542
+ return new GitHubProjects(ctx.client.graphql, { repo: ctx.repo }, commitChecksReader(ctx.client));
4452
4543
  }
4453
4544
  /** Creates the plugin, resolving a token per capability when it is first used. */
4454
4545
  function createPlugin(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-github",
3
- "version": "5.0.0-alpha.575",
3
+ "version": "5.0.0-alpha.577",
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,7 +44,7 @@
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.575",
47
+ "@theholocron/cli": "5.0.0-alpha.577",
48
48
  "@theholocron/eslint-config": "^8.9.0-alpha.24",
49
49
  "@theholocron/fs-utils": "^1.17.0-alpha.9",
50
50
  "@theholocron/github-client": "^1.58.0-alpha.67",
@@ -58,7 +58,7 @@
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.575"
61
+ "@theholocron/cli": "5.0.0-alpha.577"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22"