Skip to content

feat: add Progress / Percentage Badge (fixes #11592)#11686

Open
Arul1998 wants to merge 1 commit intobadges:masterfrom
Arul1998:progress-percentage-badge
Open

feat: add Progress / Percentage Badge (fixes #11592)#11686
Arul1998 wants to merge 1 commit intobadges:masterfrom
Arul1998:progress-percentage-badge

Conversation

@Arul1998
Copy link

Fixes #11592

Summary

Adds a static progress/percentage badge with gradient-based coloring. Data is provided via URL parameters.

What it does

  • Percentage input: percentage (0-100 or 0.00-1.00) or numerator + denominator
  • Gradients: red-green, green-red, red-yellow-green, green-yellow-red, or custom
  • Optional: label, message, gradient params

Examples

  • /badge/progress?percentage=75&gradient=red-green
  • /badge/progress?label=Docs&percentage=75&gradient=red-green
  • /badge/progress?label=Quality&numerator=4&denominator=5&gradient=red-yellow-green

@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2026

Warnings
⚠️

This PR modified service code.
Please run tests by including affected services in the pull request title.

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

Generated by 🚫 dangerJS against b179362

- Raw percentage (0-100 or 0.00-1.00), numerator/denominator
- Gradients: red-green, green-red, red-yellow-green, green-yellow-red
- Custom gradients, full JSDoc and lint compliance
@Arul1998 Arul1998 force-pushed the progress-percentage-badge branch from 070e07d to b179362 Compare February 17, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Progress / Percentage Badge

1 participant