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

refactor: use validator to validate fields #533

Merged
merged 5 commits into from
May 19, 2022

Conversation

iyear
Copy link
Member

@iyear iyear commented May 18, 2022

#511
I didn't test every plugin, but I checked them all as much as I could.

Some of the validation rules are too complicated. For example: githubactions/golang/validate.go , I kept some of the original validation rules.

@iyear
Copy link
Member Author

iyear commented May 18, 2022

Please review carefully, there are too many changes😥

fix: docker nil
internal/pkg/plugin/jiragithub/options.go Outdated Show resolved Hide resolved
pkg/util/validator/validator.go Show resolved Hide resolved
@IronCore864
Copy link
Member

I've tested a normal use case for the following plugins:

  • github-repo-scaffolding-golang
  • githubactions-golang
  • argocd
  • argocdapp

And it worked.

Didn't regression-test all plugins or abnormal cases.

@IronCore864
Copy link
Member

@iyear thanks for this great improvement.

@IronCore864
Copy link
Member

A very good proposal and an elegant solution. Keep up the good work!

It's not easy to test all plugins in this PR. I'll create an issue for each plugin to improve.

@iyear

Signed-off-by: Daniel Hu <tao.hu@merico.dev>
Copy link
Member

@daniel-hutao daniel-hutao left a comment

Choose a reason for hiding this comment

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

/LGTM
Great Job!

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

Successfully merging this pull request may close these issues.

3 participants