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.
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
Add [Coderabbit] PR Stats service and tests #10749
Add [Coderabbit] PR Stats service and tests #10749
Changes from 4 commits
1dbee22
32658fc
50bbe67
31b95a8
34fa95b
12568cf
ab0cb2c
74d955f
4921f70
2d02098
b2b13e1
dd192e0
3e4fcf2
8470c88
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example value should be a value that works, so "github" would be sensible value for
example
here. Basically if I copy and paste it into the builder, it should work.We also don't need to double up examples in the description.
In the docs, if we want to communicate to the user that there is a closed set of valid values, we can give the user a dropdown to pick from. So if you look at something like the
vcsType
param on https://shields.io/badges/coveralls you get a dropdown for [github, bitbucket, gitlab].Here's what that looks like in the code.
shields/services/coveralls/coveralls.service.js
Line 17 in 0cbc131
shields/services/coveralls/coveralls.service.js
Lines 26 to 30 in 0cbc131
Lets do the same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok for the time-being it showing only GH. As GH has most usage, I'll be happy to update in the next revision with the upcoming badges.
Editing the text to only show GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Are
gitlab
andbitbucket
values that work today, or not?If they are, lets make this
in the route and
in the Open API spec.
That will show it as
in the docs, and we're good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made this change as you mentioned. Thanks for the suggestion!