Skip to content

Commit

Permalink
Renamed the function to IM_notification to avoid confusion with weblog
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Oct 11, 2022
1 parent 22b27b0 commit 5d00248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions nf_core/pipeline-template/lib/NfcoreTemplate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [:]
Expand Down
2 changes: 1 addition & 1 deletion nf_core/pipeline-template/workflows/pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 5d00248

Please sign in to comment.