Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(1415): Add subscribe field in parsed config #109

Merged
merged 7 commits into from
Oct 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/phase/functional.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,17 @@ module.exports = async (flattenedDoc, buildClusterFactory, triggerFactory, pipel

// Workflow graph
doc.workflowGraph = await generateWorkflowGraph(doc, triggerFactory, pipelineId);

doc.workflowGraph.nodes.forEach(node => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed because it get's saved with without ~ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this being getting saved without ~ was causing some problems. I needed this trigger to be the same as ~pr and ~commit.

if (node.name === 'subscribe')
node.name = '~subscribe'
});

doc.workflowGraph.edges.forEach(edge => {
if (edge.src === 'subscribe')
edge.src = '~subscribe'
});

errors = errors.concat(validateWorkflowGraph(doc));

// Check if build cluster annotation is valid
Expand Down