Skip to content

[Copr] Add build status badge#11940

Open
LuxologyGG wants to merge 4 commits into
badges:masterfrom
LuxologyGG:feat/auto-badge-issue-6078
Open

[Copr] Add build status badge#11940
LuxologyGG wants to merge 4 commits into
badges:masterfrom
LuxologyGG:feat/auto-badge-issue-6078

Conversation

@LuxologyGG

@LuxologyGG LuxologyGG commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new build status badge for the Fedora Copr build system.

Closes #6078

Example

https://img.shields.io/copr/build/msuchy/nanoblogger/nanoblogger
https://img.shields.io/copr/build/@copr/copr/copr-backend

Badge endpoint

/copr/build/:owner/:project/:package

Optional server query parameter defaults to https://copr.fedorainfracloud.org.

API rate limits

The Copr API v3 documentation does not document request rate limits for read-only endpoints. This badge issues one GET per render to /api_3/package with with_latest_build=True.

Implementation

  • services/copr/copr.service.js — fetches latest build state from Copr API v3
  • services/copr/copr.service.spec.js — unit tests for URL, transform, and render logic
  • services/copr/copr.tester.js — live and mocked service tests

Checklist

  • Service implementation (services/copr/copr.service.js)
  • Unit tests (services/copr/copr.service.spec.js)
  • Service tests (services/copr/copr.tester.js)
  • Tests passing
  • npm run lint (0 errors)

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
Messages
📖 ✨ Thanks for your contribution to Shields, @LuxologyGG!

Generated by 🚫 dangerJS against fcba49b

@LuxologyGG LuxologyGG marked this pull request as ready for review June 20, 2026 00:36
Copilot AI review requested due to automatic review settings June 20, 2026 00:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cursor cursor Bot force-pushed the feat/auto-badge-issue-6078 branch from 8121c83 to 4d12e2c Compare June 24, 2026 18:06
Implements a build badge for the Fedora Copr build system using the
Copr API v3 package endpoint.

Closes badges#6078
Move fetch method before transform to satisfy ESLint
sort-class-members rule.
@LuxologyGG LuxologyGG force-pushed the feat/auto-badge-issue-6078 branch from 1ce9ed7 to fcba49b Compare June 28, 2026 18:07
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.

Badge request: Copr Build System

3 participants