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

use v5 API for [AUR] badges #6836

Merged
merged 2 commits into from
Jul 29, 2021
Merged

use v5 API for [AUR] badges #6836

merged 2 commits into from
Jul 29, 2021

Conversation

calebcartwright
Copy link
Member

Resolves #6835

@calebcartwright calebcartwright added the service-badge New or updated service badge label Jul 29, 2021
@shields-cd shields-cd temporarily deployed to shields-staging-pr-6836 July 29, 2021 00:45 Inactive
@shields-ci
Copy link

shields-ci commented Jul 29, 2021

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

Generated by 🚫 dangerJS against 5b8eaea

const { license } = this.transform(json)
return this.constructor.render({ license })
const { licenses } = this.transform(json)
return renderLicenseBadge({ licenses, color: 'blue' })
Copy link
Member Author

Choose a reason for hiding this comment

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

I opted to extend our license badge helper to let call sites specify a default color to use instead of the dynamically derived colors based on the license values. This seems a reasonable change in its own right, though opted to do so here since we have historically hardcoded the color for this badge and didn't want to introduce color changes as part of updating to the latest API

Co-authored-by: chris48s <chris48s@users.noreply.github.com>
@repo-ranger repo-ranger bot merged commit 435678f into master Jul 29, 2021
@repo-ranger repo-ranger bot deleted the aur-api branch July 29, 2021 19:56
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.

AUR badges use deprecated and undocumented API to retrieve information
4 participants