forgejo-runner-act/pkg/exprparser
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 Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
functions.go Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
functions_test.go Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00
interpreter.go refactor: default empty if: statement to if: success() in evaluator & remove FixIfStatement() (#990) 2022-02-15 20:03:00 +00:00
interpreter_test.go Refactor expression evaluator to use parser from actionlint package (#908) 2022-01-21 08:07:20 -08:00