github-actions-0.1.1.0: Github Actions
Copyright(c) 2025 Bellroy Pty Ltd
LicenseBSD-3-Clause
MaintainerBellroy Tech Team <haskell@bellroy.com>
Safe HaskellNone
LanguageHaskell2010

Language.Github.Actions.Workflow.Trigger

Description

This module provides comprehensive support for GitHub Actions workflow triggers, which determine when workflows should run.

Workflow triggers respond to various GitHub events such as pushes, pull requests, issue updates, scheduled times, and external repository dispatch events. Each trigger type can be configured with specific activity types and filtering criteria.

The main types include:

Example usage:

import Language.Github.Actions.Workflow.Trigger

-- Trigger on push to main branch
pushTrigger :: WorkflowTrigger
pushTrigger = PushTrigger $ PushTriggerAttributes
  { branches = Just ("main" :| [])
  , branchesIgnore = Nothing
  , paths = Nothing
  , pathsIgnore = Nothing
  , tags = Nothing
  }

-- Trigger on pull request opened or synchronized
prTrigger :: WorkflowTrigger
prTrigger = PullRequestTrigger $ PullRequestTriggerAttributes
  { activityTypes = Just (PullRequestOpened :| [PullRequestSynchronize])
  , branches = Nothing
  , branchesIgnore = Nothing
  , paths = Nothing
  , pathsIgnore = Nothing
  }

For more information about GitHub Actions events and triggers, see: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows

Synopsis

Documentation

data BranchProtectionRuleActivityType Source #

Instances

Instances details
FromJSON BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep BranchProtectionRuleActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep BranchProtectionRuleActivityType = D1 ('MetaData "BranchProtectionRuleActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "BranchProtectionRuleCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BranchProtectionRuleDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BranchProtectionRuleEdited" 'PrefixI 'False) (U1 :: Type -> Type)))
Show BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep BranchProtectionRuleActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep BranchProtectionRuleActivityType = D1 ('MetaData "BranchProtectionRuleActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "BranchProtectionRuleCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BranchProtectionRuleDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BranchProtectionRuleEdited" 'PrefixI 'False) (U1 :: Type -> Type)))

data CheckRunActivityType Source #

Instances

Instances details
FromJSON CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep CheckRunActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep CheckRunActivityType = D1 ('MetaData "CheckRunActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((C1 ('MetaCons "CheckRunCompleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CheckRunCreated" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CheckRunRequestedAction" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CheckRunRerequested" 'PrefixI 'False) (U1 :: Type -> Type)))
Show CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep CheckRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep CheckRunActivityType = D1 ('MetaData "CheckRunActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((C1 ('MetaCons "CheckRunCompleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CheckRunCreated" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CheckRunRequestedAction" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CheckRunRerequested" 'PrefixI 'False) (U1 :: Type -> Type)))

data DiscussionActivityType Source #

Instances

Instances details
FromJSON DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep DiscussionActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep DiscussionActivityType = D1 ('MetaData "DiscussionActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (((C1 ('MetaCons "DiscussionAnswered" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DiscussionCategoryChanged" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionCreated" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "DiscussionDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DiscussionEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionLabeled" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "DiscussionLocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DiscussionPinned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionTransferred" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "DiscussionUnanswered" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionUnlabeled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DiscussionUnlocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionUnpinned" 'PrefixI 'False) (U1 :: Type -> Type)))))
Show DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep DiscussionActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep DiscussionActivityType = D1 ('MetaData "DiscussionActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (((C1 ('MetaCons "DiscussionAnswered" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DiscussionCategoryChanged" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionCreated" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "DiscussionDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DiscussionEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionLabeled" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "DiscussionLocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DiscussionPinned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionTransferred" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "DiscussionUnanswered" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionUnlabeled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DiscussionUnlocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionUnpinned" 'PrefixI 'False) (U1 :: Type -> Type)))))

data DiscussionCommentActivityType Source #

Instances

Instances details
FromJSON DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep DiscussionCommentActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep DiscussionCommentActivityType = D1 ('MetaData "DiscussionCommentActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "DiscussionCommentCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DiscussionCommentDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionCommentEdited" 'PrefixI 'False) (U1 :: Type -> Type)))
Show DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep DiscussionCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep DiscussionCommentActivityType = D1 ('MetaData "DiscussionCommentActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "DiscussionCommentCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DiscussionCommentDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionCommentEdited" 'PrefixI 'False) (U1 :: Type -> Type)))

data IssueCommentActivityType Source #

Instances

Instances details
FromJSON IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep IssueCommentActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep IssueCommentActivityType = D1 ('MetaData "IssueCommentActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "IssueCommentCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IssueCommentDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssueCommentEdited" 'PrefixI 'False) (U1 :: Type -> Type)))
Show IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep IssueCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep IssueCommentActivityType = D1 ('MetaData "IssueCommentActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "IssueCommentCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IssueCommentDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssueCommentEdited" 'PrefixI 'False) (U1 :: Type -> Type)))

data IssuesActivityType Source #

Instances

Instances details
FromJSON IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep IssuesActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep IssuesActivityType = D1 ('MetaData "IssuesActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((((C1 ('MetaCons "IssuesAssigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesClosed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IssuesDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesDemilestoned" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "IssuesEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesLabeled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IssuesLocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesMilestoned" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "IssuesOpened" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesPinned" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IssuesReopened" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesTransferred" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "IssuesUnassigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesUnlabeled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IssuesUnlocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesUnpinned" 'PrefixI 'False) (U1 :: Type -> Type)))))
Show IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep IssuesActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep IssuesActivityType = D1 ('MetaData "IssuesActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((((C1 ('MetaCons "IssuesAssigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesClosed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IssuesDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesDemilestoned" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "IssuesEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesLabeled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IssuesLocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesMilestoned" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "IssuesOpened" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesPinned" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IssuesReopened" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesTransferred" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "IssuesUnassigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesUnlabeled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "IssuesUnlocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssuesUnpinned" 'PrefixI 'False) (U1 :: Type -> Type)))))

data LabelActivityType Source #

Instances

Instances details
FromJSON LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep LabelActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep LabelActivityType = D1 ('MetaData "LabelActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "LabelCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LabelDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LabelEdited" 'PrefixI 'False) (U1 :: Type -> Type)))
Show LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep LabelActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep LabelActivityType = D1 ('MetaData "LabelActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "LabelCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LabelDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LabelEdited" 'PrefixI 'False) (U1 :: Type -> Type)))

data MilestoneActivityType Source #

Instances

Instances details
FromJSON MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep MilestoneActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep MilestoneActivityType = D1 ('MetaData "MilestoneActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((C1 ('MetaCons "MilestoneCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MilestoneClosed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MilestoneDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MilestoneEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MilestoneOpened" 'PrefixI 'False) (U1 :: Type -> Type))))
Show MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep MilestoneActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep MilestoneActivityType = D1 ('MetaData "MilestoneActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((C1 ('MetaCons "MilestoneCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MilestoneClosed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MilestoneDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MilestoneEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MilestoneOpened" 'PrefixI 'False) (U1 :: Type -> Type))))

data PullRequestActivityType Source #

Activity types for pull request trigger events.

These specify which pull request activities should trigger the workflow. Common combinations include opened/synchronized for CI workflows, or closed for deployment workflows.

Example usage:

-- Trigger on pull request creation and updates
ciTrigger :: PullRequestActivityType
ciTrigger = PullRequestTrigger $ PullRequestTriggerAttributes
 { activityTypes = Just (PullRequestOpened :| [PullRequestSynchronize])
 , branches = Nothing
 , branchesIgnore = Nothing
 , paths = Nothing
 , pathsIgnore = Nothing
 }

For more details, see: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request

Constructors

PullRequestAssigned

Pull request was assigned to someone

PullRequestAutoMergeDisabled

Auto-merge was disabled

PullRequestAutoMergeEnabled

Auto-merge was enabled

PullRequestClosed

Pull request was closed

PullRequestConvertedToDraft

Pull request was converted to draft

PullRequestDemilestoned

Milestone was removed from pull request

PullRequestDequeued

Pull request was removed from merge queue

PullRequestEdited

Pull request title or body was edited

PullRequestEnqueued

Pull request was added to merge queue

PullRequestLabeled

Label was added to pull request

PullRequestLocked

Pull request conversation was locked

PullRequestMilestoned

Milestone was added to pull request

PullRequestOpened

Pull request was opened

PullRequestReadyForReview

Draft pull request was marked ready for review

PullRequestReopened

Pull request was reopened

PullRequestReviewRequestRemoved

Review request was removed

PullRequestReviewRequested

Review was requested

PullRequestSynchronize

Pull request's head branch was updated

PullRequestUnassigned

Pull request was unassigned

PullRequestUnlabeled

Label was removed from pull request

PullRequestUnlocked

Pull request conversation was unlocked

Instances

Instances details
FromJSON PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep PullRequestActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestActivityType = D1 ('MetaData "PullRequestActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((((C1 ('MetaCons "PullRequestAssigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestAutoMergeDisabled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestAutoMergeEnabled" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestClosed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestConvertedToDraft" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PullRequestDemilestoned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestDequeued" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestEnqueued" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestLabeled" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "PullRequestLocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestMilestoned" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestOpened" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestReadyForReview" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestReopened" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PullRequestReviewRequestRemoved" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestReviewRequested" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestSynchronize" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "PullRequestUnassigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestUnlabeled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestUnlocked" 'PrefixI 'False) (U1 :: Type -> Type))))))
Show PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestActivityType = D1 ('MetaData "PullRequestActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((((C1 ('MetaCons "PullRequestAssigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestAutoMergeDisabled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestAutoMergeEnabled" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestClosed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestConvertedToDraft" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PullRequestDemilestoned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestDequeued" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestEnqueued" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestLabeled" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "PullRequestLocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestMilestoned" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestOpened" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestReadyForReview" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestReopened" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PullRequestReviewRequestRemoved" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestReviewRequested" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestSynchronize" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "PullRequestUnassigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestUnlabeled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestUnlocked" 'PrefixI 'False) (U1 :: Type -> Type))))))

data PullRequestReviewActivityType Source #

Instances

Instances details
FromJSON PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep PullRequestReviewActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestReviewActivityType = D1 ('MetaData "PullRequestReviewActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PullRequestReviewDismissed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestReviewEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestReviewSubmitted" 'PrefixI 'False) (U1 :: Type -> Type)))
Show PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestReviewActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestReviewActivityType = D1 ('MetaData "PullRequestReviewActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PullRequestReviewDismissed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestReviewEdited" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestReviewSubmitted" 'PrefixI 'False) (U1 :: Type -> Type)))

data PullRequestReviewCommentActivityType Source #

Instances

Instances details
FromJSON PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep PullRequestReviewCommentActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestReviewCommentActivityType = D1 ('MetaData "PullRequestReviewCommentActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PullRequestReviewCommentCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestReviewCommentDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestReviewCommentEdited" 'PrefixI 'False) (U1 :: Type -> Type)))
Show PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestReviewCommentActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestReviewCommentActivityType = D1 ('MetaData "PullRequestReviewCommentActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PullRequestReviewCommentCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestReviewCommentDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestReviewCommentEdited" 'PrefixI 'False) (U1 :: Type -> Type)))

data PullRequestTargetActivityType Source #

Instances

Instances details
FromJSON PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep PullRequestTargetActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTargetActivityType = D1 ('MetaData "PullRequestTargetActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((((C1 ('MetaCons "PullRequestTargetAssigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetAutoMergeDisabled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTargetAutoMergeEnabled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetClosed" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PullRequestTargetConvertedToDraft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetEdited" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTargetLabeled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetLocked" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "PullRequestTargetOpened" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetReadyForReview" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTargetReopened" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetReviewRequestRemoved" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PullRequestTargetReviewRequested" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetSynchronize" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTargetUnassigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestTargetUnlabeled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetUnlocked" 'PrefixI 'False) (U1 :: Type -> Type))))))
Show PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTargetActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTargetActivityType = D1 ('MetaData "PullRequestTargetActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((((C1 ('MetaCons "PullRequestTargetAssigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetAutoMergeDisabled" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTargetAutoMergeEnabled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetClosed" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PullRequestTargetConvertedToDraft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetEdited" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTargetLabeled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetLocked" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "PullRequestTargetOpened" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetReadyForReview" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTargetReopened" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetReviewRequestRemoved" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PullRequestTargetReviewRequested" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetSynchronize" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTargetUnassigned" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PullRequestTargetUnlabeled" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PullRequestTargetUnlocked" 'PrefixI 'False) (U1 :: Type -> Type))))))

data PullRequestTargetTriggerAttributes Source #

Instances

Instances details
FromJSON PullRequestTargetTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON PullRequestTargetTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic PullRequestTargetTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep PullRequestTargetTriggerAttributes 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTargetTriggerAttributes = D1 ('MetaData "PullRequestTargetTriggerAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PullRequestTargetTriggerAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activityTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty PullRequestTargetActivityType))) :*: S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "branchesIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "paths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "pathsIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))))))
Show PullRequestTargetTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq PullRequestTargetTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord PullRequestTargetTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTargetTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTargetTriggerAttributes = D1 ('MetaData "PullRequestTargetTriggerAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PullRequestTargetTriggerAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activityTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty PullRequestTargetActivityType))) :*: S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "branchesIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "paths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "pathsIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))))))

data PullRequestTriggerAttributes Source #

Instances

Instances details
FromJSON PullRequestTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON PullRequestTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic PullRequestTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep PullRequestTriggerAttributes 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTriggerAttributes = D1 ('MetaData "PullRequestTriggerAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PullRequestTriggerAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activityTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty PullRequestActivityType))) :*: S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "branchesIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "paths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "pathsIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))))))
Show PullRequestTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq PullRequestTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord PullRequestTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PullRequestTriggerAttributes = D1 ('MetaData "PullRequestTriggerAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PullRequestTriggerAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activityTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty PullRequestActivityType))) :*: S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "branchesIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "paths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "pathsIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))))))

data PushTriggerAttributes Source #

Configuration attributes for push trigger events.

Push triggers can be filtered by branches, paths, and tags to control exactly when the workflow should run. This allows for fine-grained control over which repository changes should initiate workflow execution.

Example usage:

-- Trigger on pushes to main or develop branches
pushMainDevelop :: PushTriggerAttributes
pushMainDevelop = PushTriggerAttributes
 { branches = Just ("main" :| ["develop"])
 , branchesIgnore = Nothing
 , paths = Nothing
 , pathsIgnore = Nothing
 , tags = Nothing
 }

-- Trigger on pushes to docs directory, ignoring gh-pages
pushDocsOnly :: PushTriggerAttributes
pushDocsOnly = PushTriggerAttributes
 { branches = Nothing
 , branchesIgnore = Just ("gh-pages" :| [])
 , paths = Just ("docs/**" :| [])
 , pathsIgnore = Nothing
 , tags = Nothing
 }

For more details, see: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#push

Constructors

PushTriggerAttributes 

Fields

Instances

Instances details
FromJSON PushTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON PushTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic PushTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep PushTriggerAttributes 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PushTriggerAttributes = D1 ('MetaData "PushTriggerAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PushTriggerAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "branchesIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "paths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "pathsIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))))))
Show PushTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq PushTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord PushTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PushTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep PushTriggerAttributes = D1 ('MetaData "PushTriggerAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "PushTriggerAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "branchesIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "paths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: (S1 ('MetaSel ('Just "pathsIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))))))

data RegistryPackageActivityType Source #

Instances

Instances details
FromJSON RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep RegistryPackageActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep RegistryPackageActivityType = D1 ('MetaData "RegistryPackageActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "RegistryPackagePublished" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RegistryPackageUpdated" 'PrefixI 'False) (U1 :: Type -> Type))
Show RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep RegistryPackageActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep RegistryPackageActivityType = D1 ('MetaData "RegistryPackageActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "RegistryPackagePublished" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RegistryPackageUpdated" 'PrefixI 'False) (U1 :: Type -> Type))

data ReleaseActivityType Source #

Instances

Instances details
FromJSON ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep ReleaseActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep ReleaseActivityType = D1 ('MetaData "ReleaseActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((C1 ('MetaCons "ReleaseCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ReleaseDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReleaseEdited" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ReleasePrereleased" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReleasePublished" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ReleaseReleased" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReleaseUnpublished" 'PrefixI 'False) (U1 :: Type -> Type))))
Show ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep ReleaseActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep ReleaseActivityType = D1 ('MetaData "ReleaseActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((C1 ('MetaCons "ReleaseCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ReleaseDeleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReleaseEdited" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ReleasePrereleased" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReleasePublished" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ReleaseReleased" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReleaseUnpublished" 'PrefixI 'False) (U1 :: Type -> Type))))

data WorkflowCallAttributes Source #

Constructors

WorkflowCallAttributes 

Fields

Instances

Instances details
FromJSON WorkflowCallAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON WorkflowCallAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic WorkflowCallAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Show WorkflowCallAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq WorkflowCallAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord WorkflowCallAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowCallAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

newtype WorkflowDispatchAttributes Source #

Instances

Instances details
FromJSON WorkflowDispatchAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON WorkflowDispatchAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic WorkflowDispatchAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep WorkflowDispatchAttributes 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchAttributes = D1 ('MetaData "WorkflowDispatchAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'True) (C1 ('MetaCons "WorkflowDispatchAttributes" 'PrefixI 'True) (S1 ('MetaSel ('Just "inputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text WorkflowDispatchInput)))))
Show WorkflowDispatchAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq WorkflowDispatchAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord WorkflowDispatchAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchAttributes = D1 ('MetaData "WorkflowDispatchAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'True) (C1 ('MetaCons "WorkflowDispatchAttributes" 'PrefixI 'True) (S1 ('MetaSel ('Just "inputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Map Text WorkflowDispatchInput)))))

data WorkflowDispatchInput Source #

Instances

Instances details
FromJSON WorkflowDispatchInput Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON WorkflowDispatchInput Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic WorkflowDispatchInput Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep WorkflowDispatchInput 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchInput = D1 ('MetaData "WorkflowDispatchInput" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "WorkflowDispatchInput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "default_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value))) :*: (S1 ('MetaSel ('Just "required") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WorkflowDispatchInputType)))))
Show WorkflowDispatchInput Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq WorkflowDispatchInput Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord WorkflowDispatchInput Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchInput Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchInput = D1 ('MetaData "WorkflowDispatchInput" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "WorkflowDispatchInput" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "default_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value))) :*: (S1 ('MetaSel ('Just "required") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WorkflowDispatchInputType)))))

data WorkflowDispatchInputType Source #

Instances

Instances details
FromJSON WorkflowDispatchInputType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic WorkflowDispatchInputType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep WorkflowDispatchInputType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchInputType = D1 ('MetaData "WorkflowDispatchInputType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((C1 ('MetaCons "WorkflowDispatchInputTypeBoolean" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WorkflowDispatchInputTypeChoice" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Text)))) :+: (C1 ('MetaCons "WorkflowDispatchInputTypeEnvironment" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WorkflowDispatchInputTypeNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WorkflowDispatchInputTypeString" 'PrefixI 'False) (U1 :: Type -> Type))))
Show WorkflowDispatchInputType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq WorkflowDispatchInputType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord WorkflowDispatchInputType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchInputType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowDispatchInputType = D1 ('MetaData "WorkflowDispatchInputType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) ((C1 ('MetaCons "WorkflowDispatchInputTypeBoolean" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WorkflowDispatchInputTypeChoice" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Text)))) :+: (C1 ('MetaCons "WorkflowDispatchInputTypeEnvironment" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WorkflowDispatchInputTypeNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WorkflowDispatchInputTypeString" 'PrefixI 'False) (U1 :: Type -> Type))))

data WorkflowRunActivityType Source #

Instances

Instances details
FromJSON WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Bounded WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Enum WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep WorkflowRunActivityType 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowRunActivityType = D1 ('MetaData "WorkflowRunActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "WorkflowRunCompleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WorkflowRunInProgress" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WorkflowRunRequested" 'PrefixI 'False) (U1 :: Type -> Type)))
Show WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowRunActivityType Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowRunActivityType = D1 ('MetaData "WorkflowRunActivityType" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "WorkflowRunCompleted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WorkflowRunInProgress" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WorkflowRunRequested" 'PrefixI 'False) (U1 :: Type -> Type)))

data WorkflowRunTriggerAttributes Source #

Instances

Instances details
FromJSON WorkflowRunTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON WorkflowRunTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic WorkflowRunTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep WorkflowRunTriggerAttributes 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowRunTriggerAttributes = D1 ('MetaData "WorkflowRunTriggerAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "WorkflowRunTriggerAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activityTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty WorkflowRunActivityType)) :*: S1 ('MetaSel ('Just "workflows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "branchesIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))))))
Show WorkflowRunTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq WorkflowRunTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord WorkflowRunTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowRunTriggerAttributes Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowRunTriggerAttributes = D1 ('MetaData "WorkflowRunTriggerAttributes" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (C1 ('MetaCons "WorkflowRunTriggerAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "activityTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty WorkflowRunActivityType)) :*: S1 ('MetaSel ('Just "workflows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "branchesIgnore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (NonEmpty Text))))))

data WorkflowTrigger Source #

Comprehensive enumeration of all GitHub Actions workflow trigger events.

Each trigger corresponds to a specific GitHub event that can initiate a workflow run. Many triggers can be configured with activity types to specify exactly which sub-events should cause the workflow to run.

Common trigger examples:

For triggers with complex configuration, attribute types provide filtering options:

-- Push trigger with branch filtering
pushToMain :: WorkflowTrigger
pushToMain = PushTrigger $ PushTriggerAttributes
 { branches = Just ("main" :| [])
 , branchesIgnore = Nothing
 , paths = Nothing
 , pathsIgnore = Nothing
 , tags = Nothing
 }

-- Issue trigger for specific activity types
issueEvents :: WorkflowTrigger
issueEvents = IssuesTrigger (IssuesOpened :| [IssuesClosed, IssuesLabeled])

For complete event documentation, see: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows

Constructors

BranchProtectionRuleTrigger (NonEmpty BranchProtectionRuleActivityType)

Branch protection rule events

CheckRunTrigger (NonEmpty CheckRunActivityType)

Check run events

CheckSuiteCompletedTrigger

Check suite completion

CreateTrigger

Branch or tag creation

DeleteTrigger

Branch or tag deletion

DeploymentTrigger

Deployment events

DeploymentStatusTrigger

Deployment status changes

DiscussionTrigger (NonEmpty DiscussionActivityType)

Discussion events

DiscussionCommentTrigger (NonEmpty DiscussionCommentActivityType)

Discussion comment events

ForkTrigger

Repository fork events

GollumTrigger

Wiki page events

IssueCommentTrigger (NonEmpty IssueCommentActivityType)

Issue comment events

IssuesTrigger (NonEmpty IssuesActivityType)

Issue events

LabelTrigger (NonEmpty LabelActivityType)

Label events

MergeGroupChecksRequestedTrigger

Merge group check requests

MilestoneTrigger (NonEmpty MilestoneActivityType)

Milestone events

PageBuildTrigger

GitHub Pages build events

PublicTrigger

Repository publicity changes

PullRequestTrigger PullRequestTriggerAttributes

Pull request events with filtering

PullRequestReviewTrigger (NonEmpty PullRequestReviewActivityType)

Pull request review events

PullRequestReviewCommentTrigger (NonEmpty PullRequestReviewCommentActivityType)

PR review comment events

PullRequestTargetTrigger PullRequestTargetTriggerAttributes

Pull request target events with filtering

PushTrigger PushTriggerAttributes

Push events with filtering

RegistryPackageTrigger (NonEmpty RegistryPackageActivityType)

Package registry events

ReleaseTrigger (NonEmpty ReleaseActivityType)

Release events

RepositoryDispatchTrigger (NonEmpty Text)

External repository dispatch events

ScheduleTrigger (NonEmpty Text)

Scheduled events (cron expressions)

StatusTrigger

Commit status events

WatchStartedTrigger

Repository watch events

WorkflowCallTrigger WorkflowCallAttributes

Reusable workflow calls

WorkflowDispatchTrigger WorkflowDispatchAttributes

Manual workflow dispatch

WorkflowRunTrigger WorkflowRunTriggerAttributes

Workflow run events with filtering

Instances

Instances details
FromJSON WorkflowTrigger Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSON WorkflowTrigger Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

ToJSONKey WorkflowTrigger Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Generic WorkflowTrigger Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Associated Types

type Rep WorkflowTrigger 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowTrigger = D1 ('MetaData "WorkflowTrigger" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (((((C1 ('MetaCons "BranchProtectionRuleTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty BranchProtectionRuleActivityType))) :+: C1 ('MetaCons "CheckRunTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty CheckRunActivityType)))) :+: (C1 ('MetaCons "CheckSuiteCompletedTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CreateTrigger" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "DeleteTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeploymentTrigger" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DeploymentStatusTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty DiscussionActivityType)))))) :+: (((C1 ('MetaCons "DiscussionCommentTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty DiscussionCommentActivityType))) :+: C1 ('MetaCons "ForkTrigger" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GollumTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssueCommentTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty IssueCommentActivityType))))) :+: ((C1 ('MetaCons "IssuesTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty IssuesActivityType))) :+: C1 ('MetaCons "LabelTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty LabelActivityType)))) :+: (C1 ('MetaCons "MergeGroupChecksRequestedTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MilestoneTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty MilestoneActivityType))))))) :+: ((((C1 ('MetaCons "PageBuildTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PublicTrigger" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PullRequestTriggerAttributes)) :+: C1 ('MetaCons "PullRequestReviewTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty PullRequestReviewActivityType))))) :+: ((C1 ('MetaCons "PullRequestReviewCommentTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty PullRequestReviewCommentActivityType))) :+: C1 ('MetaCons "PullRequestTargetTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PullRequestTargetTriggerAttributes))) :+: (C1 ('MetaCons "PushTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PushTriggerAttributes)) :+: C1 ('MetaCons "RegistryPackageTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty RegistryPackageActivityType)))))) :+: (((C1 ('MetaCons "ReleaseTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty ReleaseActivityType))) :+: C1 ('MetaCons "RepositoryDispatchTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Text)))) :+: (C1 ('MetaCons "ScheduleTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Text))) :+: C1 ('MetaCons "StatusTrigger" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "WatchStartedTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WorkflowCallTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkflowCallAttributes))) :+: (C1 ('MetaCons "WorkflowDispatchTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkflowDispatchAttributes)) :+: C1 ('MetaCons "WorkflowRunTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkflowRunTriggerAttributes)))))))
Show WorkflowTrigger Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Eq WorkflowTrigger Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

Ord WorkflowTrigger Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowTrigger Source # 
Instance details

Defined in Language.Github.Actions.Workflow.Trigger

type Rep WorkflowTrigger = D1 ('MetaData "WorkflowTrigger" "Language.Github.Actions.Workflow.Trigger" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'False) (((((C1 ('MetaCons "BranchProtectionRuleTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty BranchProtectionRuleActivityType))) :+: C1 ('MetaCons "CheckRunTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty CheckRunActivityType)))) :+: (C1 ('MetaCons "CheckSuiteCompletedTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CreateTrigger" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "DeleteTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeploymentTrigger" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "DeploymentStatusTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DiscussionTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty DiscussionActivityType)))))) :+: (((C1 ('MetaCons "DiscussionCommentTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty DiscussionCommentActivityType))) :+: C1 ('MetaCons "ForkTrigger" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "GollumTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IssueCommentTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty IssueCommentActivityType))))) :+: ((C1 ('MetaCons "IssuesTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty IssuesActivityType))) :+: C1 ('MetaCons "LabelTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty LabelActivityType)))) :+: (C1 ('MetaCons "MergeGroupChecksRequestedTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MilestoneTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty MilestoneActivityType))))))) :+: ((((C1 ('MetaCons "PageBuildTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PublicTrigger" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PullRequestTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PullRequestTriggerAttributes)) :+: C1 ('MetaCons "PullRequestReviewTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty PullRequestReviewActivityType))))) :+: ((C1 ('MetaCons "PullRequestReviewCommentTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty PullRequestReviewCommentActivityType))) :+: C1 ('MetaCons "PullRequestTargetTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PullRequestTargetTriggerAttributes))) :+: (C1 ('MetaCons "PushTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PushTriggerAttributes)) :+: C1 ('MetaCons "RegistryPackageTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty RegistryPackageActivityType)))))) :+: (((C1 ('MetaCons "ReleaseTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty ReleaseActivityType))) :+: C1 ('MetaCons "RepositoryDispatchTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Text)))) :+: (C1 ('MetaCons "ScheduleTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty Text))) :+: C1 ('MetaCons "StatusTrigger" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "WatchStartedTrigger" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "WorkflowCallTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkflowCallAttributes))) :+: (C1 ('MetaCons "WorkflowDispatchTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkflowDispatchAttributes)) :+: C1 ('MetaCons "WorkflowRunTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WorkflowRunTriggerAttributes)))))))