1 | import { WebhookPayload } from './interfaces';
|
2 | export declare class Context {
|
3 | /**
|
4 | * Webhook payload object that triggered the workflow
|
5 | */
|
6 | payload: WebhookPayload;
|
7 | eventName: string;
|
8 | sha: string;
|
9 | ref: string;
|
10 | workflow: string;
|
11 | action: string;
|
12 | actor: string;
|
13 | job: string;
|
14 | runNumber: number;
|
15 | runId: number;
|
16 | apiUrl: string;
|
17 | serverUrl: string;
|
18 | graphqlUrl: string;
|
19 | /**
|
20 | * Hydrate the context from the environment
|
21 | */
|
22 | constructor();
|
23 | get issue(): {
|
24 | owner: string;
|
25 | repo: string;
|
26 | number: number;
|
27 | };
|
28 | get repo(): {
|
29 | owner: string;
|
30 | repo: string;
|
31 | };
|
32 | }
|