@factorialco/gat 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/event.d.ts +10 -3
  2. package/package.json +1 -1
package/dist/event.d.ts CHANGED
@@ -1,13 +1,20 @@
1
- export declare type EventName = "push" | "pull_request";
2
- export declare type EventOptions<T extends EventName> = T extends "push" ? PushEventOptions : T extends "pull_request" ? PullRequestEventOptions : never;
1
+ export declare type EventName = "push" | "pull_request" | "pull_request_review" | "workflow_run";
2
+ export declare type EventOptions<T extends EventName> = T extends "push" ? PushEventOptions : T extends "pull_request" ? PullRequestEventOptions : T extends "pull_request_review" ? PullRequestReviewEventOptions : T extends "workflow_run" ? WorkflowRunEventOptions : never;
3
3
  interface PushEventOptions {
4
4
  branches?: string[];
5
5
  paths?: string[];
6
6
  }
7
7
  interface PullRequestEventOptions {
8
- types?: Array<"opened" | "reopened" | "synchronize">;
8
+ types?: Array<"opened" | "reopened" | "synchronize" | "labeled" | "unlabeled">;
9
9
  paths?: string[];
10
10
  }
11
+ interface PullRequestReviewEventOptions {
12
+ types?: Array<"submitted">;
13
+ }
14
+ interface WorkflowRunEventOptions {
15
+ workflows?: string[];
16
+ types?: Array<"completed">;
17
+ }
11
18
  export interface Event {
12
19
  name: EventName;
13
20
  options?: EventOptions<EventName>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/gat",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "TODO",
5
5
  "bin": {
6
6
  "gat": "dist/cli.js"