Skip to content

Commit 73ab393

Browse files
committed
Add workflow manifest metadata to execution report
Include workflow manifest fields in the HTML execution report for better traceability and QA purposes: - Workflow name (manifest.name) - Workflow version (manifest.version) - Workflow description (manifest.description) - Workflow author (manifest.author) - Workflow home page (manifest.homePage) - as clickable link - Workflow DOI (manifest.doi) - as doi.org link All fields are conditionally displayed only when set in the manifest. This complements the existing repository/revision/commitId information. Closes #3917 Signed-off-by: Claude <[email protected]>
1 parent 8067145 commit 73ab393

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

modules/nextflow/src/main/resources/nextflow/trace/ReportTemplate.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,36 @@ <h4>Workflow execution completed unsuccessfully!</h4>
177177
<dd class="col-sm-9"><code>${workflow.scriptId}</code></dd>
178178
<% } %>
179179

180+
<% if (workflow.manifest?.name) { %>
181+
<dt class="col-sm-3">Workflow name</dt>
182+
<dd class="col-sm-9"><samp>${workflow.manifest.name}</samp></dd>
183+
<% } %>
184+
185+
<% if (workflow.manifest?.version) { %>
186+
<dt class="col-sm-3">Workflow version</dt>
187+
<dd class="col-sm-9"><samp>${workflow.manifest.version}</samp></dd>
188+
<% } %>
189+
190+
<% if (workflow.manifest?.description) { %>
191+
<dt class="col-sm-3">Workflow description</dt>
192+
<dd class="col-sm-9">${workflow.manifest.description}</dd>
193+
<% } %>
194+
195+
<% if (workflow.manifest?.author) { %>
196+
<dt class="col-sm-3">Workflow author</dt>
197+
<dd class="col-sm-9">${workflow.manifest.author}</dd>
198+
<% } %>
199+
200+
<% if (workflow.manifest?.homePage) { %>
201+
<dt class="col-sm-3">Workflow home page</dt>
202+
<dd class="col-sm-9"><a href="${workflow.manifest.homePage}" target="_blank">${workflow.manifest.homePage}</a></dd>
203+
<% } %>
204+
205+
<% if (workflow.manifest?.doi) { %>
206+
<dt class="col-sm-3">Workflow DOI</dt>
207+
<dd class="col-sm-9"><a href="https://doi.org/${workflow.manifest.doi}" target="_blank">${workflow.manifest.doi}</a></dd>
208+
<% } %>
209+
180210
<dt class="col-sm-3">Workflow session</dt>
181211
<dd class="col-sm-9"><code>${workflow.sessionId}</code></dd>
182212

0 commit comments

Comments
 (0)