BuildReactionConditionForTargets creates a condition tree for reactions scoped to target groups.
(includeIssues bool, includePullRequests bool, includeDiscussions bool, includeWorkflowDispatch bool)
| 66 | |
| 67 | // BuildReactionConditionForTargets creates a condition tree for reactions scoped to target groups. |
| 68 | func BuildReactionConditionForTargets(includeIssues bool, includePullRequests bool, includeDiscussions bool, includeWorkflowDispatch bool) ConditionNode { |
| 69 | expressionBuilderLog.Printf( |
| 70 | "Building reaction condition: includeIssues=%t includePullRequests=%t includeDiscussions=%t includeWorkflowDispatch=%t", |
| 71 | includeIssues, |
| 72 | includePullRequests, |
| 73 | includeDiscussions, |
| 74 | includeWorkflowDispatch, |
| 75 | ) |
| 76 | return buildReactionLikeCondition(includeIssues, includePullRequests, includeDiscussions, includeWorkflowDispatch) |
| 77 | } |
| 78 | |
| 79 | // BuildStatusCommentCondition creates a condition tree for activation status comments. |
| 80 | // When includeIssues is false, issues and issue_comment events are excluded. |