--- helper predicates ------------------------------------------------------- isBoolLiteral returns true when node is a BooleanLiteralNode with the given value.
(node ConditionNode, value bool)
| 80 | |
| 81 | // isBoolLiteral returns true when node is a BooleanLiteralNode with the given value. |
| 82 | func isBoolLiteral(node ConditionNode, value bool) bool { |
| 83 | lit, ok := node.(*BooleanLiteralNode) |
| 84 | return ok && lit.Value == value |
| 85 | } |
| 86 | |
| 87 | // isStatusFunc returns true when node is a call to one of the GitHub Actions |
| 88 | // status-check functions: always(), success(), failure(), cancelled(). |
no outgoing calls