From bc3ed88d9a95be6382b71ea3d11368ac08fb9f27 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Thu, 30 Jul 2026 11:23:22 +0200 Subject: [PATCH] read the task commit from task_info.yaml --- CHANGELOG.md | 2 ++ src/reporting/get_task_info/script.R | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16d6e18e7..095576c07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,8 @@ ## Bug fixes +- Read the task commit from `task_info.yaml` in `get_task_info`, instead of always writing a null (PR #943). + - Fix metric direction (`maximize`/`minimize`) handling in `generate_qc` and `render_report` components of the `process_task_results` workflow (PR #936). - Fix bug in metric maximize handling and add raw scores table to the benchmark report (PR #937). diff --git a/src/reporting/get_task_info/script.R b/src/reporting/get_task_info/script.R index eedf4557e..9601e97c8 100644 --- a/src/reporting/get_task_info/script.R +++ b/src/reporting/get_task_info/script.R @@ -42,7 +42,7 @@ cat("Using timestamp:", timestamp, "\n") cat("\n>>> Creating JSON list...\n") task_info_json <- list( name = jsonlite::unbox(sub("^task_", "", task_info_yaml$name)), # Remove "task_" prefix - commit = jsonlite::unbox(NA_character_), # TODO: Add when available in task_info.yaml + commit = jsonlite::unbox(task_info_yaml$commit %||% NA_character_), label = task_info_yaml$label %||% # Create label from task name if missing (