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(3124): Add validatePipelineTemplate function [2] #40

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

tkyi
Copy link
Member

@tkyi tkyi commented Jun 9, 2024

Context

The is displaying only the configurations stored in the database without extending the job template. It would be nice if it would merge template steps if the pipeline template is using a template.

Objective

This PR adds a new function for pipeline template validator to show users flattened job template steps.

References

Related to screwdriver-cd/screwdriver#3124

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@tkyi tkyi force-pushed the validatePipelineTemplate branch from ac6fe7b to a865bab Compare June 9, 2024 01:51
Copy link
Contributor

@pritamstyz4ever pritamstyz4ever left a comment

Choose a reason for hiding this comment

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

Looks good overall, just need to fix the test


templateFactoryMock.getTemplate.resolves(template);
// eslint-disable-next-line global-require
validator = require('../index').validatePipelineTemplate;
Copy link
Contributor

Choose a reason for hiding this comment

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

validatePipelineTemplate: validateTemplate
I think the variable is renamed to validateTemplate.

@tkyi tkyi force-pushed the validatePipelineTemplate branch from 26e8870 to 59dff91 Compare June 12, 2024 07:42
@tkyi tkyi merged commit 60634ca into master Jun 13, 2024
2 checks passed
@tkyi tkyi deleted the validatePipelineTemplate branch June 13, 2024 17:23
@sd-buildbot
Copy link

🎉 This PR is included in version 8.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants