Skip to content

NandoRFS/backstage-plugin-should-i-deploy

Repository files navigation

backstage-plugin-should-i-deploy

Welcome to the backstage-plugin-should-i-deploy plugin!?

Overview

Tired of looking at the calendar to see if today is a good day to deploy? Your problems are solved! This plugin creates the perfect card containing this information for your home! The phrases and background color change according to the day, based on UTC or the time zone.

Simple Card

Simple card

Card with title

Simple card

Card it's not time to do it

Simple card

Card you can do it

Simple card

Getting started

Install the package

# From your Backstage root directory
yarn add --cwd packages/app backstage-plugin-should-i-deploy

Add the route

Add a Should I deploy page to the routes on the packages/app/src/App.tsx add:

+ import { ShouldIDeployPage } from 'backstage-plugin-should-i-deploy';

  <FlatRoutes>
+    <Route path="/should-i-deploy" element={<ShouldIDeployPage />} />

    {/* ...other items */}

Import the card

Add a Should I deploy card to the home page on the packages/app/src/components/home/HomePage.tsx add:

+ import { ShouldIDeployCard } from 'backstage-plugin-should-i-deploy';

    <Page themeId="other">
      <Header title="Home" />
      <Content>
        <Grid container direction="row">
          <Grid item xs={12} md={3}>
            <Grid container direction="column">
+             <Grid item>
+               <ShouldIDeployCard title='Choose your title!' timeZone="America/Sao_Paulo"/>
+             </Grid>

    {/* ...other items */}

Note: Title and time zone are optional. If you don't specify a title, it will not be rendered. If you don't specify a time zone, the API will use UTC.

This project uses the API available at shouldideploy ❤️

About

Have you ever asked yourself... should I deploy today?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages