1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-30 19:22:09 +00:00
forgejo-runner/act/jobparser
Mathieu Fenniak 56ef60060b
feat: support evaluating workflow-level concurrency blocks in jobparser (#1026)
- Changes `EvaluateConcurrency` to `EvaluateWorkflowConcurrency`, which has no job-related arguments
- Changes gitContext to be sent as an object rather than a map
- Allows `nil` to be returned for `cancelInProgress`, which indicates that the value wasn't specified in the input yaml -- required for distinguishing the `cancel-in-progress: false` case from not being specified at all.

ReadWorkflowRawConcurrency & EvaluateWorkflowConcurrency were never used in forgejo yet, so this shouldn't break the forgejo build.

Prerequisite for https://codeberg.org/forgejo/forgejo/pulls/9434.

<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-->
- features
  - [PR](https://code.forgejo.org/forgejo/runner/pulls/1026): <!--number 1026 --><!--line 0 --><!--description ZmVhdDogc3VwcG9ydCBldmFsdWF0aW5nIHdvcmtmbG93LWxldmVsIGNvbmN1cnJlbmN5IGJsb2NrcyBpbiBqb2JwYXJzZXI=-->feat: support evaluating workflow-level concurrency blocks in jobparser<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1026
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net>
Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net>
2025-09-27 04:37:36 +00:00
..
testdata feat: support evaluation of concurrency clauses in runner (#827) 2025-08-07 21:47:01 +00:00
evaluator.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
interpeter.go feat: support evaluating workflow-level concurrency blocks in jobparser (#1026) 2025-09-27 04:37:36 +00:00
jobparser.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
jobparser_test.go chore: replace gopkg.in/yaml.v3 with go.yaml.in/yaml/v3 (#888) 2025-08-20 20:49:49 +00:00
model.go feat: support evaluating workflow-level concurrency blocks in jobparser (#1026) 2025-09-27 04:37:36 +00:00
model_test.go feat: support evaluating workflow-level concurrency blocks in jobparser (#1026) 2025-09-27 04:37:36 +00:00
testdata_test.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00