github-issue-tower-defence-management 1.168.1 → 1.168.3
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/CHANGELOG.md +14 -0
- package/bin/adapter/entry-points/console/ui-dist/assets/index-DL4JeBCA.js +86 -0
- package/bin/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/bin/domain/usecases/IssueRejectionEvaluator.js +2 -2
- package/bin/domain/usecases/IssueRejectionEvaluator.js.map +1 -1
- package/bin/domain/usecases/RevertNotReadyReviewQueueIssueUseCase.js +0 -8
- package/bin/domain/usecases/RevertNotReadyReviewQueueIssueUseCase.js.map +1 -1
- package/bin/domain/usecases/RevertOrphanedPreparationUseCase.js +2 -2
- package/bin/domain/usecases/RevertOrphanedPreparationUseCase.js.map +1 -1
- package/package.json +1 -1
- package/src/adapter/entry-points/console/ui/src/features/console/components/list/ConsoleItemList.stories.tsx +1 -1
- package/src/adapter/entry-points/console/ui/src/features/console/components/list/ConsoleItemList.test.tsx +1 -1
- package/src/adapter/entry-points/console/ui/src/features/console/hooks/useConsoleTabData.test.ts +22 -0
- package/src/adapter/entry-points/console/ui/src/features/console/hooks/useConsoleTabData.ts +2 -0
- package/src/adapter/entry-points/console/ui/src/features/console/logic/grouping.test.ts +47 -3
- package/src/adapter/entry-points/console/ui/src/features/console/logic/grouping.ts +17 -2
- package/src/adapter/entry-points/console/ui/src/features/console/pages/ConsolePage.tsx +4 -2
- package/src/adapter/entry-points/console/ui-dist/assets/index-DL4JeBCA.js +86 -0
- package/src/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/src/domain/usecases/IssueRejectionEvaluator.test.ts +61 -2
- package/src/domain/usecases/IssueRejectionEvaluator.ts +5 -5
- package/src/domain/usecases/NotifyFinishedIssuePreparationUseCase.test.ts +6 -4
- package/src/domain/usecases/RevertNotReadyReviewQueueIssueUseCase.test.ts +71 -6
- package/src/domain/usecases/RevertNotReadyReviewQueueIssueUseCase.ts +0 -14
- package/src/domain/usecases/RevertOrphanedPreparationUseCase.test.ts +39 -2
- package/src/domain/usecases/RevertOrphanedPreparationUseCase.ts +3 -4
- package/types/domain/usecases/IssueRejectionEvaluator.d.ts +2 -0
- package/types/domain/usecases/IssueRejectionEvaluator.d.ts.map +1 -1
- package/types/domain/usecases/RevertNotReadyReviewQueueIssueUseCase.d.ts.map +1 -1
- package/types/domain/usecases/RevertOrphanedPreparationUseCase.d.ts.map +1 -1
- package/bin/adapter/entry-points/console/ui-dist/assets/index-DkAuY63u.js +0 -86
- package/src/adapter/entry-points/console/ui-dist/assets/index-DkAuY63u.js +0 -86
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>TDPM Console</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-DL4JeBCA.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-U8I8ESZj.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
@@ -132,11 +132,70 @@ describe('IssueRejectionEvaluator', () => {
|
|
|
132
132
|
expect(result.approvedPrUrl).toBeNull();
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
-
it('should not
|
|
135
|
+
it('should not require PR evaluation when issue has a non-developer agent field value', async () => {
|
|
136
136
|
const result = await evaluator.evaluate({
|
|
137
137
|
url: 'https://github.com/user/repo/issues/1',
|
|
138
|
-
labels: [
|
|
138
|
+
labels: [],
|
|
139
|
+
isPr: false,
|
|
140
|
+
agent: 'chore',
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
expect(mockIssueRepository.findRelatedOpenPRs).not.toHaveBeenCalled();
|
|
144
|
+
expect(result.rejections).toHaveLength(0);
|
|
145
|
+
expect(result.approvedPrUrl).toBeNull();
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it('should require PR evaluation when issue has agent field set to developer', async () => {
|
|
149
|
+
mockIssueRepository.findRelatedOpenPRs.mockResolvedValue([]);
|
|
150
|
+
|
|
151
|
+
const result = await evaluator.evaluate({
|
|
152
|
+
url: 'https://github.com/user/repo/issues/1',
|
|
153
|
+
labels: [],
|
|
154
|
+
isPr: false,
|
|
155
|
+
agent: 'developer',
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
expect(mockIssueRepository.findRelatedOpenPRs).toHaveBeenCalled();
|
|
159
|
+
expect(result.rejections).toHaveLength(1);
|
|
160
|
+
expect(result.rejections[0].type).toBe('PULL_REQUEST_NOT_FOUND');
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
it('should require PR evaluation when issue has null agent field (default developer)', async () => {
|
|
164
|
+
mockIssueRepository.findRelatedOpenPRs.mockResolvedValue([]);
|
|
165
|
+
|
|
166
|
+
const result = await evaluator.evaluate({
|
|
167
|
+
url: 'https://github.com/user/repo/issues/1',
|
|
168
|
+
labels: [],
|
|
169
|
+
isPr: false,
|
|
170
|
+
agent: null,
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
expect(mockIssueRepository.findRelatedOpenPRs).toHaveBeenCalled();
|
|
174
|
+
expect(result.rejections).toHaveLength(1);
|
|
175
|
+
expect(result.rejections[0].type).toBe('PULL_REQUEST_NOT_FOUND');
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
it('should require PR evaluation when issue has agent field set to developer even with llm-agent:developer label', async () => {
|
|
179
|
+
mockIssueRepository.findRelatedOpenPRs.mockResolvedValue([]);
|
|
180
|
+
|
|
181
|
+
const result = await evaluator.evaluate({
|
|
182
|
+
url: 'https://github.com/user/repo/issues/1',
|
|
183
|
+
labels: ['llm-agent:developer'],
|
|
184
|
+
isPr: false,
|
|
185
|
+
agent: 'developer',
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
expect(mockIssueRepository.findRelatedOpenPRs).toHaveBeenCalled();
|
|
189
|
+
expect(result.rejections).toHaveLength(1);
|
|
190
|
+
expect(result.rejections[0].type).toBe('PULL_REQUEST_NOT_FOUND');
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
it('should not require PR evaluation when issue has accounting agent field value', async () => {
|
|
194
|
+
const result = await evaluator.evaluate({
|
|
195
|
+
url: 'https://github.com/user/repo/issues/1',
|
|
196
|
+
labels: [],
|
|
139
197
|
isPr: false,
|
|
198
|
+
agent: 'accounting',
|
|
140
199
|
});
|
|
141
200
|
|
|
142
201
|
expect(mockIssueRepository.findRelatedOpenPRs).not.toHaveBeenCalled();
|
|
@@ -52,6 +52,7 @@ export class IssueRejectionEvaluator {
|
|
|
52
52
|
labels: string[];
|
|
53
53
|
isPr: boolean;
|
|
54
54
|
body?: string | null;
|
|
55
|
+
agent?: string | null;
|
|
55
56
|
},
|
|
56
57
|
labelsNotRequiringPullRequest: string[] = [],
|
|
57
58
|
options: EvaluateOptions = {},
|
|
@@ -186,20 +187,19 @@ export class IssueRejectionEvaluator {
|
|
|
186
187
|
// resolves pull request state in one batch for a whole cycle asks this first,
|
|
187
188
|
// so the batch covers exactly the items evaluate would have resolved.
|
|
188
189
|
requiresPullRequestEvaluation = (
|
|
189
|
-
issue: { labels: string[]; body?: string | null },
|
|
190
|
+
issue: { labels: string[]; body?: string | null; agent?: string | null },
|
|
190
191
|
labelsNotRequiringPullRequest: string[] = [],
|
|
191
192
|
): boolean => {
|
|
192
193
|
const categoryLabels = issue.labels.filter((label) =>
|
|
193
194
|
label.startsWith('category:'),
|
|
194
195
|
);
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
);
|
|
196
|
+
const isNonDeveloperAgent =
|
|
197
|
+
issue.agent != null && issue.agent !== 'developer';
|
|
198
198
|
const hasLabelNotRequiringPullRequest = issue.labels.some((label) =>
|
|
199
199
|
labelsNotRequiringPullRequest.includes(label),
|
|
200
200
|
);
|
|
201
201
|
return (
|
|
202
|
-
!
|
|
202
|
+
!isNonDeveloperAgent &&
|
|
203
203
|
!hasLabelNotRequiringPullRequest &&
|
|
204
204
|
this.isPullRequestRequiredByBody(issue.body) &&
|
|
205
205
|
(categoryLabels.length <= 0 || categoryLabels.includes('category:e2e'))
|
|
@@ -2047,11 +2047,12 @@ describe('NotifyFinishedIssuePreparationUseCase', () => {
|
|
|
2047
2047
|
);
|
|
2048
2048
|
});
|
|
2049
2049
|
|
|
2050
|
-
it('should skip PR checks and update to Awaiting Quality Check when issue has
|
|
2050
|
+
it('should skip PR checks and update to Awaiting Quality Check when issue has non-developer agent field', async () => {
|
|
2051
2051
|
const issue = createMockIssue({
|
|
2052
2052
|
url: 'https://github.com/user/repo/issues/1',
|
|
2053
2053
|
status: 'Preparation',
|
|
2054
|
-
labels: [
|
|
2054
|
+
labels: [],
|
|
2055
|
+
agent: 'chore',
|
|
2055
2056
|
});
|
|
2056
2057
|
|
|
2057
2058
|
mockProjectRepository.getByUrl.mockResolvedValue(mockProject);
|
|
@@ -2075,11 +2076,12 @@ describe('NotifyFinishedIssuePreparationUseCase', () => {
|
|
|
2075
2076
|
);
|
|
2076
2077
|
});
|
|
2077
2078
|
|
|
2078
|
-
it('should skip PR checks when issue has
|
|
2079
|
+
it('should skip PR checks when issue has non-developer agent field value', async () => {
|
|
2079
2080
|
const issue = createMockIssue({
|
|
2080
2081
|
url: 'https://github.com/user/repo/issues/1',
|
|
2081
2082
|
status: 'Preparation',
|
|
2082
|
-
labels: [
|
|
2083
|
+
labels: [],
|
|
2084
|
+
agent: 'accounting',
|
|
2083
2085
|
});
|
|
2084
2086
|
|
|
2085
2087
|
mockProjectRepository.getByUrl.mockResolvedValue(mockProject);
|
|
@@ -233,10 +233,11 @@ describe('RevertNotReadyReviewQueueIssueUseCase', () => {
|
|
|
233
233
|
expect(mockIssueCommentRepository.createComment).not.toHaveBeenCalled();
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
it('should skip Awaiting Quality Check issue with
|
|
236
|
+
it('should skip Awaiting Quality Check issue with non-developer agent field', async () => {
|
|
237
237
|
const issue = createMockIssue({
|
|
238
238
|
status: 'Awaiting Quality Check',
|
|
239
|
-
labels: [
|
|
239
|
+
labels: [],
|
|
240
|
+
agent: 'chore',
|
|
240
241
|
});
|
|
241
242
|
mockIssueRepository.getAllIssues.mockResolvedValue({
|
|
242
243
|
project: mockProject,
|
|
@@ -254,6 +255,35 @@ describe('RevertNotReadyReviewQueueIssueUseCase', () => {
|
|
|
254
255
|
expect(mockIssueCommentRepository.createComment).not.toHaveBeenCalled();
|
|
255
256
|
});
|
|
256
257
|
|
|
258
|
+
it('should revert Awaiting Quality Check issue with developer agent field and no linked PR', async () => {
|
|
259
|
+
const issue = createMockIssue({
|
|
260
|
+
status: 'Awaiting Quality Check',
|
|
261
|
+
labels: ['llm-agent:developer'],
|
|
262
|
+
agent: 'developer',
|
|
263
|
+
});
|
|
264
|
+
mockIssueRepository.getAllIssues.mockResolvedValue({
|
|
265
|
+
project: mockProject,
|
|
266
|
+
issues: [issue],
|
|
267
|
+
cacheUsed: false,
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
await useCase.run({
|
|
271
|
+
manager: 'manager-user',
|
|
272
|
+
projectUrl: 'https://github.com/users/user/projects/1',
|
|
273
|
+
allowedIssueAuthors: ['owner'],
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
expect(mockIssueRepository.updateStatus).toHaveBeenCalledWith(
|
|
277
|
+
mockProject,
|
|
278
|
+
issue,
|
|
279
|
+
'awaiting-workspace-id',
|
|
280
|
+
);
|
|
281
|
+
expect(mockIssueCommentRepository.createComment).toHaveBeenCalledWith(
|
|
282
|
+
issue,
|
|
283
|
+
expect.stringContaining('PULL_REQUEST_NOT_FOUND'),
|
|
284
|
+
);
|
|
285
|
+
});
|
|
286
|
+
|
|
257
287
|
it('should revert issue when no linked PR is found', async () => {
|
|
258
288
|
const issue = createMockIssue({
|
|
259
289
|
status: 'Awaiting Quality Check',
|
|
@@ -1040,10 +1070,11 @@ describe('RevertNotReadyReviewQueueIssueUseCase', () => {
|
|
|
1040
1070
|
);
|
|
1041
1071
|
});
|
|
1042
1072
|
|
|
1043
|
-
it('should skip change-target auto-approve for issue with
|
|
1073
|
+
it('should skip change-target auto-approve for issue with non-developer agent field', async () => {
|
|
1044
1074
|
const issue = createMockIssue({
|
|
1045
1075
|
status: 'Awaiting Quality Check',
|
|
1046
|
-
labels: ['
|
|
1076
|
+
labels: ['change-target:src/domain'],
|
|
1077
|
+
agent: 'chore',
|
|
1047
1078
|
});
|
|
1048
1079
|
linkRelatedOpenPrsToIssue(mockIssueRepository, issue, [
|
|
1049
1080
|
createReadyPr(),
|
|
@@ -1156,10 +1187,11 @@ describe('RevertNotReadyReviewQueueIssueUseCase', () => {
|
|
|
1156
1187
|
expect(mockIssueCommentRepository.createComment).not.toHaveBeenCalled();
|
|
1157
1188
|
});
|
|
1158
1189
|
|
|
1159
|
-
it('should skip Unread pull request with
|
|
1190
|
+
it('should skip Unread pull request with non-developer agent field', async () => {
|
|
1160
1191
|
const pullRequest = createMockPullRequest({
|
|
1161
1192
|
status: 'Unread',
|
|
1162
|
-
labels: [
|
|
1193
|
+
labels: [],
|
|
1194
|
+
agent: 'chore',
|
|
1163
1195
|
});
|
|
1164
1196
|
mockIssueRepository.getAllIssues.mockResolvedValue({
|
|
1165
1197
|
project: mockProject,
|
|
@@ -1178,6 +1210,39 @@ describe('RevertNotReadyReviewQueueIssueUseCase', () => {
|
|
|
1178
1210
|
expect(mockIssueCommentRepository.createComment).not.toHaveBeenCalled();
|
|
1179
1211
|
});
|
|
1180
1212
|
|
|
1213
|
+
it('should revert Unread pull request with developer agent field when it is in draft state', async () => {
|
|
1214
|
+
const pullRequest = createMockPullRequest({
|
|
1215
|
+
status: 'Unread',
|
|
1216
|
+
labels: ['llm-agent:developer'],
|
|
1217
|
+
agent: 'developer',
|
|
1218
|
+
});
|
|
1219
|
+
mockIssueRepository.getAllIssues.mockResolvedValue({
|
|
1220
|
+
project: mockProject,
|
|
1221
|
+
issues: [pullRequest],
|
|
1222
|
+
cacheUsed: false,
|
|
1223
|
+
});
|
|
1224
|
+
mockIssueRepository.getOpenPullRequest.mockResolvedValue({
|
|
1225
|
+
...createReadyPr(),
|
|
1226
|
+
isDraft: true,
|
|
1227
|
+
});
|
|
1228
|
+
|
|
1229
|
+
await useCase.run({
|
|
1230
|
+
manager: 'manager-user',
|
|
1231
|
+
projectUrl: 'https://github.com/users/user/projects/1',
|
|
1232
|
+
allowedIssueAuthors: ['owner'],
|
|
1233
|
+
});
|
|
1234
|
+
|
|
1235
|
+
expect(mockIssueRepository.updateStatus).toHaveBeenCalledWith(
|
|
1236
|
+
mockProject,
|
|
1237
|
+
pullRequest,
|
|
1238
|
+
'awaiting-workspace-id',
|
|
1239
|
+
);
|
|
1240
|
+
expect(mockIssueCommentRepository.createComment).toHaveBeenCalledWith(
|
|
1241
|
+
pullRequest,
|
|
1242
|
+
expect.stringContaining('PULL_REQUEST_IS_DRAFT'),
|
|
1243
|
+
);
|
|
1244
|
+
});
|
|
1245
|
+
|
|
1181
1246
|
it('should not move Unread pull request when it is review-ready', async () => {
|
|
1182
1247
|
const pullRequest = createMockPullRequest({
|
|
1183
1248
|
status: 'Unread',
|
|
@@ -125,13 +125,6 @@ export class RevertNotReadyReviewQueueIssueUseCase {
|
|
|
125
125
|
);
|
|
126
126
|
|
|
127
127
|
for (const issue of awaitingQualityCheckIssues) {
|
|
128
|
-
const hasLlmAgentLabel = issue.labels.some(
|
|
129
|
-
(l) => l === 'llm-agent' || l.startsWith('llm-agent:'),
|
|
130
|
-
);
|
|
131
|
-
if (hasLlmAgentLabel) {
|
|
132
|
-
continue;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
128
|
if (
|
|
136
129
|
!isAuthorAuthorizedForAutoStatusCheck(issue.author, allowedIssueAuthors)
|
|
137
130
|
) {
|
|
@@ -205,13 +198,6 @@ export class RevertNotReadyReviewQueueIssueUseCase {
|
|
|
205
198
|
const projectStory = project.story;
|
|
206
199
|
|
|
207
200
|
for (const pullRequest of unreadPullRequests) {
|
|
208
|
-
const hasLlmAgentLabel = pullRequest.labels.some(
|
|
209
|
-
(l) => l === 'llm-agent' || l.startsWith('llm-agent:'),
|
|
210
|
-
);
|
|
211
|
-
if (hasLlmAgentLabel) {
|
|
212
|
-
continue;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
201
|
if (
|
|
216
202
|
!isAuthorAuthorizedForAutoStatusCheck(
|
|
217
203
|
pullRequest.author,
|
|
@@ -521,11 +521,12 @@ describe('RevertOrphanedPreparationUseCase', () => {
|
|
|
521
521
|
);
|
|
522
522
|
});
|
|
523
523
|
|
|
524
|
-
it('should advance orphaned issue with
|
|
524
|
+
it('should advance orphaned issue with non-developer agent field to Awaiting Quality Check without PR check', async () => {
|
|
525
525
|
const stuckIssue = createMockIssue({
|
|
526
526
|
url: 'https://github.com/user/repo/issues/10',
|
|
527
527
|
status: 'Preparation',
|
|
528
|
-
labels: [
|
|
528
|
+
labels: [],
|
|
529
|
+
agent: 'chore',
|
|
529
530
|
});
|
|
530
531
|
mockIssueRepository.getAllIssues.mockResolvedValue({
|
|
531
532
|
project: mockProject,
|
|
@@ -556,6 +557,42 @@ describe('RevertOrphanedPreparationUseCase', () => {
|
|
|
556
557
|
expect(mockIssueRepository.updateStatus.mock.calls[0][2]).toBe('4');
|
|
557
558
|
});
|
|
558
559
|
|
|
560
|
+
it('should check PR for orphaned issue with developer agent field', async () => {
|
|
561
|
+
const stuckIssue = createMockIssue({
|
|
562
|
+
url: 'https://github.com/user/repo/issues/10',
|
|
563
|
+
status: 'Preparation',
|
|
564
|
+
labels: ['llm-agent:developer'],
|
|
565
|
+
agent: 'developer',
|
|
566
|
+
});
|
|
567
|
+
mockIssueRepository.getAllIssues.mockResolvedValue({
|
|
568
|
+
project: mockProject,
|
|
569
|
+
issues: [stuckIssue],
|
|
570
|
+
cacheUsed: false,
|
|
571
|
+
});
|
|
572
|
+
mockLocalCommandRunner.runCommand.mockResolvedValue({
|
|
573
|
+
stdout: '',
|
|
574
|
+
stderr: '',
|
|
575
|
+
exitCode: 1,
|
|
576
|
+
});
|
|
577
|
+
mockIssueCommentRepository.getCommentsFromIssue.mockResolvedValue([
|
|
578
|
+
{
|
|
579
|
+
author: 'bot',
|
|
580
|
+
content: 'From: :robot: agent report',
|
|
581
|
+
createdAt: new Date(),
|
|
582
|
+
},
|
|
583
|
+
]);
|
|
584
|
+
mockIssueRepository.findRelatedOpenPRs.mockResolvedValue([]);
|
|
585
|
+
|
|
586
|
+
await useCase.run({
|
|
587
|
+
projectUrl: 'https://github.com/user/repo',
|
|
588
|
+
preparationProcessCheckCommand: 'pgrep -fa "claude-agent.*{URL}"',
|
|
589
|
+
thresholdForAutoReject: 3,
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
expect(mockIssueRepository.findRelatedOpenPRs.mock.calls).toHaveLength(1);
|
|
593
|
+
expect(mockIssueRepository.updateStatus.mock.calls[0][2]).toBe('1');
|
|
594
|
+
});
|
|
595
|
+
|
|
559
596
|
it('should advance orphaned issue with a labelsAsLlmAgentName label (story) to Awaiting Quality Check without PR check', async () => {
|
|
560
597
|
const stuckIssue = createMockIssue({
|
|
561
598
|
url: 'https://github.com/user/repo/issues/10',
|
|
@@ -271,14 +271,13 @@ export class RevertOrphanedPreparationUseCase {
|
|
|
271
271
|
const categoryLabels = issue.labels.filter((label) =>
|
|
272
272
|
label.startsWith('category:'),
|
|
273
273
|
);
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
);
|
|
274
|
+
const isNonDeveloperAgent =
|
|
275
|
+
issue.agent != null && issue.agent !== 'developer';
|
|
277
276
|
const hasLabelNotRequiringPullRequest = issue.labels.some((label) =>
|
|
278
277
|
labelsNotRequiringPullRequest.includes(label),
|
|
279
278
|
);
|
|
280
279
|
if (
|
|
281
|
-
|
|
280
|
+
isNonDeveloperAgent ||
|
|
282
281
|
hasLabelNotRequiringPullRequest ||
|
|
283
282
|
(categoryLabels.length > 0 && !categoryLabels.includes('category:e2e'))
|
|
284
283
|
) {
|
|
@@ -19,10 +19,12 @@ export declare class IssueRejectionEvaluator {
|
|
|
19
19
|
labels: string[];
|
|
20
20
|
isPr: boolean;
|
|
21
21
|
body?: string | null;
|
|
22
|
+
agent?: string | null;
|
|
22
23
|
}, labelsNotRequiringPullRequest?: string[], options?: EvaluateOptions) => Promise<PrRejectionResult>;
|
|
23
24
|
requiresPullRequestEvaluation: (issue: {
|
|
24
25
|
labels: string[];
|
|
25
26
|
body?: string | null;
|
|
27
|
+
agent?: string | null;
|
|
26
28
|
}, labelsNotRequiringPullRequest?: string[]) => boolean;
|
|
27
29
|
private resolveOpenPrsForPrItem;
|
|
28
30
|
private resolveOpenPrsFromUrls;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssueRejectionEvaluator.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/IssueRejectionEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAC5B,wBAAwB,GACxB,8BAA8B,GAC9B,uBAAuB,GACvB,yBAAyB,GACzB,kCAAkC,GAClC,+BAA+B,GAC/B,iCAAiC,GACjC,qCAAqC,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE;QAAE,IAAI,EAAE,oBAAoB,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7D,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAQ5B,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAMpC,mBAAmB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;CAC7E,CAAC;AAEF,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,IAAI,CACpC,eAAe,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b,cAAc,GACd,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,gCAAgC,GAChC,oBAAoB,GACpB,iCAAiC,CACpC,EACgB,sBAAsB,EAAE,IAAI,CAC3C,sBAAsB,EACtB,eAAe,GAAG,sBAAsB,CACzC;IAQH,GAAG,GAAU,QAAQ;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,oBAAoB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACvC,6BAA6B,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;QACxD,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;KACvC,KAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"RevertNotReadyReviewQueueIssueUseCase.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/RevertNotReadyReviewQueueIssueUseCase.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAyBrF,qBAAa,qCAAqC;IAK9C,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAIlC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAYhC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IApBzC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAA0B;IAClE,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAkC;gBAG/D,iBAAiB,EAAE,IAAI,CACtC,iBAAiB,EACjB,oBAAoB,GAAG,YAAY,CACpC,EACgB,eAAe,EAAE,IAAI,CACpC,eAAe,EACb,cAAc,GACd,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,gCAAgC,GAChC,oBAAoB,GACpB,iCAAiC,CACpC,EACgB,sBAAsB,EAAE,IAAI,CAC3C,sBAAsB,EACtB,eAAe,GAAG,sBAAsB,CACzC;IAQH,GAAG,GAAU,QAAQ;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,oBAAoB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACvC,6BAA6B,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAChD,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;QACxD,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;KACvC,KAAG,OAAO,CAAC,IAAI,CAAC,CA6Lf;IAQF,OAAO,CAAC,gCAAgC,CAsBtC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RevertOrphanedPreparationUseCase.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/RevertOrphanedPreparationUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEhB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAwB7E,qBAAa,gCAAgC;IAEzC,QAAQ,CAAC,iBAAiB,EAAE,IAAI,CAC9B,iBAAiB,EACjB,oBAAoB,GAAG,YAAY,CACpC;IACD,QAAQ,CAAC,eAAe,EAAE,IAAI,CAC5B,eAAe,EACb,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,oBAAoB,GACpB,KAAK,CACR;IACD,QAAQ,CAAC,sBAAsB,EAAE,IAAI,CACnC,sBAAsB,EACtB,sBAAsB,GAAG,eAAe,CACzC;IACD,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB;gBAhBtC,iBAAiB,EAAE,IAAI,CAC9B,iBAAiB,EACjB,oBAAoB,GAAG,YAAY,CACpC,EACQ,eAAe,EAAE,IAAI,CAC5B,eAAe,EACb,cAAc,GACd,cAAc,GACd,oBAAoB,GACpB,oBAAoB,GACpB,KAAK,CACR,EACQ,sBAAsB,EAAE,IAAI,CACnC,sBAAsB,EACtB,sBAAsB,GAAG,eAAe,CACzC,EACQ,kBAAkB,EAAE,kBAAkB;IAGjD,GAAG,GAAU,QAAQ;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,8BAA8B,EAAE,MAAM,CAAC;QACvC,sBAAsB,EAAE,MAAM,CAAC;QAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;QACpC,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3C,oBAAoB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QACvC,6BAA6B,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAChD,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;KACvC,KAAG,OAAO,CAAC,IAAI,CAAC,CA0Hf;IAEF,OAAO,CAAC,oBAAoB,CAqB1B;IAEF,OAAO,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"RevertOrphanedPreparationUseCase.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/RevertOrphanedPreparationUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEhB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAwB7E,qBAAa,gC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