1 | import { GitHubRepoRef } from "../operations/common/GitHubRepoRef";
|
2 | import { RepoRef } from "../operations/common/RepoId";
|
3 | import { SourceLocation } from "../operations/common/SourceLocation";
|
4 | import { HttpResponse } from "../spi/http/httpClient";
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare function deepLink(grr: GitHubRepoRef, sourceLocation: SourceLocation): string;
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare function hasFile(token: string, user: string, repo: string, path: string): Promise<boolean>;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export declare function fileContent(token: string, user: string, repo: string, path: string): Promise<string | undefined>;
|
31 | export interface Issue {
|
32 | title: string;
|
33 | body: string;
|
34 | state?: "open" | "closed";
|
35 | assignee?: string;
|
36 | milestone?: number;
|
37 | labels?: string[];
|
38 | assignees?: string[];
|
39 | }
|
40 | export declare function raiseIssue(token: string, rr: RepoRef, issue: Issue): Promise<HttpResponse<any>>;
|
41 |
|
42 |
|
43 |
|
44 | export interface Comment {
|
45 | body: string;
|
46 | path: string;
|
47 | |
48 |
|
49 |
|
50 | position: number;
|
51 | }
|
52 | export declare function createCommitComment(token: string, rr: GitHubRepoRef, comment: Comment): Promise<HttpResponse<any>>;
|
53 | export declare function createRepo(token: string, rr: GitHubRepoRef, description: string, priv: boolean): Promise<HttpResponse<any>>;
|
54 |
|
\ | No newline at end of file |