@gitkraken/provider-apis 0.17.5 → 0.19.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.
@@ -1,8 +1,12 @@
1
1
  import { PagedResult, Result } from '../../types';
2
- import { CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitMergeStrategy, GitProvider, GitPullRequest, GitRepository, NumberedPageInput, Options } from '../gitProvider';
3
- import { Issue } from '../issueProvider';
2
+ import { CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitMergeStrategy, GitProvider, GitPullRequest, GitRepository, NumberedPageInput, Options, SetAccountInput, SetLabelInput, SetPullRequestInput } from '../gitProvider';
3
+ import { Issue, IssueProvider, SetIssueInput, SetStatusInput } from '../issueProvider';
4
4
  import { Provider } from '../provider';
5
5
  import { AzureGraphAccount, PullRequestAsyncStatus, WorkItemType } from './azureDevOpsTypes';
6
+ export interface AzureDevOpsProject {
7
+ namespace: string;
8
+ name: string;
9
+ }
6
10
  export interface AzureGetRepoInput extends GetRepoInput {
7
11
  project: string;
8
12
  }
@@ -10,6 +14,26 @@ export interface AzureGetReposInput {
10
14
  namespace: string;
11
15
  project: string;
12
16
  }
17
+ export interface AzureSetAccountInput extends SetAccountInput {
18
+ name: string;
19
+ }
20
+ export interface AzureSetIssueInput extends SetIssueInput {
21
+ project: {
22
+ namespace: string;
23
+ resourceId: null;
24
+ name: string;
25
+ };
26
+ }
27
+ export interface AzureSetPullRequestInput extends SetPullRequestInput {
28
+ repository: {
29
+ id: string;
30
+ name: string;
31
+ project: string;
32
+ owner: {
33
+ login: string;
34
+ };
35
+ };
36
+ }
13
37
  export interface AzureProject {
14
38
  id: string;
15
39
  name: string;
@@ -26,7 +50,7 @@ export type StatusByWorkItemIdByStatusId = {
26
50
  };
27
51
  };
28
52
  };
29
- export declare class AzureDevOps extends Provider implements GitProvider {
53
+ export declare class AzureDevOps extends Provider implements GitProvider, IssueProvider {
30
54
  /** Note: PATs are not supported for this function, only OAuth tokens are. */
31
55
  getCurrentUser(input?: Record<string, never>, options?: EnterpriseOptions): Promise<{
32
56
  data: {
@@ -207,40 +231,54 @@ export declare class AzureDevOps extends Provider implements GitProvider {
207
231
  }>;
208
232
  private updatePullRequest;
209
233
  closePullRequest(input: {
210
- repo: GetRepoInput;
211
- pullRequestId: string;
234
+ pullRequest: AzureSetPullRequestInput;
212
235
  }, options?: EnterpriseOptions): Promise<void>;
213
236
  mergePullRequest(input: {
214
- repo: GetRepoInput;
215
- pullRequestId: string;
216
- expectedSourceSha: string;
237
+ pullRequest: {
238
+ headRef: {
239
+ oid: string;
240
+ };
241
+ } & AzureSetPullRequestInput;
217
242
  mergeStrategy?: GitMergeStrategy.MergeCommit | GitMergeStrategy.Rebase | GitMergeStrategy.RebaseThenMergeCommit | GitMergeStrategy.Squash;
218
243
  }, options?: EnterpriseOptions): Promise<void>;
219
244
  addPullRequestLabel(input: {
220
- repo: GetRepoInput;
221
- pullRequestId: string;
222
- labelName: string;
245
+ pullRequest: SetPullRequestInput;
246
+ label: SetLabelInput;
223
247
  }, options?: EnterpriseOptions): Promise<void>;
224
248
  removePullRequestLabel(input: {
225
- repo: GetRepoInput;
226
- pullRequestId: string;
227
- labelNameOrId: string;
249
+ pullRequest: SetPullRequestInput;
250
+ label: SetLabelInput;
251
+ }, options?: EnterpriseOptions): Promise<void>;
252
+ setPullRequestLabels(input: {
253
+ pullRequest: {
254
+ labels?: SetLabelInput[];
255
+ } & SetPullRequestInput;
256
+ labels: SetLabelInput[];
228
257
  }, options?: EnterpriseOptions): Promise<void>;
229
258
  setPullRequestAsDraft(input: {
230
- repo: GetRepoInput;
231
- pullRequestId: string;
259
+ pullRequest: AzureSetPullRequestInput;
232
260
  isDraft: boolean;
233
261
  }, options?: EnterpriseOptions): Promise<void>;
234
262
  addPullRequestReviewer(input: {
235
- repo: GetRepoInput;
236
- pullRequestId: string;
237
- reviewerId: string;
263
+ pullRequest: AzureSetPullRequestInput;
264
+ reviewer: {
265
+ id: string;
266
+ };
238
267
  isRequired: boolean;
239
268
  }, options?: EnterpriseOptions): Promise<void>;
240
269
  removePullRequestReviewer(input: {
241
- repo: GetRepoInput;
242
- pullRequestId: string;
243
- reviewerId: string;
270
+ pullRequest: AzureSetPullRequestInput;
271
+ reviewer: {
272
+ id: string;
273
+ };
274
+ }, options?: EnterpriseOptions): Promise<void>;
275
+ setPullRequestReviewers(input: {
276
+ pullRequest: {
277
+ assignees: {
278
+ id: string;
279
+ }[];
280
+ } & AzureSetPullRequestInput;
281
+ reviewers: SetAccountInput[];
244
282
  }, options?: EnterpriseOptions): Promise<void>;
245
283
  getIssuesForAzureProject(input: {
246
284
  namespace: string;
@@ -264,22 +302,16 @@ export declare class AzureDevOps extends Provider implements GitProvider {
264
302
  }>;
265
303
  private updateIssue;
266
304
  setIssueStatus(input: {
267
- namespace: string;
268
- project: string;
269
- issueId: string;
270
- status: string;
305
+ issue: AzureSetIssueInput;
306
+ status: SetStatusInput;
271
307
  }, options?: EnterpriseOptions): Promise<void>;
272
308
  setIssueAssignee(input: {
273
- namespace: string;
274
- project: string;
275
- issueId: string;
276
- assigneeNameOrEmail: string | null;
309
+ issue: AzureSetIssueInput;
310
+ assignee: AzureSetAccountInput | null;
277
311
  }, options?: EnterpriseOptions): Promise<void>;
278
312
  setIssueLabels(input: {
279
- namespace: string;
280
- project: string;
281
- issueId: string;
282
- tagNames: string[];
313
+ issue: AzureSetIssueInput;
314
+ labels: SetLabelInput[];
283
315
  }, options?: EnterpriseOptions): Promise<void>;
284
316
  getIssueTypesForAzureProject(input: {
285
317
  namespace: string;
@@ -296,6 +328,7 @@ export declare class AzureDevOps extends Provider implements GitProvider {
296
328
  description: null;
297
329
  id: string;
298
330
  name: string;
331
+ url: string;
299
332
  }[];
300
333
  }>;
301
334
  }
@@ -1,4 +1,4 @@
1
- import { Account, CursorPageInput, GetRepoErrorData, GetRepoInput, GitMergeStrategy, GitProvider, GitPullRequest, GitRepository, NumberedPageInput, Options } from '../gitProvider';
1
+ import { Account, CursorPageInput, GetRepoErrorData, GetRepoInput, GitMergeStrategy, GitProvider, GitPullRequest, GitRepository, NumberedPageInput, Options, SetAccountInput, SetPullRequestInput } from '../gitProvider';
2
2
  import { Provider } from '../provider';
3
3
  export interface RefreshTokenResponse {
4
4
  access_token: string;
@@ -35,7 +35,7 @@ export declare class Bitbucket extends Provider implements GitProvider {
35
35
  data: GitRepository[];
36
36
  errors: GetRepoErrorData[];
37
37
  }>;
38
- getReposForCurrentUser(inputs?: CursorPageInput, options?: Options): Promise<{
38
+ getReposForCurrentUser(input: CursorPageInput, options?: Options): Promise<{
39
39
  pageInfo: {
40
40
  hasNextPage: boolean;
41
41
  endCursor: string | null;
@@ -101,18 +101,18 @@ export declare class Bitbucket extends Provider implements GitProvider {
101
101
  data: GitPullRequest[];
102
102
  }>;
103
103
  closePullRequest(input: {
104
- repo: GetRepoInput;
105
- pullRequestId: string;
104
+ pullRequest: SetPullRequestInput;
106
105
  }, options?: Options): Promise<void>;
107
106
  mergePullRequest(input: {
108
- repo: GetRepoInput;
109
- pullRequestId: string;
110
- expectedSourceSha: string;
107
+ pullRequest: {
108
+ headRef: {
109
+ oid: string | null;
110
+ } | null;
111
+ } & SetPullRequestInput;
111
112
  mergeStrategy?: GitMergeStrategy.MergeCommit | GitMergeStrategy.FastForward | GitMergeStrategy.Squash;
112
113
  }, options?: Options): Promise<void>;
113
114
  setPullRequestReviewers(input: {
114
- repo: GetRepoInput;
115
- pullRequestId: string;
116
- reviewerUsernames: string[];
115
+ pullRequest: SetPullRequestInput;
116
+ reviewers: SetAccountInput[];
117
117
  }, options?: Options): Promise<void>;
118
118
  }
@@ -1,25 +1,23 @@
1
- import { EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitProvider, GitPullRequest, GitRepository, NumberedPageInput } from '../gitProvider';
1
+ import { EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitProvider, GitPullRequest, GitRepository, NumberedPageInput, SetPullRequestInput } from '../gitProvider';
2
2
  import { EnterpriseProvider } from '../provider';
3
3
  import { BitbucketServerMergeStrategy } from './bitbucketServerTypes';
4
4
  export declare class BitbucketServer extends EnterpriseProvider implements GitProvider {
5
5
  private getBaseUrl;
6
6
  private getRequestHeaders;
7
7
  getRepo(input: GetRepoInput, options?: EnterpriseOptions): Promise<{
8
- data: {
9
- id: string;
10
- namespace: string;
11
- name: string;
12
- webUrl: string;
13
- httpsUrl: string | null;
14
- sshUrl: string | null;
15
- defaultBranch: null;
16
- permission: null;
17
- };
8
+ data: GitRepository;
18
9
  }>;
19
10
  getRepos(inputs: GetRepoInput[], options?: EnterpriseOptions): Promise<{
20
11
  data: GitRepository[];
21
12
  errors: GetRepoErrorData[];
22
13
  }>;
14
+ getReposForCurrentUser(input: NumberedPageInput, options?: EnterpriseOptions): Promise<{
15
+ pageInfo: {
16
+ hasNextPage: boolean;
17
+ nextPage: number;
18
+ };
19
+ data: GitRepository[];
20
+ }>;
23
21
  private getPullRequestsForRepoBase;
24
22
  getPullRequestsForRepo(input: {
25
23
  repo: GetRepoInput;
@@ -45,26 +43,22 @@ export declare class BitbucketServer extends EnterpriseProvider implements GitPr
45
43
  data: GitPullRequest[];
46
44
  }>;
47
45
  closePullRequest(input: {
48
- repo: GetRepoInput;
49
- pullRequestId: string;
50
- version: number;
51
- }, options: EnterpriseOptions): Promise<void>;
46
+ pullRequest: SetPullRequestInput;
47
+ }, options?: EnterpriseOptions): Promise<void>;
52
48
  mergePullRequest(input: {
53
- repo: GetRepoInput;
54
- pullRequestId: string;
49
+ pullRequest: SetPullRequestInput;
55
50
  mergeStrategyId?: string;
56
- version: number;
57
- }, options: EnterpriseOptions): Promise<void>;
58
- getMergeStrategies(options: EnterpriseOptions): Promise<{
51
+ }, options?: EnterpriseOptions): Promise<void>;
52
+ getMergeStrategies(options?: EnterpriseOptions): Promise<{
59
53
  data: {
60
54
  defaultStrategy: BitbucketServerMergeStrategy;
61
55
  strategies: BitbucketServerMergeStrategy[];
62
56
  };
63
57
  }>;
64
58
  setPullRequestReviewers(input: {
65
- repo: GetRepoInput;
66
- pullRequestId: string;
67
- reviewerUsernames: string[];
68
- version: number;
59
+ pullRequest: SetPullRequestInput;
60
+ reviewers: {
61
+ username: string | null;
62
+ }[];
69
63
  }, options?: EnterpriseOptions): Promise<void>;
70
64
  }
@@ -202,6 +202,7 @@ export interface GitPullRequest {
202
202
  milestone?: GitMilestone | null;
203
203
  labels?: GitLabel[];
204
204
  permissions: GitPullRequestPermissions | null;
205
+ version?: number;
205
206
  }
206
207
  export interface GitComment {
207
208
  author: Account | User | null;
@@ -247,6 +248,50 @@ export type GetPRForRepoInput = {
247
248
  repo: GetRepoInput;
248
249
  number: number;
249
250
  };
251
+ export interface SetPullRequestInput {
252
+ id: string;
253
+ number: number;
254
+ graphQLId?: string;
255
+ repository: {
256
+ id: string;
257
+ name: string;
258
+ project?: string;
259
+ owner: {
260
+ login: string;
261
+ };
262
+ };
263
+ version?: number;
264
+ }
265
+ export interface SetMilestoneInput {
266
+ id: string;
267
+ graphQLId?: string;
268
+ }
269
+ export interface SetAccountInput {
270
+ id: string;
271
+ name: string | null;
272
+ graphQLId?: string;
273
+ username: string | null;
274
+ }
275
+ export interface CreateCommitInput {
276
+ commitMessage: {
277
+ description?: string;
278
+ summary: string;
279
+ };
280
+ deletedFiles: string[];
281
+ newOrModifiedFiles: {
282
+ [filePath: string]: string;
283
+ };
284
+ repo: GetRepoInput;
285
+ target: {
286
+ name: string;
287
+ oid: string;
288
+ };
289
+ }
290
+ export interface SetLabelInput {
291
+ id: string | null;
292
+ graphQLId?: string;
293
+ name: string;
294
+ }
250
295
  export interface CursorPageInput {
251
296
  cursor?: string | null;
252
297
  }
@@ -264,6 +309,7 @@ export interface GitProvider {
264
309
  repo: GetRepoInput;
265
310
  oid: string;
266
311
  }, options: Options): Promise<Result<User>>;
312
+ createCommit?(input: CreateCommitInput): Promise<Result<GitRefWithCommit>>;
267
313
  getAccountForEmail?(input: {
268
314
  email: string;
269
315
  }, options: Options): Promise<Result<Account>>;
@@ -274,7 +320,7 @@ export interface GitProvider {
274
320
  getRepos(inputs: GetRepoInput[], options: Options): Promise<Result<GitRepository[]> & {
275
321
  errors?: GetRepoErrorData[];
276
322
  }>;
277
- getReposForCurrentUser?(inputs: CursorPageInput, options: Options): Promise<PagedResult<GitRepository>>;
323
+ getReposForCurrentUser?(input: PageInput, options: Options): Promise<PagedResult<GitRepository>>;
278
324
  getBranches?(input: {
279
325
  repo: GetRepoInput;
280
326
  } & PageInput, options: Options): Promise<PagedResult<GitRefWithCommit>>;
@@ -288,5 +334,48 @@ export interface GitProvider {
288
334
  }, options: Options): Promise<Result<GitBlame>>;
289
335
  getPullRequestsForRepos?(input: GetPRsForReposInput, options: Options): Promise<Result<GitPullRequest[]>>;
290
336
  getPullRequestForRepo?(input: GetPRForRepoInput, options: Options): Promise<Result<GitPullRequest | null>>;
337
+ setPullRequestAssignees?(input: {
338
+ pullRequest: SetPullRequestInput;
339
+ assignees: SetAccountInput[];
340
+ }, options: Options): Promise<void>;
341
+ setPullRequestLabels?(input: {
342
+ pullRequest: {
343
+ labels?: GitLabel[];
344
+ } & SetPullRequestInput;
345
+ labels: SetLabelInput[];
346
+ }, options: Options): Promise<void>;
347
+ setPullRequestMilestone?(input: {
348
+ pullRequest: SetPullRequestInput;
349
+ milestone: SetMilestoneInput | null;
350
+ }, options: Options): Promise<void>;
351
+ setPullRequestAsDraft?(input: {
352
+ pullRequest: SetPullRequestInput;
353
+ isDraft: boolean;
354
+ }, options: Options): Promise<void>;
355
+ setPullRequestReviewers?(input: {
356
+ pullRequest: SetPullRequestInput;
357
+ reviewers: SetAccountInput[];
358
+ }, options: Options): Promise<void>;
359
+ reRequestPullRequestReviews?(input: {
360
+ pullRequest: {
361
+ reviews: {
362
+ reviewer: {
363
+ graphQLId?: string;
364
+ };
365
+ }[] | null;
366
+ } & SetPullRequestInput;
367
+ reviewers: SetAccountInput[];
368
+ }, options: Options): Promise<void>;
369
+ mergePullRequest?(input: {
370
+ pullRequest: {
371
+ headRef: {
372
+ oid: string | null;
373
+ } | null;
374
+ } & SetPullRequestInput;
375
+ mergeStrategy?: GitMergeStrategy;
376
+ }, options: Options): Promise<void>;
377
+ closePullRequest?(input: {
378
+ pullRequest: SetPullRequestInput;
379
+ }, options: Options): Promise<void>;
291
380
  }
292
381
  export declare const MAX_PAGE_SIZE = 100;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="node" />
2
- import { Account, CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitLabel, GitMergeStrategy, GitMilestone, GitProvider, GitPullRequest, GitPullRequestReviewComment, GitRepository, Organization } from '../gitProvider';
3
- import { Issue } from '../issueProvider';
2
+ import { Account, CreateCommitInput, CursorPageInput, EnterpriseOptions, GetRepoErrorData, GetRepoInput, GitLabel, GitMergeStrategy, GitMilestone, GitProvider, GitPullRequest, GitPullRequestReviewComment, GitPullRequestReviewState, GitRepository, Organization, SetAccountInput, SetLabelInput, SetMilestoneInput, SetPullRequestInput } from '../gitProvider';
3
+ import { Issue, IssueProvider, SetIssueInput } from '../issueProvider';
4
4
  import { EnterpriseProvider } from '../provider';
5
- import { FetchIssuesData, FetchPullRequestsData } from './githubTypes';
6
- export declare class GitHub extends EnterpriseProvider implements GitProvider {
5
+ import { FetchIssuesData, FetchPullRequestsData, GitHubIssueCloseReason } from './githubTypes';
6
+ export declare class GitHub extends EnterpriseProvider implements GitProvider, IssueProvider {
7
7
  private _scopesCache;
8
8
  private _enterpriseVersionsCache;
9
9
  private getScopes;
@@ -34,6 +34,16 @@ export declare class GitHub extends EnterpriseProvider implements GitProvider {
34
34
  avatarUrl: string;
35
35
  };
36
36
  }>;
37
+ createCommit(input: CreateCommitInput, options?: EnterpriseOptions): Promise<{
38
+ data: {
39
+ name: string;
40
+ commit: {
41
+ authoredDate: Date;
42
+ committedDate: Date;
43
+ oid: string;
44
+ };
45
+ };
46
+ }>;
37
47
  /**
38
48
  * Note: 'email' is only returned if the token has the required scope.
39
49
  */
@@ -210,30 +220,50 @@ export declare class GitHub extends EnterpriseProvider implements GitProvider {
210
220
  data: GitPullRequest | null;
211
221
  }>;
212
222
  closePullRequest(input: {
213
- pullRequestGraphQLId: string;
223
+ pullRequest: SetPullRequestInput;
214
224
  }, options?: EnterpriseOptions): Promise<void>;
215
225
  mergePullRequest(input: {
216
- pullRequestGraphQLId: string;
217
- expectedSourceSha: string;
226
+ pullRequest: {
227
+ headRef: {
228
+ oid: string | null;
229
+ } | null;
230
+ } & SetPullRequestInput;
218
231
  mergeStrategy?: GitMergeStrategy.MergeCommit | GitMergeStrategy.Rebase | GitMergeStrategy.Squash;
219
232
  }, options?: EnterpriseOptions): Promise<void>;
220
233
  setPullRequestMilestone(input: {
221
- pullRequestGraphQLId: string;
222
- milestoneGraphQLId: string | null;
234
+ pullRequest: SetPullRequestInput;
235
+ milestone: SetMilestoneInput | null;
223
236
  }, options?: EnterpriseOptions): Promise<void>;
224
237
  private markPullRequestReadyForReview;
225
238
  private convertPullRequestToDraft;
226
239
  setPullRequestAsDraft(input: {
227
- pullRequestGraphQLId: string;
240
+ pullRequest: SetPullRequestInput;
228
241
  isDraft: boolean;
229
242
  }, options?: EnterpriseOptions): Promise<void>;
230
243
  setPullRequestReviewers(input: {
231
- pullRequestGraphQLId: string;
232
- reviewerGraphQLIds: string[];
244
+ pullRequest: {
245
+ reviews: {
246
+ reviewer: {
247
+ graphQLId?: string;
248
+ };
249
+ state: GitPullRequestReviewState;
250
+ }[] | null;
251
+ } & SetPullRequestInput;
252
+ reviewers: SetAccountInput[];
253
+ }, options?: EnterpriseOptions): Promise<void>;
254
+ reRequestPullRequestReviews(input: {
255
+ pullRequest: {
256
+ reviews: {
257
+ reviewer: {
258
+ graphQLId?: string;
259
+ };
260
+ }[] | null;
261
+ } & SetPullRequestInput;
262
+ reviewers: SetAccountInput[];
233
263
  }, options?: EnterpriseOptions): Promise<void>;
234
264
  setPullRequestAssignees(input: {
235
- pullRequestGraphQLId: string;
236
- assigneeGraphQLIds: string[];
265
+ pullRequest: SetPullRequestInput;
266
+ assignees: SetAccountInput[];
237
267
  }, options?: EnterpriseOptions): Promise<void>;
238
268
  getReviewsForPullRequest(input: {
239
269
  repo: GetRepoInput;
@@ -266,8 +296,8 @@ export declare class GitHub extends EnterpriseProvider implements GitProvider {
266
296
  data: Issue[];
267
297
  }>;
268
298
  setPullRequestLabels(input: {
269
- pullRequestGraphQLId: string;
270
- labelGraphQLIds: string[];
299
+ pullRequest: SetPullRequestInput;
300
+ labels: SetLabelInput[];
271
301
  }, options?: EnterpriseOptions): Promise<void>;
272
302
  getIssuesForRepos(input: FetchIssuesData & CursorPageInput, options?: EnterpriseOptions): Promise<{
273
303
  pageInfo: {
@@ -276,25 +306,27 @@ export declare class GitHub extends EnterpriseProvider implements GitProvider {
276
306
  };
277
307
  data: Issue[];
278
308
  }>;
279
- private closeIssueWithReason;
280
- private closeIssueWithoutReason;
281
- private reopenIssue;
282
- setIssueStatus(input: {
283
- issueGraphQLId: string;
284
- status: 'OPEN' | 'CLOSED';
285
- closeReason?: 'COMPLETED' | 'NOT_PLANNED';
309
+ closeIssueWithReason(input: {
310
+ issue: SetIssueInput;
311
+ reason: GitHubIssueCloseReason;
312
+ }, options?: EnterpriseOptions): Promise<void>;
313
+ closeIssue(input: {
314
+ issue: SetIssueInput;
315
+ }, options?: EnterpriseOptions): Promise<void>;
316
+ reOpenIssue(input: {
317
+ issue: SetIssueInput;
286
318
  }, options?: EnterpriseOptions): Promise<void>;
287
319
  setIssueLabels(input: {
288
- issueGraphQLId: string;
289
- labelGraphQLIds: string[];
320
+ issue: SetIssueInput;
321
+ labels: SetLabelInput[];
290
322
  }, options?: EnterpriseOptions): Promise<void>;
291
323
  setIssueMilestone(input: {
292
- issueGraphQLId: string;
293
- milestoneGraphQLId: string | null;
324
+ issue: SetIssueInput;
325
+ milestone: SetMilestoneInput | null;
294
326
  }, options?: EnterpriseOptions): Promise<void>;
295
327
  setIssueAssignees(input: {
296
- issueGraphQLId: string;
297
- assigneeGraphQLIds: string[];
328
+ issue: SetIssueInput;
329
+ assignees: SetAccountInput[];
298
330
  }, options?: EnterpriseOptions): Promise<void>;
299
331
  getMilestonesForRepo(input: {
300
332
  repo: GetRepoInput;
@@ -1,4 +1,8 @@
1
1
  import { GetRepoInput } from '../gitProvider';
2
+ export declare enum GitHubIssueCloseReason {
3
+ Completed = "COMPLETED",
4
+ NotPlanned = "NOT_PLANNED"
5
+ }
2
6
  export declare enum GraphQLViewerPermission {
3
7
  ADMIN = "ADMIN",
4
8
  MAINTAIN = "MAINTAIN",