Notably, this gets us `@actions/github` 6.0.1, which is necessary for `github.context.runAttempt` (so I have also updated `package.json` accordingly). On that note... great job following semver, GitHub! Between this and the non-breaking major version change on `@actions/cache`, I'm starting to feel like nobody on the Actions team understands how software versioning works.
34 lines
699 B
TypeScript
34 lines
699 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;
|
|
runAttempt: number;
|
|
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;
|
|
};
|
|
}
|