@vypdev/copilot 3.3.0 → 3.5.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/README.md +33 -5
- package/action.yml +85 -109
- package/build/api/index.js +4737 -1506
- package/build/api/src/api.d.ts +60 -14
- package/build/api/src/application/errors/application_error.d.ts +10 -0
- package/build/api/src/application/ports/bugbot_context_ports.d.ts +20 -7
- package/build/api/src/application/ports/bugbot_finding_publication_ports.d.ts +4 -4
- package/build/api/src/application/ports/bugbot_finding_resolution_ports.d.ts +4 -4
- package/build/api/src/application/ports/bugbot_issue_read_ports.d.ts +3 -0
- package/build/api/src/application/ports/bugbot_issue_write_ports.d.ts +12 -0
- package/build/api/src/application/ports/bugbot_pull_request_read_ports.d.ts +3 -17
- package/build/api/src/application/ports/bugbot_pull_request_resolution_ports.d.ts +7 -1
- package/build/api/src/application/ports/bugbot_pull_request_write_ports.d.ts +6 -1
- package/build/api/src/application/ports/bugbot_reconciliation_ports.d.ts +18 -0
- package/build/api/src/application/ports/bugbot_review_navigation_ports.d.ts +13 -0
- package/build/api/src/application/ports/bugbot_rule_ports.d.ts +1 -1
- package/build/api/src/application/ports/bugbot_scm_ports.d.ts +14 -0
- package/build/api/src/application/ports/bugbot_telemetry_ports.d.ts +27 -2
- package/build/api/src/application/ports/message_catalog_ports.d.ts +17 -0
- package/build/api/src/application/ports/pull_request_review_comment_ports.d.ts +31 -2
- package/build/api/src/data/model/application_error.d.ts +82 -0
- package/build/api/src/data/model/result.d.ts +3 -4
- package/build/api/src/domain/agent.d.ts +6 -5
- package/build/api/src/domain/branch_sync_validation.d.ts +4 -0
- package/build/api/src/domain/bugbot/context.d.ts +68 -0
- package/build/api/src/domain/bugbot/finding.d.ts +61 -0
- package/build/api/src/domain/bugbot/review_projection.d.ts +33 -0
- package/build/api/src/domain/bugbot/review_state.d.ts +29 -0
- package/build/api/src/domain/message_catalog.d.ts +35 -0
- package/build/api/src/tooling/bugbot_analytics.d.ts +2 -1
- package/build/cli/index.js +93317 -71617
- package/build/github_action/index.js +79616 -63218
- package/build/web/assets/index-2NVaAtP1.js +3 -0
- package/build/web/assets/index-FN-aja4Y.css +1 -0
- package/build/web/index.html +14 -0
- package/package.json +35 -22
- package/scripts/install-git-hooks.cjs +38 -14
- package/setup/ISSUE_TEMPLATE/hotfix.yml +1 -1
- package/setup/ISSUE_TEMPLATE/release.yml +1 -1
- package/setup/pull_request_template.md +9 -135
- package/setup/source-workflows/copilot_pull_request_approval.yml +55 -0
- package/setup/workflows/agent-cli-provisioning.yml +37 -13
- package/setup/workflows/copilot_close_inactive_issues.yml +4 -4
- package/setup/workflows/copilot_commit.yml +16 -16
- package/setup/workflows/copilot_credential_health.yml +0 -20
- package/setup/workflows/copilot_deployment_orchestration.yml +91 -0
- package/setup/workflows/copilot_issue.yml +15 -19
- package/setup/workflows/copilot_issue_comment.yml +17 -19
- package/setup/workflows/copilot_pull_request.yml +21 -22
- package/setup/workflows/copilot_pull_request_approval.yml +51 -0
- package/setup/workflows/copilot_pull_request_comment.yml +17 -19
- package/setup/workflows/copilot_pull_request_merge_queue.yml +20 -0
- package/setup/workflows/copilot_pull_request_review_state.yml +109 -0
- package/setup/workflows/hotfix_workflow.yml +157 -168
- package/setup/workflows/release_workflow.yml +157 -168
- package/build/api/src/application/usecases/steps/commit/bugbot/types.d.ts +0 -112
- package/build/api/src/data/model/agent.d.ts +0 -2
- package/build/api/src/data/model/ai.d.ts +0 -28
- package/build/api/src/data/model/branch_configuration.d.ts +0 -6
- package/build/api/src/data/model/branches.d.ts +0 -12
- package/build/api/src/data/model/commit.d.ts +0 -8
- package/build/api/src/data/model/config.d.ts +0 -30
- package/build/api/src/data/model/emoji.d.ts +0 -5
- package/build/api/src/data/model/execution.d.ts +0 -75
- package/build/api/src/data/model/execution_components.d.ts +0 -43
- package/build/api/src/data/model/execution_inputs.d.ts +0 -94
- package/build/api/src/data/model/hotfix.d.ts +0 -7
- package/build/api/src/data/model/images.d.ts +0 -27
- package/build/api/src/data/model/issue.d.ts +0 -27
- package/build/api/src/data/model/issue_types.d.ts +0 -30
- package/build/api/src/data/model/labels.d.ts +0 -60
- package/build/api/src/data/model/locale.d.ts +0 -6
- package/build/api/src/data/model/project_detail.d.ts +0 -15
- package/build/api/src/data/model/projects.d.ts +0 -14
- package/build/api/src/data/model/pull_request.d.ts +0 -32
- package/build/api/src/data/model/recommendation_state.d.ts +0 -6
- package/build/api/src/data/model/release.d.ts +0 -6
- package/build/api/src/data/model/single_action.d.ts +0 -43
- package/build/api/src/data/model/size_threshold.d.ts +0 -6
- package/build/api/src/data/model/size_thresholds.d.ts +0 -10
- package/build/api/src/data/model/tokens.d.ts +0 -4
- package/build/api/src/data/model/welcome.d.ts +0 -5
- package/build/api/src/data/model/workflows.d.ts +0 -5
- package/build/api/src/domain/bugbot/review_command.d.ts +0 -16
- package/build/api/src/domain/copilot_lifecycle.d.ts +0 -42
- package/build/api/src/domain/pull_request_description.d.ts +0 -13
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Ai } from "./ai";
|
|
2
|
-
import { Branches } from "./branches";
|
|
3
|
-
import { Commit } from "./commit";
|
|
4
|
-
import { Config } from "./config";
|
|
5
|
-
import { Emoji } from "./emoji";
|
|
6
|
-
import { Hotfix } from "./hotfix";
|
|
7
|
-
import { Images } from "./images";
|
|
8
|
-
import { Issue } from "./issue";
|
|
9
|
-
import { IssueTypes } from "./issue_types";
|
|
10
|
-
import { Labels } from "./labels";
|
|
11
|
-
import { Locale } from "./locale";
|
|
12
|
-
import { Projects } from "./projects";
|
|
13
|
-
import { PullRequest } from "./pull_request";
|
|
14
|
-
import { Release } from "./release";
|
|
15
|
-
import { SingleAction } from "./single_action";
|
|
16
|
-
import { SizeThresholds } from "./size_thresholds";
|
|
17
|
-
import { Tokens } from "./tokens";
|
|
18
|
-
import { Welcome } from "./welcome";
|
|
19
|
-
import { Workflows } from "./workflows";
|
|
20
|
-
import type { ExecutionInputs } from './execution_inputs';
|
|
21
|
-
import type { ExecutionComponents } from './execution_components';
|
|
22
|
-
export declare class Execution {
|
|
23
|
-
debug: boolean;
|
|
24
|
-
welcome: Welcome | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Every usage of this field should be checked.
|
|
27
|
-
* PRs with no issue ID in the head branch won't have it.
|
|
28
|
-
*
|
|
29
|
-
* master <- develop
|
|
30
|
-
*/
|
|
31
|
-
issueNumber: number;
|
|
32
|
-
singleAction: SingleAction;
|
|
33
|
-
commitPrefixBuilder: string;
|
|
34
|
-
commitPrefixBuilderParams: Record<string, unknown>;
|
|
35
|
-
emoji: Emoji;
|
|
36
|
-
images: Images;
|
|
37
|
-
tokens: Tokens;
|
|
38
|
-
ai: Ai;
|
|
39
|
-
labels: Labels;
|
|
40
|
-
issueTypes: IssueTypes;
|
|
41
|
-
locale: Locale;
|
|
42
|
-
sizeThresholds: SizeThresholds;
|
|
43
|
-
branches: Branches;
|
|
44
|
-
release: Release;
|
|
45
|
-
hotfix: Hotfix;
|
|
46
|
-
issue: Issue;
|
|
47
|
-
pullRequest: PullRequest;
|
|
48
|
-
workflows: Workflows;
|
|
49
|
-
project: Projects;
|
|
50
|
-
previousConfiguration: Config | undefined;
|
|
51
|
-
currentConfiguration: Config;
|
|
52
|
-
tokenUser: string | undefined;
|
|
53
|
-
inactivityThresholdHours: number;
|
|
54
|
-
inputs: ExecutionInputs | undefined;
|
|
55
|
-
get eventName(): string;
|
|
56
|
-
get actor(): string;
|
|
57
|
-
get isSingleAction(): boolean;
|
|
58
|
-
get isIssue(): boolean;
|
|
59
|
-
get isPullRequest(): boolean;
|
|
60
|
-
get isPush(): boolean;
|
|
61
|
-
get repo(): string;
|
|
62
|
-
get owner(): string;
|
|
63
|
-
get isFeature(): boolean;
|
|
64
|
-
get isBugfix(): boolean;
|
|
65
|
-
get isDocs(): boolean;
|
|
66
|
-
get isChore(): boolean;
|
|
67
|
-
get isBranched(): boolean;
|
|
68
|
-
get issueNotBranched(): boolean;
|
|
69
|
-
get managementBranch(): string;
|
|
70
|
-
get issueType(): string;
|
|
71
|
-
get cleanIssueBranches(): boolean;
|
|
72
|
-
get commit(): Commit;
|
|
73
|
-
get runnedByToken(): boolean;
|
|
74
|
-
constructor(components: ExecutionComponents);
|
|
75
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { Ai } from './ai';
|
|
2
|
-
import type { Branches } from './branches';
|
|
3
|
-
import type { Emoji } from './emoji';
|
|
4
|
-
import type { Hotfix } from './hotfix';
|
|
5
|
-
import type { Images } from './images';
|
|
6
|
-
import type { Issue } from './issue';
|
|
7
|
-
import type { IssueTypes } from './issue_types';
|
|
8
|
-
import type { Labels } from './labels';
|
|
9
|
-
import type { Locale } from './locale';
|
|
10
|
-
import type { Projects } from './projects';
|
|
11
|
-
import type { PullRequest } from './pull_request';
|
|
12
|
-
import type { Release } from './release';
|
|
13
|
-
import type { SingleAction } from './single_action';
|
|
14
|
-
import type { SizeThresholds } from './size_thresholds';
|
|
15
|
-
import type { Tokens } from './tokens';
|
|
16
|
-
import type { Welcome } from './welcome';
|
|
17
|
-
import type { Workflows } from './workflows';
|
|
18
|
-
import type { ExecutionInputs } from './execution_inputs';
|
|
19
|
-
/** Immutable construction contract for the runtime execution aggregate. */
|
|
20
|
-
export interface ExecutionComponents {
|
|
21
|
-
debug: boolean;
|
|
22
|
-
singleAction: SingleAction;
|
|
23
|
-
commitPrefixBuilder: string;
|
|
24
|
-
issue: Issue;
|
|
25
|
-
pullRequest: PullRequest;
|
|
26
|
-
emoji: Emoji;
|
|
27
|
-
images: Images;
|
|
28
|
-
tokens: Tokens;
|
|
29
|
-
ai: Ai;
|
|
30
|
-
labels: Labels;
|
|
31
|
-
issueTypes: IssueTypes;
|
|
32
|
-
locale: Locale;
|
|
33
|
-
sizeThresholds: SizeThresholds;
|
|
34
|
-
branches: Branches;
|
|
35
|
-
release: Release;
|
|
36
|
-
hotfix: Hotfix;
|
|
37
|
-
workflows: Workflows;
|
|
38
|
-
projects: Projects;
|
|
39
|
-
tokenUser?: string;
|
|
40
|
-
welcome?: Welcome;
|
|
41
|
-
inactivityThresholdHours?: number;
|
|
42
|
-
inputs?: ExecutionInputs;
|
|
43
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export interface EventUserPayload {
|
|
2
|
-
login?: string;
|
|
3
|
-
}
|
|
4
|
-
export interface EventCommentPayload {
|
|
5
|
-
id?: number;
|
|
6
|
-
body?: string | null;
|
|
7
|
-
html_url?: string;
|
|
8
|
-
user?: EventUserPayload;
|
|
9
|
-
in_reply_to_id?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface EventIssuePayload {
|
|
12
|
-
title?: string;
|
|
13
|
-
number?: number;
|
|
14
|
-
html_url?: string;
|
|
15
|
-
body?: string | null;
|
|
16
|
-
user?: EventUserPayload;
|
|
17
|
-
pull_request?: Record<string, unknown>;
|
|
18
|
-
}
|
|
19
|
-
export interface EventLabelPayload {
|
|
20
|
-
name?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface EventPullRequestPayload {
|
|
23
|
-
node_id?: string;
|
|
24
|
-
title?: string;
|
|
25
|
-
number?: number;
|
|
26
|
-
html_url?: string;
|
|
27
|
-
body?: string | null;
|
|
28
|
-
user?: EventUserPayload;
|
|
29
|
-
head?: {
|
|
30
|
-
ref?: string;
|
|
31
|
-
sha?: string;
|
|
32
|
-
};
|
|
33
|
-
base?: {
|
|
34
|
-
ref?: string;
|
|
35
|
-
};
|
|
36
|
-
merged?: boolean;
|
|
37
|
-
draft?: boolean;
|
|
38
|
-
state?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface EventPullRequestReferencePayload {
|
|
41
|
-
number?: number;
|
|
42
|
-
}
|
|
43
|
-
export interface EventReviewPayload {
|
|
44
|
-
state?: string;
|
|
45
|
-
commit_id?: string;
|
|
46
|
-
pull_request?: EventPullRequestReferencePayload;
|
|
47
|
-
}
|
|
48
|
-
export interface EventCheckSuitePayload {
|
|
49
|
-
status?: string;
|
|
50
|
-
conclusion?: string | null;
|
|
51
|
-
head_branch?: string;
|
|
52
|
-
head_sha?: string;
|
|
53
|
-
pull_requests?: EventPullRequestReferencePayload[];
|
|
54
|
-
}
|
|
55
|
-
export interface EventWorkflowRunPayload {
|
|
56
|
-
status?: string;
|
|
57
|
-
conclusion?: string | null;
|
|
58
|
-
head_branch?: string;
|
|
59
|
-
head_sha?: string;
|
|
60
|
-
pull_requests?: EventPullRequestReferencePayload[];
|
|
61
|
-
}
|
|
62
|
-
export interface EventCommitPayload {
|
|
63
|
-
id?: string;
|
|
64
|
-
message?: string;
|
|
65
|
-
author?: {
|
|
66
|
-
name?: string;
|
|
67
|
-
username?: string;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
export interface ExecutionInputs {
|
|
71
|
-
eventName?: string;
|
|
72
|
-
actor?: string;
|
|
73
|
-
action?: string;
|
|
74
|
-
before?: string;
|
|
75
|
-
after?: string;
|
|
76
|
-
ref?: string;
|
|
77
|
-
repo?: {
|
|
78
|
-
owner?: string;
|
|
79
|
-
repo?: string;
|
|
80
|
-
};
|
|
81
|
-
issue?: EventIssuePayload;
|
|
82
|
-
label?: EventLabelPayload;
|
|
83
|
-
pull_request?: EventPullRequestPayload;
|
|
84
|
-
review?: EventReviewPayload;
|
|
85
|
-
check_suite?: EventCheckSuitePayload;
|
|
86
|
-
workflow_run?: EventWorkflowRunPayload;
|
|
87
|
-
comment?: EventCommentPayload;
|
|
88
|
-
pull_request_review_comment?: EventCommentPayload;
|
|
89
|
-
changes?: Record<string, unknown>;
|
|
90
|
-
commits?: {
|
|
91
|
-
ref?: string;
|
|
92
|
-
} | EventCommitPayload[];
|
|
93
|
-
[key: string]: unknown;
|
|
94
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare class Images {
|
|
2
|
-
imagesOnIssue: boolean;
|
|
3
|
-
issueAutomaticActions: string[];
|
|
4
|
-
issueFeatureGifs: string[];
|
|
5
|
-
issueBugfixGifs: string[];
|
|
6
|
-
issueReleaseGifs: string[];
|
|
7
|
-
issueHotfixGifs: string[];
|
|
8
|
-
issueDocsGifs: string[];
|
|
9
|
-
issueChoreGifs: string[];
|
|
10
|
-
imagesOnPullRequest: boolean;
|
|
11
|
-
pullRequestAutomaticActions: string[];
|
|
12
|
-
pullRequestFeatureGifs: string[];
|
|
13
|
-
pullRequestBugfixGifs: string[];
|
|
14
|
-
pullRequestReleaseGifs: string[];
|
|
15
|
-
pullRequestHotfixGifs: string[];
|
|
16
|
-
pullRequestDocsGifs: string[];
|
|
17
|
-
pullRequestChoreGifs: string[];
|
|
18
|
-
imagesOnCommit: boolean;
|
|
19
|
-
commitAutomaticActions: string[];
|
|
20
|
-
commitFeatureGifs: string[];
|
|
21
|
-
commitBugfixGifs: string[];
|
|
22
|
-
commitReleaseGifs: string[];
|
|
23
|
-
commitHotfixGifs: string[];
|
|
24
|
-
commitDocsGifs: string[];
|
|
25
|
-
commitChoreGifs: string[];
|
|
26
|
-
constructor(imagesOnIssue: boolean, imagesOnPullRequest: boolean, imagesOnCommit: boolean, cleanUpGifs: string[], featureGifs: string[], bugfixGifs: string[], docsGifs: string[], choreGifs: string[], releaseGifs: string[], hotfixGifs: string[], prLinkGifs: string[], prFeatureGifs: string[], prBugfixGifs: string[], prReleaseGifs: string[], prHotfixGifs: string[], prDocsGifs: string[], prChoreGifs: string[], commitAutomaticActions: string[], commitFeatureGifs: string[], commitBugfixGifs: string[], commitReleaseGifs: string[], commitHotfixGifs: string[], commitDocsGifs: string[], commitChoreGifs: string[]);
|
|
27
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ExecutionInputs } from './execution_inputs';
|
|
2
|
-
export declare class Issue {
|
|
3
|
-
reopenOnPush: boolean;
|
|
4
|
-
branchManagementAlways: boolean;
|
|
5
|
-
desiredAssigneesCount: number;
|
|
6
|
-
inputs: ExecutionInputs | undefined;
|
|
7
|
-
get title(): string;
|
|
8
|
-
get number(): number;
|
|
9
|
-
get creator(): string;
|
|
10
|
-
get url(): string;
|
|
11
|
-
get body(): string;
|
|
12
|
-
get opened(): boolean;
|
|
13
|
-
/**
|
|
14
|
-
* GitHub only includes `changes.body` when an issue description changed.
|
|
15
|
-
* Title, label, assignment and project updates must not re-run the agent.
|
|
16
|
-
*/
|
|
17
|
-
get descriptionEdited(): boolean;
|
|
18
|
-
get labeled(): boolean;
|
|
19
|
-
get labelAdded(): string;
|
|
20
|
-
get isIssue(): boolean;
|
|
21
|
-
get isIssueComment(): boolean;
|
|
22
|
-
get commentId(): number;
|
|
23
|
-
get commentBody(): string;
|
|
24
|
-
get commentAuthor(): string;
|
|
25
|
-
get commentUrl(): string;
|
|
26
|
-
constructor(branchManagementAlways: boolean, reopenOnPush: boolean, desiredAssigneesCount: number, inputs?: ExecutionInputs | undefined);
|
|
27
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare class IssueTypes {
|
|
2
|
-
task: string;
|
|
3
|
-
taskDescription: string;
|
|
4
|
-
taskColor: string;
|
|
5
|
-
bug: string;
|
|
6
|
-
bugDescription: string;
|
|
7
|
-
bugColor: string;
|
|
8
|
-
feature: string;
|
|
9
|
-
featureDescription: string;
|
|
10
|
-
featureColor: string;
|
|
11
|
-
documentation: string;
|
|
12
|
-
documentationDescription: string;
|
|
13
|
-
documentationColor: string;
|
|
14
|
-
maintenance: string;
|
|
15
|
-
maintenanceDescription: string;
|
|
16
|
-
maintenanceColor: string;
|
|
17
|
-
hotfix: string;
|
|
18
|
-
hotfixDescription: string;
|
|
19
|
-
hotfixColor: string;
|
|
20
|
-
release: string;
|
|
21
|
-
releaseDescription: string;
|
|
22
|
-
releaseColor: string;
|
|
23
|
-
question: string;
|
|
24
|
-
questionDescription: string;
|
|
25
|
-
questionColor: string;
|
|
26
|
-
help: string;
|
|
27
|
-
helpDescription: string;
|
|
28
|
-
helpColor: string;
|
|
29
|
-
constructor(task: string, taskDescription: string, taskColor: string, bug: string, bugDescription: string, bugColor: string, feature: string, featureDescription: string, featureColor: string, documentation: string, documentationDescription: string, documentationColor: string, maintenance: string, maintenanceDescription: string, maintenanceColor: string, hotfix: string, hotfixDescription: string, hotfixColor: string, release: string, releaseDescription: string, releaseColor: string, question: string, questionDescription: string, questionColor: string, help: string, helpDescription: string, helpColor: string);
|
|
30
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { type CopilotLifecycleLabels } from '../../domain/copilot_lifecycle';
|
|
2
|
-
export declare class Labels {
|
|
3
|
-
branchManagementLauncherLabel: string;
|
|
4
|
-
bug: string;
|
|
5
|
-
bugfix: string;
|
|
6
|
-
hotfix: string;
|
|
7
|
-
enhancement: string;
|
|
8
|
-
feature: string;
|
|
9
|
-
release: string;
|
|
10
|
-
question: string;
|
|
11
|
-
help: string;
|
|
12
|
-
deploy: string;
|
|
13
|
-
deployed: string;
|
|
14
|
-
docs: string;
|
|
15
|
-
documentation: string;
|
|
16
|
-
chore: string;
|
|
17
|
-
maintenance: string;
|
|
18
|
-
sizeXxl: string;
|
|
19
|
-
sizeXl: string;
|
|
20
|
-
sizeL: string;
|
|
21
|
-
sizeM: string;
|
|
22
|
-
sizeS: string;
|
|
23
|
-
sizeXs: string;
|
|
24
|
-
priorityHigh: string;
|
|
25
|
-
priorityMedium: string;
|
|
26
|
-
priorityLow: string;
|
|
27
|
-
priorityNone: string;
|
|
28
|
-
readonly lifecycle: CopilotLifecycleLabels;
|
|
29
|
-
currentIssueLabels: string[];
|
|
30
|
-
currentPullRequestLabels: string[];
|
|
31
|
-
get isMandatoryBranchedLabel(): boolean;
|
|
32
|
-
get containsBranchedLabel(): boolean;
|
|
33
|
-
get isDeploy(): boolean;
|
|
34
|
-
get isDeployed(): boolean;
|
|
35
|
-
get isHelp(): boolean;
|
|
36
|
-
get isQuestion(): boolean;
|
|
37
|
-
get isFeature(): boolean;
|
|
38
|
-
get isEnhancement(): boolean;
|
|
39
|
-
get isBugfix(): boolean;
|
|
40
|
-
get isBug(): boolean;
|
|
41
|
-
get isHotfix(): boolean;
|
|
42
|
-
get isRelease(): boolean;
|
|
43
|
-
get isDocs(): boolean;
|
|
44
|
-
get isDocumentation(): boolean;
|
|
45
|
-
get isChore(): boolean;
|
|
46
|
-
get isMaintenance(): boolean;
|
|
47
|
-
get sizeLabels(): string[];
|
|
48
|
-
get sizedLabelOnIssue(): string | undefined;
|
|
49
|
-
get sizedLabelOnPullRequest(): string | undefined;
|
|
50
|
-
get isIssueSized(): boolean;
|
|
51
|
-
get isPullRequestSized(): boolean;
|
|
52
|
-
get priorityLabels(): string[];
|
|
53
|
-
get priorityLabelOnIssue(): string | undefined;
|
|
54
|
-
get priorityLabelOnIssueProcessable(): boolean;
|
|
55
|
-
get priorityLabelOnPullRequest(): string | undefined;
|
|
56
|
-
get priorityLabelOnPullRequestProcessable(): boolean;
|
|
57
|
-
get isIssuePrioritized(): boolean;
|
|
58
|
-
get isPullRequestPrioritized(): boolean;
|
|
59
|
-
constructor(branchManagementLauncherLabel: string, bug: string, bugfix: string, hotfix: string, enhancement: string, feature: string, release: string, question: string, help: string, deploy: string, deployed: string, docs: string, documentation: string, chore: string, maintenance: string, priorityHigh: string, priorityMedium: string, priorityLow: string, priorityNone: string, sizeXxl: string, sizeXl: string, sizeL: string, sizeM: string, sizeS: string, sizeXs: string, lifecycle?: Partial<CopilotLifecycleLabels>);
|
|
60
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class ProjectDetail {
|
|
2
|
-
id: string;
|
|
3
|
-
title: string;
|
|
4
|
-
type: string;
|
|
5
|
-
owner: string;
|
|
6
|
-
url: string;
|
|
7
|
-
number: number;
|
|
8
|
-
constructor(data: unknown);
|
|
9
|
-
/**
|
|
10
|
-
* Returns the full public URL to the project (board).
|
|
11
|
-
* Uses the URL from the API when present and valid; otherwise builds it from owner, type and number.
|
|
12
|
-
* Returns empty string when project number is invalid (e.g. missing from API).
|
|
13
|
-
*/
|
|
14
|
-
get publicUrl(): string;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ProjectDetail } from "./project_detail";
|
|
2
|
-
export declare class Projects {
|
|
3
|
-
private projects;
|
|
4
|
-
private projectColumnIssueCreated;
|
|
5
|
-
private projectColumnPullRequestCreated;
|
|
6
|
-
private projectColumnIssueInProgress;
|
|
7
|
-
private projectColumnPullRequestInProgress;
|
|
8
|
-
constructor(projects: ProjectDetail[], projectColumnIssueCreated: string, projectColumnPullRequestCreated: string, projectColumnIssueInProgress: string, projectColumnPullRequestInProgress: string);
|
|
9
|
-
getProjects(): ProjectDetail[];
|
|
10
|
-
getProjectColumnIssueCreated(): string;
|
|
11
|
-
getProjectColumnPullRequestCreated(): string;
|
|
12
|
-
getProjectColumnIssueInProgress(): string;
|
|
13
|
-
getProjectColumnPullRequestInProgress(): string;
|
|
14
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ExecutionInputs } from './execution_inputs';
|
|
2
|
-
export declare class PullRequest {
|
|
3
|
-
desiredAssigneesCount: number;
|
|
4
|
-
desiredReviewersCount: number;
|
|
5
|
-
mergeTimeout: number;
|
|
6
|
-
inputs: ExecutionInputs | undefined;
|
|
7
|
-
get action(): string;
|
|
8
|
-
get id(): string;
|
|
9
|
-
get title(): string;
|
|
10
|
-
get creator(): string;
|
|
11
|
-
get number(): number;
|
|
12
|
-
get url(): string;
|
|
13
|
-
get body(): string;
|
|
14
|
-
get head(): string;
|
|
15
|
-
get base(): string;
|
|
16
|
-
get isMerged(): boolean;
|
|
17
|
-
get opened(): boolean;
|
|
18
|
-
get isOpened(): boolean;
|
|
19
|
-
get isClosed(): boolean;
|
|
20
|
-
get isSynchronize(): boolean;
|
|
21
|
-
get isPullRequest(): boolean;
|
|
22
|
-
get isPullRequestReviewComment(): boolean;
|
|
23
|
-
/** Review comment: GitHub sends it as payload.comment for pull_request_review_comment event. */
|
|
24
|
-
private get reviewCommentPayload();
|
|
25
|
-
get commentId(): number;
|
|
26
|
-
get commentBody(): string;
|
|
27
|
-
get commentAuthor(): string;
|
|
28
|
-
get commentUrl(): string;
|
|
29
|
-
/** When the comment is a reply, the id of the parent review comment (for bugbot: include parent body in intent prompt). */
|
|
30
|
-
get commentInReplyToId(): number | undefined;
|
|
31
|
-
constructor(desiredAssigneesCount: number, desiredReviewersCount: number, mergeTimeout: number, inputs?: ExecutionInputs | undefined);
|
|
32
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export declare class SingleAction {
|
|
2
|
-
currentSingleAction: string;
|
|
3
|
-
actions: string[];
|
|
4
|
-
/**
|
|
5
|
-
* Actions that throw an error if the last step failed
|
|
6
|
-
*/
|
|
7
|
-
actionsThrowError: string[];
|
|
8
|
-
/**
|
|
9
|
-
* Actions that do not require an issue
|
|
10
|
-
*/
|
|
11
|
-
actionsWithoutIssue: string[];
|
|
12
|
-
isIssue: boolean;
|
|
13
|
-
isPullRequest: boolean;
|
|
14
|
-
isPush: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Properties
|
|
17
|
-
*/
|
|
18
|
-
issue: number;
|
|
19
|
-
version: string;
|
|
20
|
-
title: string;
|
|
21
|
-
changelog: string;
|
|
22
|
-
message: string;
|
|
23
|
-
commentId: number;
|
|
24
|
-
commentIdInput: string;
|
|
25
|
-
commentMode: string;
|
|
26
|
-
get isDeployedAction(): boolean;
|
|
27
|
-
get isPublishGithubAction(): boolean;
|
|
28
|
-
get isCreateReleaseAction(): boolean;
|
|
29
|
-
get isCreateTagAction(): boolean;
|
|
30
|
-
get isThinkAction(): boolean;
|
|
31
|
-
get isInitialSetupAction(): boolean;
|
|
32
|
-
get isCheckProgressAction(): boolean;
|
|
33
|
-
get isDetectPotentialProblemsAction(): boolean;
|
|
34
|
-
get isRecommendStepsAction(): boolean;
|
|
35
|
-
get isCloseInactiveIssuesAction(): boolean;
|
|
36
|
-
get isPublishIssueCommentAction(): boolean;
|
|
37
|
-
get isCheckBranchSyncAction(): boolean;
|
|
38
|
-
get enabledSingleAction(): boolean;
|
|
39
|
-
get validSingleAction(): boolean;
|
|
40
|
-
get isSingleActionWithoutIssue(): boolean;
|
|
41
|
-
get throwError(): boolean;
|
|
42
|
-
constructor(currentSingleAction: string, issue: string, version: string, title: string, changelog: string, message?: string, commentId?: string, commentMode?: string);
|
|
43
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SizeThreshold } from "./size_threshold";
|
|
2
|
-
export declare class SizeThresholds {
|
|
3
|
-
xxl: SizeThreshold;
|
|
4
|
-
xl: SizeThreshold;
|
|
5
|
-
l: SizeThreshold;
|
|
6
|
-
m: SizeThreshold;
|
|
7
|
-
s: SizeThreshold;
|
|
8
|
-
xs: SizeThreshold;
|
|
9
|
-
constructor(xxl: SizeThreshold, xl: SizeThreshold, l: SizeThreshold, m: SizeThreshold, s: SizeThreshold, xs: SizeThreshold);
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { BugbotReviewConfiguration } from './review_configuration';
|
|
2
|
-
export interface BugbotReviewCommandOverrides {
|
|
3
|
-
publicationMode?: BugbotReviewConfiguration['publicationMode'];
|
|
4
|
-
effort?: BugbotReviewConfiguration['effort'];
|
|
5
|
-
traceRules?: boolean;
|
|
6
|
-
suggestedChanges?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type BugbotReviewCommandParseResult = {
|
|
9
|
-
readonly valid: true;
|
|
10
|
-
readonly overrides: BugbotReviewCommandOverrides;
|
|
11
|
-
} | {
|
|
12
|
-
readonly valid: false;
|
|
13
|
-
readonly reason: string;
|
|
14
|
-
};
|
|
15
|
-
/** Parses a deliberately small, provider-neutral set of per-review overrides. */
|
|
16
|
-
export declare function parseBugbotReviewCommandOptions(arguments_: readonly string[]): BugbotReviewCommandParseResult;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copilot labels are split into independent dimensions. A durable lifecycle
|
|
3
|
-
* phase can coexist with temporary agent activity and a human waiting state.
|
|
4
|
-
* This policy is independent from GitHub's API model and remains unit-testable
|
|
5
|
-
* without I/O.
|
|
6
|
-
*/
|
|
7
|
-
export type CopilotLifecycleState = 'planned' | 'in-progress' | 'reviewing' | 'changes-requested' | 'verified' | 'ready' | 'blocked';
|
|
8
|
-
export type CopilotAgentActivity = 'ai-processing';
|
|
9
|
-
export type CopilotWaitingState = 'awaiting-maintainer' | 'awaiting-issue-author';
|
|
10
|
-
export interface CopilotLifecycleLabels {
|
|
11
|
-
aiProcessing: string;
|
|
12
|
-
planned: string;
|
|
13
|
-
inProgress: string;
|
|
14
|
-
reviewing: string;
|
|
15
|
-
changesRequested: string;
|
|
16
|
-
verified: string;
|
|
17
|
-
ready: string;
|
|
18
|
-
blocked: string;
|
|
19
|
-
awaitingMaintainer: string;
|
|
20
|
-
awaitingIssueAuthor: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const DEFAULT_COPILOT_LIFECYCLE_LABELS: Readonly<CopilotLifecycleLabels>;
|
|
23
|
-
export type LifecycleLabelCategory = 'lifecycle' | 'activity' | 'waiting';
|
|
24
|
-
export interface LifecycleLabelDefinition {
|
|
25
|
-
readonly category: LifecycleLabelCategory;
|
|
26
|
-
readonly state?: CopilotLifecycleState;
|
|
27
|
-
readonly name: string;
|
|
28
|
-
readonly color: string;
|
|
29
|
-
readonly description: string;
|
|
30
|
-
}
|
|
31
|
-
export declare function lifecycleLabelDefinitions(labels?: CopilotLifecycleLabels): LifecycleLabelDefinition[];
|
|
32
|
-
export declare function activityLabelDefinitions(labels?: CopilotLifecycleLabels): LifecycleLabelDefinition[];
|
|
33
|
-
export declare function waitingLabelDefinitions(labels?: CopilotLifecycleLabels): LifecycleLabelDefinition[];
|
|
34
|
-
export declare function managedLifecycleLabelDefinitions(labels?: CopilotLifecycleLabels): LifecycleLabelDefinition[];
|
|
35
|
-
export declare function lifecycleLabelNames(labels?: CopilotLifecycleLabels): string[];
|
|
36
|
-
export declare function activityLabelNames(labels?: CopilotLifecycleLabels): string[];
|
|
37
|
-
export declare function waitingLabelNames(labels?: CopilotLifecycleLabels): string[];
|
|
38
|
-
export declare function managedLifecycleLabelNames(labels?: CopilotLifecycleLabels): string[];
|
|
39
|
-
export declare function lifecycleStateLabel(state: CopilotLifecycleState, labels?: CopilotLifecycleLabels): string;
|
|
40
|
-
export declare function activityLabel(labels?: CopilotLifecycleLabels): string;
|
|
41
|
-
export declare function waitingStateLabel(state: CopilotWaitingState, labels?: CopilotLifecycleLabels): string;
|
|
42
|
-
export declare function lifecycleStateFromLabels(currentLabels: readonly string[], labels?: CopilotLifecycleLabels): CopilotLifecycleState | undefined;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const PULL_REQUEST_DESCRIPTION_MODES: readonly ["replace", "append", "preserve", "disabled"];
|
|
2
|
-
export type PullRequestDescriptionMode = typeof PULL_REQUEST_DESCRIPTION_MODES[number];
|
|
3
|
-
export declare const DEFAULT_PULL_REQUEST_DESCRIPTION_MODE: PullRequestDescriptionMode;
|
|
4
|
-
export declare const MANAGED_PULL_REQUEST_DESCRIPTION_START = "<!-- copilot:managed-pr-description -->";
|
|
5
|
-
export declare const MANAGED_PULL_REQUEST_DESCRIPTION_END = "<!-- /copilot:managed-pr-description -->";
|
|
6
|
-
/** Normalizes public configuration while keeping invalid values safe and backwards compatible. */
|
|
7
|
-
export declare function normalizePullRequestDescriptionMode(value: unknown): PullRequestDescriptionMode;
|
|
8
|
-
export declare function hasManagedPullRequestDescription(body: unknown): boolean;
|
|
9
|
-
/** Renders one bounded Copilot-owned section without taking ownership of the rest of the body. */
|
|
10
|
-
export declare function renderManagedPullRequestDescription(generated: string): string;
|
|
11
|
-
/** Replaces the existing managed section, or appends one when none exists. */
|
|
12
|
-
export declare function mergeManagedPullRequestDescription(currentBody: unknown, generated: string): string;
|
|
13
|
-
export declare function shouldAutomaticallyUpdatePullRequestDescription(mode: PullRequestDescriptionMode): boolean;
|