act/pkg/model
Björn Brauer ff13844b86
refactor: default empty if: statement to if: success() in evaluator & remove FixIfStatement() (#990)
* refactor: default empty `if:` statement to `if: success()` in evaluator

Previously the code to default an empty `if:` statement in the yaml file
was implemented in different files in the model package.
Now an empty `if:` statement defaults to `success()` in the expression
evaluator.

* refactor: remove obsolete `FixIfStatement` functions

The introduction of the expression evaluator seems to have made these
functions obsolete, as the test case `TestRunEvent/issue-598` works even
without these functions.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-02-15 20:03:00 +00:00
..
testdata Simplify Matrix decode, add defaults for fail-fast and max-parallel, add test (#763) 2021-08-09 15:35:05 +00:00
action.go refactor: default empty if: statement to if: success() in evaluator & remove FixIfStatement() (#990) 2022-02-15 20:03:00 +00:00
github_context.go feat: try to read ref and sha from event payload if available (#889) 2022-01-21 08:10:00 -08:00
github_context_test.go feat: try to read ref and sha from event payload if available (#889) 2022-01-21 08:10:00 -08:00
job_context.go refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00
planner.go refactor: default empty if: statement to if: success() in evaluator & remove FixIfStatement() (#990) 2022-02-15 20:03:00 +00:00
planner_test.go refactor: NewWorkflowPlanner (#648) 2021-05-03 07:57:24 -07:00
step_result.go feat: add skipped status as step result (#950) 2022-01-21 08:10:26 -08:00
workflow.go Feature: uses in composite (#793) 2021-12-22 19:19:50 +00:00
workflow_test.go fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00