@leitwerk-dev/github 0.3.1 → 0.4.1
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/README.md +31 -0
- package/dist/{chunk-PNHJ5QZ6.js → chunk-FDDQQGXI.js} +26 -7
- package/dist/chunk-FDDQQGXI.js.map +1 -0
- package/dist/client.d.ts +17 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/external.d.ts +5 -49
- package/dist/external.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +200 -29
- package/dist/index.js.map +1 -1
- package/dist/testing/tool-fixture.d.ts +19 -1
- package/dist/testing/tool-fixture.d.ts.map +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +19 -2
- package/dist/testing.js.map +1 -1
- package/dist/ticket-creation.d.ts +5 -0
- package/dist/ticket-creation.d.ts.map +1 -0
- package/package.json +6 -6
- package/src/client.ts +42 -12
- package/src/external.ts +16 -51
- package/src/index.ts +36 -2
- package/src/testing.ts +21 -2
- package/src/ticket-creation.ts +164 -0
- package/dist/chunk-PNHJ5QZ6.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# GitHub integration
|
|
2
2
|
|
|
3
|
+
## Ticket creation
|
|
4
|
+
|
|
5
|
+
Load `@leitwerk-dev/ticket-creation` and set:
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
extensions:
|
|
9
|
+
github:
|
|
10
|
+
ticket_creation:
|
|
11
|
+
enabled: true
|
|
12
|
+
default_labels: [created-by-leitwerk]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`github_create_issue` uses the normal derived draft and approval flow. It discovers
|
|
16
|
+
repositories from configured profiles, respects `allowed_organization`, and excludes
|
|
17
|
+
archived repositories and repositories with issues disabled. The token needs Issues
|
|
18
|
+
read/write access to the destination, including permission to create default labels.
|
|
19
|
+
Optional labels must already exist. Set `default_labels: []` to omit defaults.
|
|
20
|
+
|
|
21
|
+
The snapshot pins the API installation and repository ID. A renamed, transferred,
|
|
22
|
+
disabled or repointed destination fails before writing. Retry reconciliation includes
|
|
23
|
+
closed issues and recovers an issue whose create response was lost. Ticket creation
|
|
24
|
+
defaults to disabled; enabling it requires the ticket process to be loaded.
|
|
25
|
+
|
|
26
|
+
## Profiles and delivery
|
|
27
|
+
|
|
3
28
|
Server-owned GitHub API profiles, pull-request state polling, and project-scoped
|
|
4
29
|
LLM tools. Tokens never enter workers. Reads cover issues, pull requests, reviews,
|
|
5
30
|
inline comments, Actions check runs, and releases. Pull-request creation, comments,
|
|
@@ -147,3 +172,9 @@ Update recovery compares requested fields, including normalized labels. Logged
|
|
|
147
172
|
replays return the current object without reapplying the patch.
|
|
148
173
|
|
|
149
174
|
GitHub polling uses the SDK reporter with live GitHub source kinds and generation forwarding. Conflict reporting uses `createConflictReporter(kind)` without creating another remote object.
|
|
175
|
+
|
|
176
|
+
The Settings repository refresh discovers repositories through configured profiles.
|
|
177
|
+
Provider origin and stable repository ID define identity; known clone URLs are
|
|
178
|
+
aliases. Execution uses retained identities without requiring external rediscovery.
|
|
179
|
+
The origin comes from the repository's web URL, including for GitHub Enterprise;
|
|
180
|
+
equal repository IDs on different servers remain distinct.
|
|
@@ -103,8 +103,26 @@ var GitHubClient = class extends RepositoryHttpClient {
|
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
/** @internal */
|
|
106
|
-
|
|
107
|
-
return
|
|
106
|
+
listOpenIssues(owner, repo) {
|
|
107
|
+
return this.listIssues(owner, repo, void 0, "open");
|
|
108
|
+
}
|
|
109
|
+
/** @internal */
|
|
110
|
+
async getRepositoryById(id, signal) {
|
|
111
|
+
const repository = await this.request(`/repositories/${id}`, { signal });
|
|
112
|
+
assertGitHubRepository(this.profile, repository.owner.login, repository.name);
|
|
113
|
+
return repository;
|
|
114
|
+
}
|
|
115
|
+
/** @internal */
|
|
116
|
+
async listIssues(owner, repo, signal, state = "all") {
|
|
117
|
+
const issues = await this.pages(
|
|
118
|
+
`${this.repositoryPath(owner, repo)}/issues?state=${state}`,
|
|
119
|
+
signal
|
|
120
|
+
);
|
|
121
|
+
return issues.filter((issue) => !issue.pull_request);
|
|
122
|
+
}
|
|
123
|
+
/** @internal */
|
|
124
|
+
createIssue(owner, repo, input, signal) {
|
|
125
|
+
return this.writeJson(`${this.repositoryPath(owner, repo)}/issues`, "POST", input, signal);
|
|
108
126
|
}
|
|
109
127
|
/** @internal */
|
|
110
128
|
listIssueEvents(owner, repo, number) {
|
|
@@ -154,14 +172,15 @@ var GitHubClient = class extends RepositoryHttpClient {
|
|
|
154
172
|
});
|
|
155
173
|
}
|
|
156
174
|
/** @internal */
|
|
157
|
-
listLabels(owner, repo) {
|
|
158
|
-
return this.pages(`${this.repositoryPath(owner, repo)}/labels
|
|
175
|
+
listLabels(owner, repo, signal) {
|
|
176
|
+
return this.pages(`${this.repositoryPath(owner, repo)}/labels`, signal);
|
|
159
177
|
}
|
|
160
178
|
/** @internal */
|
|
161
|
-
createLabel(owner, repo, name) {
|
|
179
|
+
createLabel(owner, repo, name, signal) {
|
|
162
180
|
return this.request(`${this.repositoryPath(owner, repo)}/labels`, {
|
|
163
181
|
method: "POST",
|
|
164
|
-
body: JSON.stringify({ name, color: "238636" })
|
|
182
|
+
body: JSON.stringify({ name, color: "238636" }),
|
|
183
|
+
signal
|
|
165
184
|
});
|
|
166
185
|
}
|
|
167
186
|
/** @internal */
|
|
@@ -457,4 +476,4 @@ export {
|
|
|
457
476
|
assertGitHubRepository,
|
|
458
477
|
GitHubClient
|
|
459
478
|
};
|
|
460
|
-
//# sourceMappingURL=chunk-
|
|
479
|
+
//# sourceMappingURL=chunk-FDDQQGXI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/authorization.ts","../src/client.ts"],"sourcesContent":["import type { GitHubClient, GitHubFeedbackItem, GitHubIssue } from \"./client.js\";\n\ntype MembershipClient = Pick<GitHubClient, \"profile\" | \"isOrganizationMember\">;\n\nexport async function authorizedTrigger(\n\tclient: MembershipClient & Pick<GitHubClient, \"getIssue\" | \"listIssueEvents\">,\n\towner: string,\n\trepo: string,\n\tnumber: number,\n\ttrigger: string,\n\tdone: string,\n) {\n\tif (\n\t\tclient.profile.allowedOrganization &&\n\t\towner.toLowerCase() !== client.profile.allowedOrganization.toLowerCase()\n\t)\n\t\treturn null;\n\tconst issue = (await client.getIssue(owner, repo, number)) as GitHubIssue & {\n\t\t/** @internal */\n\t\tpull_request?: unknown;\n\t};\n\tif (\n\t\tissue.pull_request ||\n\t\tissue.state !== \"open\" ||\n\t\t!issue.labels.some((label) => label.name === trigger) ||\n\t\tissue.labels.some((label) => label.name === done)\n\t)\n\t\treturn null;\n\tconst last = (await client.listIssueEvents(owner, repo, number))\n\t\t.filter(\n\t\t\t(event) =>\n\t\t\t\t(event.event === \"labeled\" || event.event === \"unlabeled\") && event.label?.name === trigger,\n\t\t)\n\t\t.sort((a, b) => b.id - a.id)[0];\n\tif (\n\t\tlast?.event !== \"labeled\" ||\n\t\t!last.actor?.login ||\n\t\t!(await client.isOrganizationMember(last.actor.login))\n\t)\n\t\treturn null;\n\treturn {\n\t\t/** @internal */\n\t\tissue,\n\t\t/** @internal */\n\t\tactor: last.actor.login,\n\t\t/** @internal */\n\t\teventId: last.id,\n\t};\n}\n\nexport async function actionableFeedback(client: MembershipClient, feedback: GitHubFeedbackItem[]) {\n\tconst authorized: GitHubFeedbackItem[] = [];\n\tfor (const item of feedback) {\n\t\tif (\n\t\t\titem.author.toLowerCase() === client.profile.botLogin.toLowerCase() ||\n\t\t\titem.body.includes(\"<!-- leitwerk-write:\")\n\t\t)\n\t\t\tcontinue;\n\t\tif (await client.isOrganizationMember(item.author)) authorized.push(item);\n\t}\n\treturn authorized;\n}\n","import { asUnknownRecord } from \"@leitwerk-dev/domain\";\nimport {\n\ttype RepositoryFeedbackItem as GitHubFeedbackItem,\n\ttype RepositoryIssue as GitHubIssue,\n\ttype RepositoryPullRequest as GitHubPullRequest,\n\tIntegrationHttpError,\n\tnormalizeRepositoryFeedback as normalize,\n\tRepositoryHttpClient,\n} from \"@leitwerk-dev/process-sdk\";\n\nimport { actionableFeedback, authorizedTrigger } from \"./authorization.js\";\n\nexport type { GitHubFeedbackItem, GitHubIssue, GitHubPullRequest };\n\n/** @internal */\ninterface GitHubLabel {\n\t/** @internal */\n\tid: number;\n\t/** @internal */\n\tname: string;\n}\n\n/** @public */\nexport interface GitHubRepository {\n\t/** @internal */\n\tclone_url?: string;\n\t/** @internal */\n\tid?: number;\n\t/** @public */\n\tname: string;\n\t/** @internal */\n\tfull_name: string;\n\t/** @public */\n\towner: {\n\t\t/** @public */\n\t\tlogin: string;\n\t};\n\t/** @public */\n\tssh_url: string;\n\t/** @public */\n\tdefault_branch: string;\n\t/** @internal */\n\thtml_url: string;\n\t/** @internal */\n\tarchived: boolean;\n\t/** @internal */\n\thas_issues: boolean;\n}\n/** @public */\nexport interface GitHubGitIdentity {\n\t/** @internal */\n\tprovider: \"github\";\n\t/** @internal */\n\tprofile: string;\n\t/** @internal */\n\tlogin: string;\n\t/** @public */\n\tname: string;\n\t/** @public */\n\temail: string;\n}\n/** @public */\nexport interface GitHubLabelEvent {\n\t/** @internal */\n\tid: number;\n\t/** @internal */\n\tevent: string;\n\t/** @public */\n\tlabel?: {\n\t\t/** @public */\n\t\tname: string;\n\t};\n\t/** @public */\n\tactor: {\n\t\t/** @public */\n\t\tlogin: string;\n\t} | null;\n}\n\n/** @internal */\nexport interface GitHubProfile {\n\t/** @internal */\n\tapiBaseUrl: string;\n\t/** @internal */\n\ttoken: string;\n\t/** @internal */\n\tbotLogin: string;\n\t/** @internal */\n\tallowedOrganization?: string;\n}\n\n/** @public */\nexport interface GitHubCheckSummary {\n\t/** @public */\n\theadSha: string;\n\t/** @public */\n\tstatus: \"pending\" | \"success\" | \"failure\";\n\t/** @public */\n\ttotal: number;\n\t/** @public */\n\tfailed: Array<{\n\t\t/** @internal */\n\t\tname: string;\n\t\t/** @public */\n\t\tconclusion: string | null;\n\t\t/** @public */\n\t\turl: string | null;\n\t}>;\n}\n\n/** @public */\nexport interface GitHubRelease {\n\t/** @internal */\n\tid: number;\n\t/** @public */\n\ttag_name: string;\n\t/** @internal */\n\ttarget_commitish: string;\n\t/** @internal */\n\tdraft: boolean;\n\t/** @internal */\n\tprerelease: boolean;\n\t/** @internal */\n\thtml_url: string;\n\t/** @public */\n\tassets: Array<{\n\t\t/** @public */\n\t\tname: string;\n\t\t/** @public */\n\t\turl: string;\n\t\t/** @public */\n\t\tbrowser_download_url: string;\n\t}>;\n}\n\n/** @internal */\nexport function parseGitHubProfiles(value: unknown): Map<string, GitHubProfile> {\n\tconst profiles = new Map<string, GitHubProfile>();\n\tfor (const [name, raw] of Object.entries(\n\t\tasUnknownRecord(asUnknownRecord(value)?.profiles) ?? {},\n\t)) {\n\t\tconst config = asUnknownRecord(raw) ?? {};\n\t\tconst apiBaseUrl =\n\t\t\ttypeof config.api_base_url === \"string\"\n\t\t\t\t? config.api_base_url.replace(/\\/+$/, \"\")\n\t\t\t\t: \"https://api.github.com\";\n\t\tconst token = typeof config.token === \"string\" ? config.token.trim() : \"\";\n\t\tconst botLogin = typeof config.bot_login === \"string\" ? config.bot_login.trim() : \"leitwerk\";\n\t\tif (!/^https:\\/\\//.test(apiBaseUrl))\n\t\t\tthrow new Error(`GitHub profile '${name}' requires an HTTPS api_base_url`);\n\t\tif (!token) throw new Error(`GitHub profile '${name}' requires a token`);\n\t\tif (!botLogin) throw new Error(`GitHub profile '${name}' requires bot_login`);\n\t\tconst allowedOrganization = config.allowed_organization;\n\t\tif (\n\t\t\tallowedOrganization !== undefined &&\n\t\t\t(typeof allowedOrganization !== \"string\" || !/^[a-z0-9-]+$/i.test(allowedOrganization))\n\t\t) {\n\t\t\tthrow new Error(`GitHub profile '${name}' requires a valid allowed_organization`);\n\t\t}\n\t\tprofiles.set(name, {\n\t\t\tapiBaseUrl,\n\t\t\ttoken,\n\t\t\tbotLogin,\n\t\t\t...(typeof allowedOrganization === \"string\"\n\t\t\t\t? { allowedOrganization: allowedOrganization.toLowerCase() }\n\t\t\t\t: {}),\n\t\t});\n\t}\n\treturn profiles;\n}\n\n/** @internal */\nexport function assertGitHubRepository(profile: GitHubProfile, owner: string, repo: string): void {\n\tif (\n\t\t!/^[a-z0-9-]+$/i.test(owner) ||\n\t\t!/^[a-z0-9_.-]+$/i.test(repo) ||\n\t\trepo === \".\" ||\n\t\trepo === \"..\"\n\t) {\n\t\tthrow new Error(\"Invalid GitHub repository\");\n\t}\n\tif (\n\t\tprofile.allowedOrganization &&\n\t\towner.toLowerCase() !== profile.allowedOrganization.toLowerCase()\n\t) {\n\t\tthrow new Error(`GitHub project must belong to ${profile.allowedOrganization}`);\n\t}\n}\n\n/** @public */\nexport class GitHubClient extends RepositoryHttpClient {\n\t/** @internal */\n\tconstructor(/** @internal */ readonly profile: GitHubProfile) {\n\t\tsuper(\"GitHub\", profile.apiBaseUrl, {\n\t\t\tAccept: \"application/vnd.github+json\",\n\t\t\tAuthorization: `Bearer ${profile.token}`,\n\t\t\t\"X-GitHub-Api-Version\": \"2022-11-28\",\n\t\t});\n\t}\n\n\t/** @internal */\n\tprotected override response(path: string, init: RequestInit = {}): Promise<Response> {\n\t\treturn super.response(path, {\n\t\t\t...init,\n\t\t\tredirect: \"error\",\n\t\t\tsignal: init.signal ?? AbortSignal.timeout(30_000),\n\t\t});\n\t}\n\n\t/** @internal */\n\tprotected override repositoryPath(owner: string, repo: string): string {\n\t\tassertGitHubRepository(this.profile, owner, repo);\n\t\treturn super.repositoryPath(owner, repo);\n\t}\n\n\t/** @internal */\n\tasync listRepositories() {\n\t\treturn (\n\t\t\tawait this.pages<GitHubRepository>(\n\t\t\t\tthis.profile.allowedOrganization\n\t\t\t\t\t? `/orgs/${this.profile.allowedOrganization}/repos?type=all`\n\t\t\t\t\t: \"/user/repos?affiliation=owner,collaborator,organization_member\",\n\t\t\t)\n\t\t).filter(\n\t\t\t(repo) =>\n\t\t\t\t(!this.profile.allowedOrganization ||\n\t\t\t\t\trepo.owner.login.toLowerCase() === this.profile.allowedOrganization.toLowerCase()) &&\n\t\t\t\t!repo.archived &&\n\t\t\t\trepo.has_issues,\n\t\t);\n\t}\n\t/** @internal */\n\tlistOpenIssues(owner: string, repo: string) {\n\t\treturn this.listIssues(owner, repo, undefined, \"open\");\n\t}\n\t/** @internal */\n\tasync getRepositoryById(id: number, signal?: AbortSignal): Promise<GitHubRepository> {\n\t\tconst repository = await this.request<GitHubRepository>(`/repositories/${id}`, { signal });\n\t\tassertGitHubRepository(this.profile, repository.owner.login, repository.name);\n\t\treturn repository;\n\t}\n\t/** @internal */\n\tasync listIssues(\n\t\towner: string,\n\t\trepo: string,\n\t\tsignal?: AbortSignal,\n\t\tstate: \"open\" | \"all\" = \"all\",\n\t): Promise<GitHubIssue[]> {\n\t\tconst issues = await this.pages<GitHubIssue & { pull_request?: unknown }>(\n\t\t\t`${this.repositoryPath(owner, repo)}/issues?state=${state}`,\n\t\t\tsignal,\n\t\t);\n\t\treturn issues.filter((issue) => !issue.pull_request);\n\t}\n\t/** @internal */\n\tcreateIssue(\n\t\towner: string,\n\t\trepo: string,\n\t\tinput: {\n\t\t\t/** @internal */ title: string;\n\t\t\t/** @internal */ body: string;\n\t\t\t/** @internal */ labels: string[];\n\t\t},\n\t\tsignal?: AbortSignal,\n\t): Promise<GitHubIssue> {\n\t\treturn this.writeJson(`${this.repositoryPath(owner, repo)}/issues`, \"POST\", input, signal);\n\t}\n\t/** @internal */\n\tlistIssueEvents(owner: string, repo: string, number: number) {\n\t\treturn this.pages<GitHubLabelEvent>(\n\t\t\t`${this.repositoryPath(owner, repo)}/issues/${number}/events`,\n\t\t);\n\t}\n\t/** @internal */\n\tasync isOrganizationMember(login: string): Promise<boolean> {\n\t\tif (!this.profile.allowedOrganization) return true;\n\t\tif (!/^[a-z0-9-]+$/i.test(login)) return false;\n\t\ttry {\n\t\t\tconst response = await this.response(\n\t\t\t\t`/orgs/${this.profile.allowedOrganization}/members/${encodeURIComponent(login)}`,\n\t\t\t);\n\t\t\treturn response.status === 204;\n\t\t} catch (error) {\n\t\t\tif (error instanceof IntegrationHttpError) {\n\t\t\t\tif (error.status === 404) return false;\n\t\t\t\tthrow new Error(`GitHub membership check failed with ${error.status}`);\n\t\t\t}\n\t\t\tthrow error;\n\t\t}\n\t}\n\t/** @internal */\n\tasync authorizedTrigger(\n\t\towner: string,\n\t\trepo: string,\n\t\tnumber: number,\n\t\ttrigger: string,\n\t\tdone: string,\n\t) {\n\t\treturn authorizedTrigger(this, owner, repo, number, trigger, done);\n\t}\n\t/** @public */\n\tasync resolveGitIdentity(profile: string): Promise<GitHubGitIdentity> {\n\t\tconst user = await this.request<{ login: string; name: string | null; id: number }>(\"/user\");\n\t\tif (user.login !== this.profile.botLogin)\n\t\t\tthrow new Error(\"GitHub authenticated user does not match bot_login\");\n\t\treturn {\n\t\t\tprovider: \"github\",\n\t\t\tprofile,\n\t\t\tlogin: user.login,\n\t\t\tname: user.name || user.login,\n\t\t\temail: `${user.id}+${user.login}@users.noreply.github.com`,\n\t\t};\n\t}\n\t/** @public */\n\tupdateIssue(owner: string, repo: string, number: number, patch: Record<string, unknown>) {\n\t\treturn this.request<GitHubIssue>(`${this.repositoryPath(owner, repo)}/issues/${number}`, {\n\t\t\tmethod: \"PATCH\",\n\t\t\tbody: JSON.stringify(patch),\n\t\t});\n\t}\n\t/** @internal */\n\tlistLabels(owner: string, repo: string, signal?: AbortSignal) {\n\t\treturn this.pages<GitHubLabel>(`${this.repositoryPath(owner, repo)}/labels`, signal);\n\t}\n\t/** @internal */\n\tcreateLabel(owner: string, repo: string, name: string, signal?: AbortSignal) {\n\t\treturn this.request<GitHubLabel>(`${this.repositoryPath(owner, repo)}/labels`, {\n\t\t\tmethod: \"POST\",\n\t\t\tbody: JSON.stringify({ name, color: \"238636\" }),\n\t\t\tsignal,\n\t\t});\n\t}\n\t/** @internal */\n\tasync ensureLabel(owner: string, repo: string, name: string) {\n\t\tconst labels = await this.listLabels(owner, repo);\n\t\treturn labels.find((label) => label.name === name) ?? this.createLabel(owner, repo, name);\n\t}\n\t/** @internal */\n\taddFeedbackReaction(owner: string, repo: string, kind: string, id: number) {\n\t\tconst segment = kind === \"inline\" ? \"pulls/comments\" : \"issues/comments\";\n\t\treturn this.request(`${this.repositoryPath(owner, repo)}/${segment}/${id}/reactions`, {\n\t\t\tmethod: \"POST\",\n\t\t\tbody: JSON.stringify({ content: \"eyes\" }),\n\t\t});\n\t}\n\t/** @internal */\n\tasync replyFeedback(\n\t\towner: string,\n\t\trepo: string,\n\t\tpr: number,\n\t\tkind: string,\n\t\tid: number,\n\t\tbody: string,\n\t) {\n\t\tif (kind === \"inline\")\n\t\t\treturn this.writeJson(\n\t\t\t\t`${this.repositoryPath(owner, repo)}/pulls/${pr}/comments/${id}/replies`,\n\t\t\t\t\"POST\",\n\t\t\t\t{ body },\n\t\t\t);\n\t\treturn this.addIssueComment(owner, repo, pr, body);\n\t}\n\n\t/** @internal */\n\tgetCommit(owner: string, repo: string, ref: string) {\n\t\treturn this.request<{\n\t\t\t/** @internal */\n\t\t\tsha: string;\n\t\t}>(`${this.repositoryPath(owner, repo)}/commits/${encodeURIComponent(ref)}`);\n\t}\n\n\t/** @public */\n\tasync isAncestor(owner: string, repo: string, ancestor: string, descendant: string) {\n\t\tconst comparison = await this.request<{ status: string }>(\n\t\t\t`${this.repositoryPath(owner, repo)}/compare/${encodeURIComponent(ancestor)}...${encodeURIComponent(descendant)}`,\n\t\t);\n\t\treturn comparison.status === \"identical\" || comparison.status === \"ahead\";\n\t}\n\n\t/** @public */\n\tasync listPullRequestFeedback(\n\t\towner: string,\n\t\trepo: string,\n\t\tnumber: number,\n\t\tsignal?: AbortSignal,\n\t): Promise<GitHubFeedbackItem[]> {\n\t\tconst prefix = `${this.repositoryPath(owner, repo)}`;\n\t\tconst [conversation, reviews, inline] = await Promise.all([\n\t\t\tthis.pages<Record<string, unknown>>(`${prefix}/issues/${number}/comments`, signal),\n\t\t\tthis.pages<Record<string, unknown>>(`${prefix}/pulls/${number}/reviews`, signal),\n\t\t\tthis.pages<Record<string, unknown>>(`${prefix}/pulls/${number}/comments`, signal),\n\t\t]);\n\n\t\tconst candidates = [\n\t\t\t...conversation.map((item) => ({ kind: \"conversation\" as const, item })),\n\t\t\t...reviews.map((item) => ({ kind: \"review\" as const, item })),\n\t\t\t...inline.map((item) => ({ kind: \"inline\" as const, item })),\n\t\t];\n\t\tconst feedback: GitHubFeedbackItem[] = [];\n\t\tconst needsProvenance: typeof candidates = [];\n\t\tfor (const candidate of candidates) {\n\t\t\tconst { kind, item } = candidate;\n\t\t\tconst normalized = normalize(kind, item);\n\t\t\tif (!normalized) continue;\n\t\t\tconst createdAt = typeof item.created_at === \"string\" ? Date.parse(item.created_at) : NaN;\n\t\t\tconst updatedAt = typeof item.updated_at === \"string\" ? Date.parse(item.updated_at) : NaN;\n\t\t\tif (\n\t\t\t\t!this.profile.allowedOrganization ||\n\t\t\t\t(kind !== \"review\" && Number.isFinite(createdAt) && createdAt === updatedAt)\n\t\t\t) {\n\t\t\t\tfeedback.push(normalized);\n\t\t\t} else if (typeof item.node_id === \"string\" && item.node_id) {\n\t\t\t\t// REST attributes edited bodies to their original author. Reviews also\n\t\t\t\t// omit edit timestamps, so obtain the body and latest editor together.\n\t\t\t\tneedsProvenance.push(candidate);\n\t\t\t}\n\t\t}\n\t\tfor (let offset = 0; offset < needsProvenance.length; offset += 100) {\n\t\t\tconst batch = needsProvenance.slice(offset, offset + 100);\n\t\t\tconst response = await this.request<{\n\t\t\t\tdata?: { nodes?: Array<Record<string, unknown> | null> };\n\t\t\t\terrors?: unknown[];\n\t\t\t}>(\"/graphql\", {\n\t\t\t\tmethod: \"POST\",\n\t\t\t\tsignal,\n\t\t\t\tbody: JSON.stringify({\n\t\t\t\t\tquery: `query LeitwerkFeedbackProvenance($ids: [ID!]!) {\n\t\t\t\t\t\tnodes(ids: $ids) {\n\t\t\t\t\t\t\tid __typename\n\t\t\t\t\t\t\t... on IssueComment { body createdAt lastEditedAt author { login } editor { login } }\n\t\t\t\t\t\t\t... on PullRequestReview { body createdAt submittedAt lastEditedAt author { login } editor { login } }\n\t\t\t\t\t\t\t... on PullRequestReviewComment { body createdAt lastEditedAt author { login } editor { login } path line }\n\t\t\t\t\t\t}\n\t\t\t\t\t}`,\n\t\t\t\t\tvariables: { ids: batch.map(({ item }) => item.node_id) },\n\t\t\t\t}),\n\t\t\t});\n\t\t\tif (response.errors?.length || !Array.isArray(response.data?.nodes)) {\n\t\t\t\tthrow new Error(\"GitHub feedback provenance lookup failed\");\n\t\t\t}\n\t\t\tconst snapshots = new Map(\n\t\t\t\tresponse.data.nodes.filter((node) => node !== null).map((node) => [node.id, node]),\n\t\t\t);\n\t\t\tfor (const { kind, item } of batch) {\n\t\t\t\tconst snapshot = snapshots.get(item.node_id);\n\t\t\t\tconst expectedType = {\n\t\t\t\t\tconversation: \"IssueComment\",\n\t\t\t\t\treview: \"PullRequestReview\",\n\t\t\t\t\tinline: \"PullRequestReviewComment\",\n\t\t\t\t}[kind];\n\t\t\t\tif (!snapshot || snapshot.__typename !== expectedType) continue;\n\t\t\t\tconst publishedAt = kind === \"review\" ? snapshot.submittedAt : snapshot.createdAt;\n\t\t\t\tif (typeof publishedAt !== \"string\" || !Number.isFinite(Date.parse(publishedAt))) continue;\n\t\t\t\tconst editedAt = snapshot.lastEditedAt;\n\t\t\t\tif (editedAt !== null) {\n\t\t\t\t\tif (typeof editedAt !== \"string\" || !Number.isFinite(Date.parse(editedAt))) continue;\n\t\t\t\t\tconst editor = asUnknownRecord(snapshot.editor)?.login;\n\t\t\t\t\tif (typeof editor !== \"string\" || !(await this.isOrganizationMember(editor))) continue;\n\t\t\t\t}\n\t\t\t\tconst normalized = normalize(kind, {\n\t\t\t\t\t...snapshot,\n\t\t\t\t\tid: item.id,\n\t\t\t\t\tuser: snapshot.author,\n\t\t\t\t\tcreated_at: editedAt ?? publishedAt,\n\t\t\t\t});\n\t\t\t\tif (normalized) feedback.push(normalized);\n\t\t\t}\n\t\t}\n\t\treturn feedback;\n\t}\n\n\t/** @public */\n\tasync getCheckSummary(owner: string, repo: string, headSha: string): Promise<GitHubCheckSummary> {\n\t\tconst runs: Array<Record<string, unknown>> = [];\n\t\tfor (let page = 1; ; page++) {\n\t\t\tconst response = await this.request<{ check_runs: Array<Record<string, unknown>> }>(\n\t\t\t\t`${this.repositoryPath(owner, repo)}/commits/${headSha}/check-runs?per_page=100&page=${page}`,\n\t\t\t);\n\t\t\truns.push(...response.check_runs);\n\t\t\tif (response.check_runs.length < 100) break;\n\t\t}\n\t\tconst terminalSuccess = new Set([\"success\", \"neutral\", \"skipped\"]);\n\t\tconst failed = runs\n\t\t\t.filter((run) => run.status === \"completed\" && !terminalSuccess.has(String(run.conclusion)))\n\t\t\t.map((run) => ({\n\t\t\t\tname: String(run.name ?? \"unknown\"),\n\t\t\t\tconclusion: typeof run.conclusion === \"string\" ? run.conclusion : null,\n\t\t\t\turl: typeof run.html_url === \"string\" ? run.html_url : null,\n\t\t\t}));\n\t\tconst pending = runs.some((run) => run.status !== \"completed\");\n\t\treturn {\n\t\t\theadSha,\n\t\t\tstatus: failed.length ? \"failure\" : pending || !runs.length ? \"pending\" : \"success\",\n\t\t\ttotal: runs.length,\n\t\t\tfailed,\n\t\t};\n\t}\n\n\t/** Human feedback checked against current membership; delivery receipts use raw reads. */\n\t/** @internal */\n\tasync listActionablePullRequestFeedback(\n\t\towner: string,\n\t\trepo: string,\n\t\tnumber: number,\n\t\tsignal?: AbortSignal,\n\t) {\n\t\treturn actionableFeedback(\n\t\t\tthis,\n\t\t\tawait this.listPullRequestFeedback(owner, repo, number, signal),\n\t\t);\n\t}\n\n\t/** @internal */\n\tlistFeedbackReplies(owner: string, repo: string, pr: number, kind: string) {\n\t\treturn kind === \"inline\"\n\t\t\t? this.pages<Record<string, unknown>>(\n\t\t\t\t\t`${this.repositoryPath(owner, repo)}/pulls/${pr}/comments`,\n\t\t\t\t)\n\t\t\t: this.listIssueComments(owner, repo, pr);\n\t}\n\n\t/** @internal */\n\tlistFeedbackReactions(owner: string, repo: string, kind: string, id: number) {\n\t\tif (kind !== \"inline\" && kind !== \"conversation\")\n\t\t\tthrow new Error(\"Reviews do not support reactions\");\n\t\tconst segment = kind === \"inline\" ? \"pulls/comments\" : \"issues/comments\";\n\t\treturn this.pages<{\n\t\t\t/** @internal */\n\t\t\tid: number;\n\t\t\t/** @internal */\n\t\t\tcontent: string;\n\t\t\t/** @internal */\n\t\t\tuser: {\n\t\t\t\t/** @internal */\n\t\t\t\tlogin: string;\n\t\t\t};\n\t\t}>(`${this.repositoryPath(owner, repo)}/${segment}/${id}/reactions`);\n\t}\n\n\t/** @public */\n\tasync getCiDiagnostics(\n\t\towner: string,\n\t\trepo: string,\n\t\tpullRequestNumber: number,\n\t\theadSha: string,\n\t\tsignal?: AbortSignal,\n\t) {\n\t\tconst pr = await this.getPullRequest(owner, repo, pullRequestNumber, signal);\n\t\tif (pr.state !== \"open\" || pr.merged || pr.head.sha !== headSha)\n\t\t\tthrow new Error(\"CI diagnostics target a stale pull request revision\");\n\t\tconst prefix = this.repositoryPath(owner, repo);\n\t\tconst checks: Array<{\n\t\t\t/** @internal */\n\t\t\tid: number;\n\t\t\tname: string;\n\t\t\tconclusion: string | null;\n\t\t\t/** @public */\n\t\t\toutput?: {\n\t\t\t\t/** @public */\n\t\t\t\ttitle?: string;\n\t\t\t\t/** @public */\n\t\t\t\tsummary?: string;\n\t\t\t\t/** @public */\n\t\t\t\ttext?: string;\n\t\t\t};\n\t\t}> = [];\n\t\tfor (let page = 1; ; page++) {\n\t\t\tconst batch = await this.request<{ check_runs: typeof checks }>(\n\t\t\t\t`${prefix}/commits/${encodeURIComponent(headSha)}/check-runs?filter=latest&per_page=100&page=${page}`,\n\t\t\t\t{ signal },\n\t\t\t);\n\t\t\tchecks.push(...batch.check_runs);\n\t\t\tif (batch.check_runs.length < 100) break;\n\t\t}\n\t\tconst failed = checks.filter(\n\t\t\t(c) => c.conclusion && ![\"success\", \"neutral\", \"skipped\"].includes(c.conclusion),\n\t\t);\n\t\tconst annotations = await Promise.all(\n\t\t\tfailed.slice(0, 10).map(async (check) => ({\n\t\t\t\t/** @public */\n\t\t\t\tid: check.id,\n\t\t\t\t/** @public */\n\t\t\t\tname: check.name,\n\t\t\t\t/** @public */\n\t\t\t\toutput: check.output,\n\t\t\t\t/** @public */\n\t\t\t\tannotations: (\n\t\t\t\t\tawait this.pages<unknown>(`${prefix}/check-runs/${check.id}/annotations`, signal)\n\t\t\t\t).slice(0, 100),\n\t\t\t})),\n\t\t);\n\t\tconst jobs: Array<{\n\t\t\t/** @public */\n\t\t\tid: number;\n\t\t\t/** @public */\n\t\t\tname: string;\n\t\t\t/** @public */\n\t\t\thtml_url: string;\n\t\t\t/** @public */\n\t\t\tlog: {\n\t\t\t\t/** @public */\n\t\t\t\ttext: string;\n\t\t\t\t/** @public */\n\t\t\t\ttruncated: boolean;\n\t\t\t};\n\t\t}> = [];\n\t\tfor (let page = 1; jobs.length < 10; page++) {\n\t\t\tconst runs = await this.request<{\n\t\t\t\tworkflow_runs: Array<{\n\t\t\t\t\tid: number;\n\t\t\t\t\thead_sha: string;\n\t\t\t\t\thead_branch: string;\n\t\t\t\t\tconclusion: string | null;\n\t\t\t\t}>;\n\t\t\t}>(\n\t\t\t\t`${prefix}/actions/runs?head_sha=${encodeURIComponent(headSha)}&per_page=100&page=${page}`,\n\t\t\t\t{ signal },\n\t\t\t);\n\t\t\tfor (const run of runs.workflow_runs) {\n\t\t\t\tif (\n\t\t\t\t\trun.head_sha !== headSha ||\n\t\t\t\t\trun.head_branch !== pr.head.ref ||\n\t\t\t\t\t!run.conclusion ||\n\t\t\t\t\t[\"success\", \"neutral\", \"skipped\"].includes(run.conclusion)\n\t\t\t\t)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (let jobPage = 1; jobs.length < 10; jobPage++) {\n\t\t\t\t\tconst batch = await this.request<{\n\t\t\t\t\t\tjobs: Array<{ id: number; name: string; html_url: string; conclusion: string | null }>;\n\t\t\t\t\t}>(`${prefix}/actions/runs/${run.id}/jobs?filter=latest&per_page=100&page=${jobPage}`, {\n\t\t\t\t\t\tsignal,\n\t\t\t\t\t});\n\t\t\t\t\tfor (const job of batch.jobs) {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t!job.conclusion ||\n\t\t\t\t\t\t\t[\"success\", \"neutral\", \"skipped\"].includes(job.conclusion) ||\n\t\t\t\t\t\t\tjobs.length >= 10\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tjobs.push({\n\t\t\t\t\t\t\tid: job.id,\n\t\t\t\t\t\t\tname: job.name,\n\t\t\t\t\t\t\thtml_url: job.html_url,\n\t\t\t\t\t\t\tlog: await this.readJobLog(owner, repo, job.id, signal),\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tif (batch.jobs.length < 100) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (runs.workflow_runs.length < 100) break;\n\t\t}\n\t\tconst refreshed = await this.getPullRequest(owner, repo, pullRequestNumber, signal);\n\t\tif (refreshed.head.sha !== headSha || refreshed.state !== \"open\" || refreshed.merged)\n\t\t\tthrow new Error(\"CI diagnostics were superseded\");\n\t\treturn {\n\t\t\t/** @public */\n\t\t\theadSha,\n\t\t\t/** @public */\n\t\t\tchecks: annotations,\n\t\t\t/** @public */\n\t\t\tjobs,\n\t\t\t/** @public */\n\t\t\ttruncated: failed.length > 10 || jobs.length >= 10,\n\t\t};\n\t}\n\tprivate async readJobLog(\n\t\towner: string,\n\t\trepo: string,\n\t\tjob: number,\n\t\tsignal?: AbortSignal,\n\t): Promise<{ text: string; truncated: boolean }> {\n\t\tconst timeout = signal\n\t\t\t? AbortSignal.any([signal, AbortSignal.timeout(30000)])\n\t\t\t: AbortSignal.timeout(30000);\n\t\tlet response = await fetch(\n\t\t\t`${this.profile.apiBaseUrl}${this.repositoryPath(owner, repo)}/actions/jobs/${job}/logs`,\n\t\t\t{\n\t\t\t\theaders: {\n\t\t\t\t\tAuthorization: `Bearer ${this.profile.token}`,\n\t\t\t\t\tAccept: \"application/vnd.github+json\",\n\t\t\t\t},\n\t\t\t\tredirect: \"manual\",\n\t\t\t\tsignal: timeout,\n\t\t\t},\n\t\t);\n\t\tif (response.status === 302) {\n\t\t\tconst location = new URL(response.headers.get(\"location\") ?? \"\");\n\t\t\tif (location.protocol !== \"https:\" || location.username || location.password)\n\t\t\t\tthrow new Error(\"Invalid GitHub log download URL\");\n\t\t\tawait response.body?.cancel();\n\t\t\t// Signed storage URLs must never receive the GitHub credential.\n\t\t\tresponse = await fetch(location, { redirect: \"error\", signal: timeout });\n\t\t}\n\t\tif (!response.ok) throw new IntegrationHttpError(response.status, \"GitHub job log unavailable\");\n\t\tconst reader = response.body?.getReader();\n\t\tif (!reader) return { text: \"\", truncated: false };\n\t\tconst chunks: Uint8Array[] = [];\n\t\tlet bytes = 0;\n\t\tlet truncated = false;\n\t\ttry {\n\t\t\tfor (;;) {\n\t\t\t\tconst next = await reader.read();\n\t\t\t\tif (next.done) break;\n\t\t\t\tconst part = next.value.slice(0, 65536 - bytes);\n\t\t\t\tchunks.push(part);\n\t\t\t\tbytes += part.length;\n\t\t\t\tif (bytes === 65536) {\n\t\t\t\t\ttruncated = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tawait reader.cancel();\n\t\t}\n\t\treturn { text: Buffer.concat(chunks).toString(\"utf8\"), truncated };\n\t}\n\n\t/** @internal */\n\tlistReleases(owner: string, repo: string) {\n\t\treturn this.pages<GitHubRelease>(`${this.repositoryPath(owner, repo)}/releases`);\n\t}\n\n\t/** @public */\n\tdownloadReleaseAsset(asset: GitHubRelease[\"assets\"][number]): Promise<string> {\n\t\tconst url = new URL(asset.url);\n\t\tif (`${url.protocol}//${url.host}` !== this.profile.apiBaseUrl)\n\t\t\tthrow new Error(\"GitHub release asset URL does not match the configured API origin\");\n\t\treturn this.response(`${url.pathname}${url.search}`, {\n\t\t\theaders: { Accept: \"application/octet-stream\" },\n\t\t}).then((response) => response.text());\n\t}\n}\n"],"mappings":";AAIA,eAAsB,kBACrB,QACA,OACA,MACA,QACA,SACA,MACC;AACD,MACC,OAAO,QAAQ,uBACf,MAAM,YAAY,MAAM,OAAO,QAAQ,oBAAoB,YAAY;AAEvE,WAAO;AACR,QAAM,QAAS,MAAM,OAAO,SAAS,OAAO,MAAM,MAAM;AAIxD,MACC,MAAM,gBACN,MAAM,UAAU,UAChB,CAAC,MAAM,OAAO,KAAK,CAAC,UAAU,MAAM,SAAS,OAAO,KACpD,MAAM,OAAO,KAAK,CAAC,UAAU,MAAM,SAAS,IAAI;AAEhD,WAAO;AACR,QAAM,QAAQ,MAAM,OAAO,gBAAgB,OAAO,MAAM,MAAM,GAC5D;AAAA,IACA,CAAC,WACC,MAAM,UAAU,aAAa,MAAM,UAAU,gBAAgB,MAAM,OAAO,SAAS;AAAA,EACtF,EACC,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AAC/B,MACC,MAAM,UAAU,aAChB,CAAC,KAAK,OAAO,SACb,CAAE,MAAM,OAAO,qBAAqB,KAAK,MAAM,KAAK;AAEpD,WAAO;AACR,SAAO;AAAA;AAAA,IAEN;AAAA;AAAA,IAEA,OAAO,KAAK,MAAM;AAAA;AAAA,IAElB,SAAS,KAAK;AAAA,EACf;AACD;AAEA,eAAsB,mBAAmB,QAA0B,UAAgC;AAClG,QAAM,aAAmC,CAAC;AAC1C,aAAW,QAAQ,UAAU;AAC5B,QACC,KAAK,OAAO,YAAY,MAAM,OAAO,QAAQ,SAAS,YAAY,KAClE,KAAK,KAAK,SAAS,sBAAsB;AAEzC;AACD,QAAI,MAAM,OAAO,qBAAqB,KAAK,MAAM,EAAG,YAAW,KAAK,I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Ae,OAAO,IAAI,CAAC,WAAW;AAAA,EAChF;AAAA;AAAA,EAGA,qBAAqB,OAAyD;AAC7E,UAAM,MAAM,IAAI,IAAI,MAAM,GAAG;AAC7B,QAAI,GAAG,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,KAAK,QAAQ;AACnD,YAAM,IAAI,MAAM,mEAAmE;AACpF,WAAO,KAAK,SAAS,GAAG,IAAI,QAAQ,GAAG,IAAI,MAAM,IAAI;AAAA,MACpD,SAAS,EAAE,QAAQ,2BAA2B;AAAA,IAC/C,CAAC,EAAE,KAAK,CAAC,aAAa,SAAS,KAAK,CAAC;AAAA,EACtC;AACD;","names":[]}
|
package/dist/client.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ interface GitHubLabel {
|
|
|
9
9
|
}
|
|
10
10
|
/** @public */
|
|
11
11
|
export interface GitHubRepository {
|
|
12
|
+
/** @internal */
|
|
13
|
+
clone_url?: string;
|
|
14
|
+
/** @internal */
|
|
15
|
+
id?: number;
|
|
12
16
|
/** @public */
|
|
13
17
|
name: string;
|
|
14
18
|
/** @internal */
|
|
@@ -129,10 +133,17 @@ export declare class GitHubClient extends RepositoryHttpClient {
|
|
|
129
133
|
/** @internal */
|
|
130
134
|
listRepositories(): Promise<GitHubRepository[]>;
|
|
131
135
|
/** @internal */
|
|
132
|
-
listOpenIssues(owner: string, repo: string): Promise<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
listOpenIssues(owner: string, repo: string): Promise<GitHubIssue[]>;
|
|
137
|
+
/** @internal */
|
|
138
|
+
getRepositoryById(id: number, signal?: AbortSignal): Promise<GitHubRepository>;
|
|
139
|
+
/** @internal */
|
|
140
|
+
listIssues(owner: string, repo: string, signal?: AbortSignal, state?: "open" | "all"): Promise<GitHubIssue[]>;
|
|
141
|
+
/** @internal */
|
|
142
|
+
createIssue(owner: string, repo: string, input: {
|
|
143
|
+
/** @internal */ title: string;
|
|
144
|
+
/** @internal */ body: string;
|
|
145
|
+
/** @internal */ labels: string[];
|
|
146
|
+
}, signal?: AbortSignal): Promise<GitHubIssue>;
|
|
136
147
|
/** @internal */
|
|
137
148
|
listIssueEvents(owner: string, repo: string, number: number): Promise<GitHubLabelEvent[]>;
|
|
138
149
|
/** @internal */
|
|
@@ -154,9 +165,9 @@ export declare class GitHubClient extends RepositoryHttpClient {
|
|
|
154
165
|
/** @public */
|
|
155
166
|
updateIssue(owner: string, repo: string, number: number, patch: Record<string, unknown>): Promise<GitHubIssue>;
|
|
156
167
|
/** @internal */
|
|
157
|
-
listLabels(owner: string, repo: string): Promise<GitHubLabel[]>;
|
|
168
|
+
listLabels(owner: string, repo: string, signal?: AbortSignal): Promise<GitHubLabel[]>;
|
|
158
169
|
/** @internal */
|
|
159
|
-
createLabel(owner: string, repo: string, name: string): Promise<GitHubLabel>;
|
|
170
|
+
createLabel(owner: string, repo: string, name: string, signal?: AbortSignal): Promise<GitHubLabel>;
|
|
160
171
|
/** @internal */
|
|
161
172
|
ensureLabel(owner: string, repo: string, name: string): Promise<GitHubLabel>;
|
|
162
173
|
/** @internal */
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,sBAAsB,IAAI,kBAAkB,EACjD,KAAK,eAAe,IAAI,WAAW,EACnC,KAAK,qBAAqB,IAAI,iBAAiB,EAG/C,oBAAoB,EACpB,MAAM,2BAA2B,CAAC;AAInC,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;AAEnE,gBAAgB;AAChB,UAAU,WAAW;IACpB,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,cAAc;AACd,MAAM,WAAW,gBAAgB;IAChC,cAAc;IACd,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,SA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EAAE,MAAM;QAKzE,gBAAgB;YACZ,MAAM;QACV,gBAAgB;iBACP,MAAM;QACf,gBAAgB;cACV;YACL,gBAAgB;YAChB,KAAK,EAAE,MAAM,CAAC;SACd;;IAIH,cAAc;IACR,gBAAgB,CACrB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,WAAW;QA8GnB,cAAc;;QAEd,cAAc;;YA9Eb,cAAc;;YAEd,cAAc;;YAEd,cAAc;;gBAzBd,cAAc;wBACN,MAAM;gBACd,cAAc;0BACJ,MAAM;gBAChB,cAAc;uBACP,MAAM;;YAsBb,cAAc;;;QA0Ef,cAAc;;YAnEd,cAAc;gBACV,MAAM;YACV,cAAc;kBACR,MAAM;YACZ,cAAc;sBACJ,MAAM;YAChB,cAAc;iBACT;gBACJ,cAAc;gBACd,IAAI,EAAE,MAAM,CAAC;gBACb,cAAc;gBACd,SAAS,EAAE,OAAO,CAAC;aACnB;;QAyDD,cAAc;;;YAIF,UAAU;IAoDxB,gBAAgB;IAChB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAIxC,cAAc;IACd,oBAAoB,CAAC,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAQ7E"}
|
package/dist/external.d.ts
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
|
-
import { type ExternalEventDescription } from "@leitwerk-dev/process-sdk";
|
|
1
|
+
import { type ExternalEventDescription, type RepositoryFeedbackSourceConfig, type RepositoryIssueCancelledSourceConfig, type RepositoryPullRequestSourceConfig } from "@leitwerk-dev/process-sdk";
|
|
2
2
|
/** @internal */
|
|
3
3
|
export declare const GITHUB_PR_STATE_KIND = "@leitwerk-private/github.pr_state";
|
|
4
4
|
/** @public */
|
|
5
|
-
export interface GitHubPullRequestSourceConfig {
|
|
6
|
-
/** @public */
|
|
7
|
-
profile: string;
|
|
8
|
-
/** @public */
|
|
9
|
-
owner: string;
|
|
10
|
-
/** @public */
|
|
11
|
-
repo: string;
|
|
12
|
-
/** @public */
|
|
13
|
-
prNumber: number;
|
|
5
|
+
export interface GitHubPullRequestSourceConfig extends Omit<GitHubPullRequestTerminalSourceConfig, "terminalOutcome" | "disabled"> {
|
|
14
6
|
/** @public */
|
|
15
7
|
headSha: string;
|
|
16
8
|
/** @public */
|
|
17
9
|
feedbackCursor: number;
|
|
18
10
|
/** @public */
|
|
19
11
|
lastConflictKey?: string | null;
|
|
20
|
-
/** @public */
|
|
21
|
-
pollInterval?: string;
|
|
22
12
|
/** @internal */
|
|
23
13
|
disabled?: boolean;
|
|
24
14
|
/** @public */
|
|
@@ -52,47 +42,13 @@ export declare const GITHUB_PR_FEEDBACK_KIND = "@leitwerk-public/github.pr_feedb
|
|
|
52
42
|
/** @public */
|
|
53
43
|
export declare const GITHUB_ISSUE_CANCELLED_KIND = "@leitwerk-public/github.issue_cancelled";
|
|
54
44
|
/** @public */
|
|
55
|
-
export interface GitHubPullRequestTerminalSourceConfig {
|
|
56
|
-
/** @public */
|
|
57
|
-
profile: string;
|
|
58
|
-
/** @public */
|
|
59
|
-
owner: string;
|
|
60
|
-
/** @public */
|
|
61
|
-
repo: string;
|
|
62
|
-
/** @public */
|
|
63
|
-
prNumber: number;
|
|
64
|
-
/** @public */
|
|
65
|
-
pollInterval?: string;
|
|
66
|
-
/** @public */
|
|
67
|
-
terminalOutcome?: "merged" | "closed";
|
|
68
|
-
/** @internal */
|
|
69
|
-
disabled?: boolean;
|
|
45
|
+
export interface GitHubPullRequestTerminalSourceConfig extends Pick<RepositoryPullRequestSourceConfig, "profile" | "owner" | "repo" | "prNumber">, Partial<Pick<RepositoryPullRequestSourceConfig, "pollInterval" | "terminalOutcome" | "disabled">> {
|
|
70
46
|
}
|
|
71
47
|
/** @public */
|
|
72
|
-
export interface GitHubFeedbackSourceConfig extends GitHubPullRequestTerminalSourceConfig {
|
|
73
|
-
/** @public */
|
|
74
|
-
conversationCursor: number;
|
|
75
|
-
/** @public */
|
|
76
|
-
reviewCursor: number;
|
|
77
|
-
/** @public */
|
|
78
|
-
inlineCursor: number;
|
|
79
|
-
/** @public */
|
|
80
|
-
quietPeriodMs: number;
|
|
48
|
+
export interface GitHubFeedbackSourceConfig extends GitHubPullRequestTerminalSourceConfig, Omit<RepositoryFeedbackSourceConfig, keyof RepositoryPullRequestSourceConfig> {
|
|
81
49
|
}
|
|
82
50
|
/** @public */
|
|
83
|
-
export interface GitHubIssueCancelledSourceConfig {
|
|
84
|
-
/** @public */
|
|
85
|
-
profile: string;
|
|
86
|
-
/** @public */
|
|
87
|
-
owner: string;
|
|
88
|
-
/** @public */
|
|
89
|
-
repo: string;
|
|
90
|
-
/** @public */
|
|
91
|
-
issueNumber: number;
|
|
92
|
-
/** @public */
|
|
93
|
-
triggerLabel: string;
|
|
94
|
-
/** @public */
|
|
95
|
-
pollInterval?: string;
|
|
51
|
+
export interface GitHubIssueCancelledSourceConfig extends Omit<RepositoryIssueCancelledSourceConfig, "pollInterval">, Partial<Pick<RepositoryIssueCancelledSourceConfig, "pollInterval">> {
|
|
96
52
|
}
|
|
97
53
|
/** @public */
|
|
98
54
|
export declare const GITHUB_CHECKS_KIND = "@leitwerk-public/github.checks";
|
package/dist/external.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../src/external.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,wBAAwB,EAC7B,MAAM,2BAA2B,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,sCAAsC,CAAC;AAExE,cAAc;AACd,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../src/external.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EAC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B,4CAA4C,CAAC;AAErF,cAAc;AACd,MAAM,WAAW,qCAChB,SAAQ,IAAI,CAAC,iCAAiC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC,EACzF,OAAO,CACN,IAAI,CAAC,iCAAiC,EAAE,cAAc,GAAG,iBAAiB,GAAG,UAAU,CAAC,CACxF;CAAG;AAEN,cAAc;AACd,MAAM,WAAW,0BAChB,SAAQ,qCAAqC,EAC5C,IAAI,CAAC,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;CAAG;AAElF,cAAc;AACd,MAAM,WAAW,gCAChB,SAAQ,IAAI,CAAC,oCAAoC,EAAE,cAAc,CAAC,EACjE,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,cAAc,CAAC,CAAC;CAAG;AAExE,cAAc;AACd,eAAO,MAAM,kBAAkB,mCAAmC,CAAC;AAEnE,cAAc;AACd,eAAO,MAAM,cAAc;IAC1B,cAAc;;;;;;;mBAEF,MAAM;iBACR,MAAM;eACR,MAAM;cACP,MAAM;kBACF,MAAM;iBACP,MAAM;;IAMhB,cAAc;;;;;;;IAOd,cAAc;;;;;;;IAOd,cAAc;;;;;;;IAOd,gBAAgB;;;;;;;IAMhB,cAAc;;;;;;;CAOd,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LeitwerkExtensionModule } from "@leitwerk-dev/process-sdk";
|
|
1
|
+
import { type LeitwerkExtensionModule, type TicketCreationConfig } from "@leitwerk-dev/process-sdk";
|
|
2
2
|
import { type GitHubIntegration } from "./capability.js";
|
|
3
3
|
/** @public */
|
|
4
4
|
declare const extension: LeitwerkExtensionModule;
|
|
@@ -7,6 +7,8 @@ export default extension;
|
|
|
7
7
|
export declare function setupGitHubIntegration(api: Parameters<NonNullable<LeitwerkExtensionModule["setupServer"]>>[0], integration: GitHubIntegration, options?: {
|
|
8
8
|
/** @public */
|
|
9
9
|
now?: () => number;
|
|
10
|
+
/** @internal */
|
|
11
|
+
ticketCreation?: TicketCreationConfig;
|
|
10
12
|
}): {
|
|
11
13
|
/** @public */
|
|
12
14
|
poll(): Promise<import("@leitwerk-dev/watcher-utils").PollResult>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,uBAAuB,EAI5B,KAAK,oBAAoB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,iBAAiB,EAAqB,MAAM,iBAAiB,CAAC;AAa5E,cAAc;AACd,QAAA,MAAM,SAAS,EAAE,uBAiChB,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,8EAA8E;AAC9E,wBAAgB,sBAAsB,CACrC,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACvE,WAAW,EAAE,iBAAiB,EAC9B,OAAO,GAAE;IACR,cAAc;IACd,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,gBAAgB;IAChB,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACjC;;;cAYN;AAED,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC"}
|