-
Notifications
You must be signed in to change notification settings - Fork 172
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
ci: check that all code in .proto
must have comments; 让 CI工具检查“proto 代码必须包含注释”
#623
Comments
.proto
must have comments.proto
must have comments 让 CI工具检查“proto 代码必须包含注释”
.proto
must have comments 让 CI工具检查“proto 代码必须包含注释”.proto
must have comments; 让 CI工具检查“proto 代码必须包含注释”
A bit of complex for me maybe. I can give it a try. |
@MichaelDeSteven ok. Thanks! |
we can use buf linters to achieve this goal.
|
@MichaelDeSteven Sounds great! We can run this linter in our CI |
sure. I will finish it in this week maybe. |
@MichaelDeSteven Hi, how about you continue with this issue? |
@seeflood
Looking forward to your reply. |
@MichaelDeSteven Regarding Thanks a lot for your contribution! |
Hi @seeflood, I hava two question.
|
Yes, besides github workflow, I think a makefile script is helpful. |
I open a pr. Review it plz. |
What would you like to be added:
We can let CI to check that all code in
.proto
files must have comments.For example, we have comments on state API, see https://github.com/mosn/layotto/blob/main/spec/proto/runtime/v1/runtime.proto#L440
And these comments are used to generate document, see https://github.com/mosn/layotto/blob/main/docs/en/api_reference/runtime_v1.md#getstaterequest
But unfortunately, we don't have comments on File API. So the corresponding doc is empty. see https://github.com/mosn/layotto/blob/main/docs/en/api_reference/runtime_v1.md#getfilerequestmetadataentry
Why is this needed:
Make sure we have necessary comments on api spec
The text was updated successfully, but these errors were encountered: