1 | import { AxiosPromise } from "axios";
|
2 | import { GitHubRepoRef } from "../operations/common/GitHubRepoRef";
|
3 | import { RepoRef } from "../operations/common/RepoId";
|
4 | import { SourceLocation } from "../operations/common/SourceLocation";
|
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): AxiosPromise;
|
41 | export interface GitHubRepoWebhookConfig {
|
42 | url: string;
|
43 | content_type: "json" | "form";
|
44 | secret?: string;
|
45 | insecure_ssl?: string;
|
46 | }
|
47 | export interface GitHubRepoWebhookPayload {
|
48 | name: "web";
|
49 | events: string[];
|
50 | active: boolean;
|
51 | config: GitHubRepoWebhookConfig;
|
52 | }
|
53 | export declare function addRepoWebhook(token: string, rr: GitHubRepoRef, webhookData: GitHubRepoWebhookPayload): AxiosPromise;
|
54 |
|
55 |
|
56 |
|
57 | export interface Comment {
|
58 | body: string;
|
59 | path: string;
|
60 | |
61 |
|
62 |
|
63 | position: number;
|
64 | }
|
65 | export declare function createCommitComment(token: string, rr: GitHubRepoRef, comment: Comment): AxiosPromise;
|
66 | export declare function createRepo(token: string, rr: GitHubRepoRef, description: string, priv: boolean): AxiosPromise;
|
67 |
|
\ | No newline at end of file |