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 only production deployments by default #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

qurle
Copy link

@qurle qurle commented Feb 22, 2025

Hi Artur,
By default you use show the status of the last deployment. If it’s a failed preview, that’s usually okay for the project.

In this PR I excluded preview deployments from the badge by default. Now the badge show status of the last production deployment. I also added and documented query parameter to include preview developments.

Example
Failed preview:
https://badge.qurle.net/api/qurle/vercel-badge?previews=true
Should be red

Okay production:
https://badge.qurle.net/api/qurle/vercel-badge
Should be green

Copy link

vercel bot commented Feb 22, 2025

@qurle is attempting to deploy a commit to the Artur Dudek's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant