From 5d002487c13efb39c7eca9a6ed5180a0d055ab74 Mon Sep 17 00:00:00 2001 From: Matthieu Muffato Date: Fri, 16 Sep 2022 14:23:51 +0100 Subject: [PATCH] Renamed the function to IM_notification to avoid confusion with weblog --- nf_core/pipeline-template/lib/NfcoreTemplate.groovy | 5 +++-- nf_core/pipeline-template/workflows/pipeline.nf | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nf_core/pipeline-template/lib/NfcoreTemplate.groovy b/nf_core/pipeline-template/lib/NfcoreTemplate.groovy index ea5f16407e..da3a9dd2cb 100755 --- a/nf_core/pipeline-template/lib/NfcoreTemplate.groovy +++ b/nf_core/pipeline-template/lib/NfcoreTemplate.groovy @@ -146,9 +146,10 @@ class NfcoreTemplate { } // - // Construct and send a web report as JSON + // Construct and send a notification to a web server as JSON + // e.g. Microsoft Teams and Slack // - public static void webreport(workflow, params, summary_params, projectDir, log) { + public static void IM_notification(workflow, params, summary_params, projectDir, log) { def hook_url = params.hook_url def summary = [:] diff --git a/nf_core/pipeline-template/workflows/pipeline.nf b/nf_core/pipeline-template/workflows/pipeline.nf index ab3f06ac1c..761113a4f0 100644 --- a/nf_core/pipeline-template/workflows/pipeline.nf +++ b/nf_core/pipeline-template/workflows/pipeline.nf @@ -122,7 +122,7 @@ workflow.onComplete { } NfcoreTemplate.summary(workflow, params, log) if (params.hook_url) { - NfcoreTemplate.webreport(workflow, params, summary_params, projectDir, log) + NfcoreTemplate.IM_notification(workflow, params, summary_params, projectDir, log) } }