@theholocron/holocron-plugin-github 5.0.0-alpha.577 → 5.0.0-alpha.578
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.mjs +5 -3
- package/package.json +4 -4
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, requiredChecksVerdict, tokenExpectations, whoamiAction } from "@theholocron/cli";
|
|
2
|
+
import { AGGREGATE_CHECK_NAME, 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";
|
|
@@ -1397,6 +1397,7 @@ async function requiredBoardChecks(read, repo, sha, required) {
|
|
|
1397
1397
|
commitStatuses
|
|
1398
1398
|
}).state;
|
|
1399
1399
|
}
|
|
1400
|
+
// src/capabilities/project-pull-requests.ts
|
|
1400
1401
|
/**
|
|
1401
1402
|
* One issue's closing pull requests and the aggregate check on each one's newest commit. It is its own small query,
|
|
1402
1403
|
* never part of the board's items query: nested under `items(first: 100)` it multiplies past GitHub's resource limit.
|
|
@@ -1405,7 +1406,7 @@ const CLOSING_QUERY = `query($id: ID!) { node(id: $id) { ... on Issue {
|
|
|
1405
1406
|
closedByPullRequestsReferences(first: 5, includeClosedPrs: true) { nodes {
|
|
1406
1407
|
number state isDraft repository { nameWithOwner }
|
|
1407
1408
|
commits(last: 1) { nodes { commit { checkSuites(first: 30) { nodes {
|
|
1408
|
-
checkRuns(first: 5, filterBy: { checkName: "
|
|
1409
|
+
checkRuns(first: 5, filterBy: { checkName: "${AGGREGATE_CHECK_NAME}" }) { nodes { databaseId status conclusion startedAt } }
|
|
1409
1410
|
} } } } }
|
|
1410
1411
|
} }
|
|
1411
1412
|
} } }`;
|
|
@@ -2502,7 +2503,8 @@ async function readRequiredPullRequestChecks(client, repo, number, required) {
|
|
|
2502
2503
|
return {
|
|
2503
2504
|
state: verdict.state,
|
|
2504
2505
|
sha,
|
|
2505
|
-
failing
|
|
2506
|
+
failing,
|
|
2507
|
+
...verdict.pending ? { pending: verdict.pending } : {}
|
|
2506
2508
|
};
|
|
2507
2509
|
}
|
|
2508
2510
|
// src/capabilities/pull-requests.ts
|
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.578",
|
|
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,12 +44,12 @@
|
|
|
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.
|
|
47
|
+
"@theholocron/cli": "5.0.0-alpha.578",
|
|
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",
|
|
51
|
-
"@theholocron/http-client": "^1.58.0-alpha.67",
|
|
52
51
|
"@theholocron/misc-utils": "^1.17.0-alpha.9",
|
|
52
|
+
"@theholocron/http-client": "^1.58.0-alpha.67",
|
|
53
53
|
"@theholocron/tsconfig": "^8.9.0-alpha.24",
|
|
54
54
|
"@theholocron/tsdown-config": "^8.9.0-alpha.24",
|
|
55
55
|
"@theholocron/vitest-config": "^8.9.0-alpha.24"
|
|
@@ -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.
|
|
61
|
+
"@theholocron/cli": "5.0.0-alpha.578"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22"
|