MCPcopy Create free account
hub / github.com/github/gh-aw / BuildStatusCommentCondition

Function BuildStatusCommentCondition

pkg/workflow/expression_builder.go:83–92  ·  view source on GitHub ↗

BuildStatusCommentCondition creates a condition tree for activation status comments. When includeIssues is false, issues and issue_comment events are excluded. When includePullRequests is false, pull_request, pull_request_review, and pull_request_review_comment events are excluded. When includeDiscu

(includeIssues bool, includePullRequests bool, includeDiscussions bool, includeWorkflowDispatch bool)

Source from the content-addressed store, hash-verified

81// When includePullRequests is false, pull_request, pull_request_review, and pull_request_review_comment events are excluded.
82// When includeDiscussions is false, discussion and discussion_comment events are excluded.
83func BuildStatusCommentCondition(includeIssues bool, includePullRequests bool, includeDiscussions bool, includeWorkflowDispatch bool) ConditionNode {
84 expressionBuilderLog.Printf(
85 "Building status comment condition: includeIssues=%t includePullRequests=%t includeDiscussions=%t includeWorkflowDispatch=%t",
86 includeIssues,
87 includePullRequests,
88 includeDiscussions,
89 includeWorkflowDispatch,
90 )
91 return buildReactionLikeCondition(includeIssues, includePullRequests, includeDiscussions, includeWorkflowDispatch)
92}
93
94func buildReactionLikeCondition(includeIssues bool, includePullRequests bool, includeDiscussions bool, includeWorkflowDispatch bool) ConditionNode {
95 if !includeIssues && !includePullRequests && !includeDiscussions {

Calls 2

PrintfMethod · 0.45