@factorialco/gat
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -1,3 +0,3 @@ | ||
export declare type EventName = "push" | "pull_request" | "pull_request_review" | "workflow_run" | "workflow_dispatch" | "schedule" | "pull_request_target" | "merge_group"; | ||
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 : T extends "workflow_dispatch" ? WorkflowDispatchEventOptions : T extends "schedule" ? ScheduleEventOptions : T extends "merge_group" ? MergeGroupEventOptions : never; | ||
export declare type EventName = "push" | "pull_request" | "pull_request_review" | "workflow_run" | "workflow_dispatch" | "schedule" | "pull_request_target"; | ||
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 : T extends "workflow_dispatch" ? WorkflowDispatchEventOptions : T extends "schedule" ? ScheduleEventOptions : never; | ||
interface PushEventOptions { | ||
@@ -23,3 +23,3 @@ branches?: string[]; | ||
required?: boolean; | ||
type?: "choice" | "boolean"; | ||
type?: "choice" | "boolean" | "string"; | ||
options?: string[]; | ||
@@ -34,5 +34,2 @@ default?: string | boolean; | ||
}>; | ||
interface MergeGroupEventOptions { | ||
types?: Array<"checks_requested">; | ||
} | ||
export interface Event { | ||
@@ -39,0 +36,0 @@ name: EventName; |
@@ -33,3 +33,3 @@ export interface ConcurrencyGroup { | ||
concurrency?: ConcurrencyGroup; | ||
matrix?: Matrix; | ||
matrix?: Matrix | string; | ||
steps: Step[]; | ||
@@ -36,0 +36,0 @@ outputs?: Record<string, string>; |
@@ -85,3 +85,3 @@ "use strict"; | ||
"fail-fast": false, | ||
matrix: { | ||
matrix: typeof matrix === 'string' ? matrix : { | ||
...Object.fromEntries(matrix.elements.map(({ id, options }) => [id, options])), | ||
@@ -88,0 +88,0 @@ include: matrix.extra, |
{ | ||
"name": "@factorialco/gat", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Write your GitHub Actions workflows using TypeScript", | ||
@@ -5,0 +5,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24827
571