Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Idea of improvement
If we create stage with reusable function, we'll meet problem with "props already exists". I made small improvement by adding property to configuration of stageFunction.
Example
Now we can merge context of same functions
Code
Result
So after this we'll receive such result:
Where to use
As you can see, there is no problem with same logic but different names. I would like to use your pipeline, for example, for telegram bot integration. I'll have stage "sendMessage", which returns telegram bot api's result.
I want to be able to call this stage multiple times in single pipelines and use result of every execution in context and have possibility to use it
Small (really big) problem
I can't make your tests passing. Even without my updates tests
check/easy-pipeline/test/index.js:329
and
check/easy-pipeline/test/index.js:336
Are failing and I can't understand that's wrong.
Thank you!