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

Add [dub] score badge service #9549

Merged
merged 4 commits into from
Sep 10, 2023
Merged

Conversation

pr7prashant
Copy link
Contributor

Closes #8662

  • Add dub score badge service

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

Messages
📖 ✨ Thanks for your contribution to Shields, @pr7prashant!

Generated by 🚫 dangerJS against 5560eb0

@chris48s chris48s changed the title Add dub score badge service Add [dub] score badge service Sep 5, 2023
@chris48s chris48s added the service-badge New or updated service badge label Sep 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

🚀 Updated review app: https://pr-9549-badges-shields.fly.dev

Copy link
Member

@chris48s chris48s left a comment

Choose a reason for hiding this comment

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

Thanks. A few comments but nothing major. Great to see you're branching out beyond docs :)


static examples = [
{
title: 'DUB SCORE',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
title: 'DUB SCORE',
title: 'DUB Score',

Comment on lines 22 to 26
static defaultBadgeData = { label: 'SCORE' }

static render({ score }) {
return {
label: 'SCORE',
Copy link
Member

Choose a reason for hiding this comment

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

.get('/vibe-d.json')
.expectBadge({
label: 'SCORE',
message: isWithinRange(0, 5),
Copy link
Member

Choose a reason for hiding this comment

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

You can use Joi.number() on numeric strings. Instead of a regex, we can just use Joi.number().min(0).max(5) here.

@chris48s
Copy link
Member

LGTM - thanks 👍

@chris48s chris48s added this pull request to the merge queue Sep 10, 2023
Merged via the queue into badges:master with commit 015b5b0 Sep 10, 2023
19 checks passed
@pr7prashant pr7prashant deleted the issue-8662 branch September 10, 2023 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Badge request: Dub score
2 participants