baires / shouldideploy

Source of shouldideploy.today
https://shouldideploy.today/
Do What The F*ck You Want To Public License
372 stars 78 forks source link

shouldideploy.today

FOSSA Status

Getting started

Open in Gitpod

Add your reasons

Reasons are located under reasons.ts

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:

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

API Response

The API returns a JSON object containing the following keys:

Example response:

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

Community projects

Credits

Favicon created by emilegraphics

License

FOSSA Status