mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-11-24 01:53:51 +08:00
30 lines
608 B
TypeScript
30 lines
608 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;
|
|
/**
|
|
* Hydrate the context from the environment
|
|
*/
|
|
constructor();
|
|
get issue(): {
|
|
owner: string;
|
|
repo: string;
|
|
number: number;
|
|
};
|
|
get repo(): {
|
|
owner: string;
|
|
repo: string;
|
|
};
|
|
}
|