We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9e008 commit a5cbfe2Copy full SHA for a5cbfe2
src/main/java/org/commonwl/view/workflow/WorkflowService.java
@@ -175,6 +175,13 @@ public Workflow getWorkflow(GitDetails gitInfo) {
175
// Add the new workflow if it exists
176
try {
177
createQueuedWorkflow(workflow.getRetrievedFrom());
178
+
179
+ // Add the old commit for the purposes of permalinks
180
+ // TODO: Separate concept of commit from branch ref, see #164
181
+ GitDetails byOldCommitId = workflow.getRetrievedFrom();
182
+ byOldCommitId.setBranch(workflow.getLastCommit());
183
+ createQueuedWorkflow(byOldCommitId);
184
185
workflow = null;
186
} catch (Exception e) {
187
// Add back the old workflow if it is broken now
0 commit comments