mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
33 lines
675 B
TypeScript
33 lines
675 B
TypeScript
|
import { WebhookPayload } from './interfaces';
|
||
|
export declare class Context {
|
||
|
/**
|
||
|
* Webhook payload object that triggered the workflow
|
||
|
*/
|
||
|
payload: WebhookPayload;
|
||
|
eventName: string;
|
||
|
sha: string;
|
||
|
ref: string;
|
||
|
workflow: string;
|
||
|
action: string;
|
||
|
actor: string;
|
||
|
job: string;
|
||
|
runNumber: number;
|
||
|
runId: number;
|
||
|
apiUrl: string;
|
||
|
serverUrl: string;
|
||
|
graphqlUrl: string;
|
||
|
/**
|
||
|
* Hydrate the context from the environment
|
||
|
*/
|
||
|
constructor();
|
||
|
get issue(): {
|
||
|
owner: string;
|
||
|
repo: string;
|
||
|
number: number;
|
||
|
};
|
||
|
get repo(): {
|
||
|
owner: string;
|
||
|
repo: string;
|
||
|
};
|
||
|
}
|