task/taskfile/ast
Valentin Maerten 542fe465e9
✨ feat(output): add gitlab output mode (#2806)
Adds a new `gitlab` output style that wraps each task's output in GitLab
CI collapsible section markers. Section IDs are generated automatically
so that start and end markers always match and stay unique per
invocation — even when the same task runs multiple times in one job.

Options: `collapsed` (maps to GitLab's native `[collapsed=true]`) and
`error_only` (Task-level behavior, identical to `group.error_only`).

Also introduces `output-ci-auto` (taskrc + TASK_OUTPUT_CI_AUTO env var)
that auto-selects a CI-aware output style when a supported CI runner is
detected (currently `GITLAB_CI=true` → gitlab) and no output style is
explicitly configured. Keeps the Taskfile neutral so local devs are not
forced into CI-shaped output.

Refs #2806.
2026-04-22 14:10:55 +02:00
..
cmd.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
defer.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
dep.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
for.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
glob.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
graph.go feat: iterators (#1798) 2025-02-22 16:22:03 +00:00
include.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
location.go refactor: taskfile/ast package (#1450) 2023-12-29 20:32:03 +00:00
matrix.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
output.go ✨ feat(output): add gitlab output mode (#2806) 2026-04-22 14:10:55 +02:00
platforms.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
platforms_test.go feat: add parallel test execution to improve runtime (#1882) 2024-12-11 21:47:10 -03:00
precondition.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
precondition_test.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
prompt.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
requires.go feat(requires): support variable references in enum constraints (#2678) 2026-03-21 11:32:02 +01:00
task.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
taskfile.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
taskfile_test.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
tasks.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
var.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00
vars.go fix: pin yaml package to v3 for now (#2693) 2026-02-17 15:29:51 -03:00