GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - baires/shouldideploy: Source of shouldideploy.today

BranchesTags
Open more actions menu

Latest commit

 

History

1,769 Commits
1,769 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
component
component
 
 
docs
docs
 
 
helpers
helpers
 
 
locales
locales
 
 
pages
pages
 
 
public
public
 
 
scripts
scripts
 
 
test_reports
test_reports
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.gitpod.yml
.gitpod.yml
 
 
.snyk
.snyk
 
 
CODEOWNERS
CODEOWNERS
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
eslint.config.mjs
eslint.config.mjs
 
 
jest.config.ts
jest.config.ts
 
 
next-env.d.ts
next-env.d.ts
 
 
next.config.js
next.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
style.css
style.css
 
 
tsconfig.json
tsconfig.json
 
 
vercel.json
vercel.json
 
 

Repository files navigation

shouldideploy.today

shouldideploy FOSSA Status

Getting started

  • Run:
    • npm i — install deps.
    • npm run dev — start the dev server.
    • now dev if you need local serveless function (requires now)

Open in Gitpod

Add new translations

For adding new language translations, see docs/adding-languages.md

API endpoint

There is an endpoint to use on your CI or just for fun at https://shouldideploy.today/api

You can also provide optional parameters to customize the API response:

  • tz: The timezone to use when evaluating the date and time. The default value is UTC. Pass a valid timezone string, such as America/New_York or Europe/London default UTC.
  • date: The date to evaluate. The default value is the current date. Pass a valid date string in the format YYYY-MM-DD, such as 2023-03-31.
  • lang: The language for the response message. Supports base languages (en, es, pt) and regional variants (es-AR). Falls back to base language or English if not found. Default is en.

Examples

Get the default API response using the current date and time in the UTC timezone:

https://shouldideploy.today/api

Get the API response for a specific timezone (e.g., Europe/London):

https://shouldideploy.today/api?tz=Europe/London

Get the API response for a specific date (e.g., 2023-03-31) in the UTC timezone:

https://shouldideploy.today/api?date=2023-03-31

Get the API response for a specific date (e.g., 2023-03-31) in a specific timezone (e.g., America/New_York):

https://shouldideploy.today/api?tz=America/New_York&date=2023-03-31

Get the API response in Spanish:

https://shouldideploy.today/api?lang=es

Get the API response in Argentina Spanish with a specific timezone:

https://shouldideploy.today/api?lang=es-AR&tz=America/Buenos_Aires

Integrations

Badge

Embed a live deploy-status badge in any README:

![Should I Deploy?](https://shouldideploy.today/api/badge?tz=America/New_York)

Supports ?tz= (IANA timezone, default UTC) and ?lang= (language code, default en).

You can also customize the badge appearance with the ?style= parameter. Supported styles (same as shields.io):

Style Preview
flat (default) flat
flat-square flat-square
plastic plastic
for-the-badge for-the-badge
social social
![Should I Deploy?](https://shouldideploy.today/api/badge?tz=America/New_York&style=for-the-badge)

CLI / Pipeline gate

Block a deploy step in any CI pipeline:

curl --fail -s "https://shouldideploy.today/api/cli?tz=America/New_York" && ./deploy.sh

Returns [shouldideploy] YES: <reason> with HTTP 200 when safe to deploy, or [shouldideploy] NO: <reason> with HTTP 425 when not. curl --fail exits non-zero on 4xx/5xx, blocking && deploy.sh.

Supports ?tz= and ?lang= parameters.

API Response

The API returns a JSON object containing the following keys:

  • timezone: The timezone used for evaluating the date and time.
  • date: The date provided as parameter in ISO format (YYYY-MM-DDTHH:mm:ss.sssZ)
  • shouldideploy: A boolean value indicating whether you should deploy today or not.
  • message: A string containing a reason or explanation for the shouldideploy result.

Example response:

{
  "timezone": "UTC",
  "date": "2023-03-31T00:00:00.000Z",
  "shouldideploy": false,
  "message": "It's Friday, better not deploy today."
}

Community projects

  • gustamms/devo-fazer-deploy-hoje Versão brasileira do site https://shouldideploy.today/
  • timelfrink/shouldideploy-action This action checks the website shouldideploy.today and stops deployments if the site tells us not to do so.
  • panacaqui/should-i-deploy-today-discord-bot A simple API to send a daily message from shouldideploy.today in a Discord channel.
  • MatheusHAS/shouldideploytoday-for-pipeline This example of implementation, consumes the shouldideploy.today API to decide on my pipeline if will be deploy process run or not.
  • Brunomachadob/shouldideploy-slack Should I Deploy Slack command
  • gpalomar/shouldideploy-vscode A Visual Studio Code Extension that uses https://github.com/baires/shouldideploy 🍻⚠️

Credits

Favicon created by emilegraphics

License

FOSSA Status

About

Source of shouldideploy.today

shouldideploy.today/

Resources

Readme
WTFPL license

Code of conduct

Code of conduct
Activity

Stars

554 stars

Watchers

5 watching

Forks

92 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.