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.
19 lines
453 B
TypeScript
19 lines
453 B
TypeScript
import type { CodeGeneratorRequest, CodeGeneratorResponse } from "@bufbuild/protobuf/wkt";
|
|
/**
|
|
* Represents any code generator plugin.
|
|
*/
|
|
export interface Plugin {
|
|
/**
|
|
* Name of this code generator plugin.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* Version of this code generator plugin.
|
|
*/
|
|
version: string;
|
|
/**
|
|
* Run this plugin for the given request.
|
|
*/
|
|
run(request: CodeGeneratorRequest): CodeGeneratorResponse;
|
|
}
|