github-pages-deploy-action/node_modules/@actions/github/lib/context.d.ts

27 lines
549 B
TypeScript
Raw Normal View History

2019-11-19 20:48:29 +08:00
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;
/**
* Hydrate the context from the environment
*/
constructor();
2020-01-20 05:29:54 +08:00
get issue(): {
2019-11-19 20:48:29 +08:00
owner: string;
repo: string;
number: number;
};
2020-01-20 05:29:54 +08:00
get repo(): {
2019-11-19 20:48:29 +08:00
owner: string;
repo: string;
};
}