GithubHelp home page GithubHelp logo

statusneo / backstage-plugin-github Goto Github PK

View Code? Open in Web Editor NEW
18.0 0.0 3.0 2.08 MB

A plugin to showcase Recent Pull Requests and Actions pipeline relevant to the user at the homepage in Backstage Enterprise.

Home Page: https://www.statusneo.com/rearportal

License: Apache License 2.0

TypeScript 100.00%
backstage devex github

backstage-plugin-github's Introduction

GitHub Homepage Cards for Backstage Enterprise


To know more about the plugin, read this blog.

Setup

Before you can start using the GitHub cards, you must set up a GitHub provider.

You can follow this documentation which will guide you through the process of setting up the GitHub provider for your Backstage instance.

Now in the below steps, I will assume you are already done with the provider.

Integration Steps

  1. First Install the GitHub cards plugin by running this command from the root of the package.
yarn add –cwd packages/app @statusneo/backstage-plugin-github
  1. add this to the app/src/apis.ts
  import { githubApiRef, GithubClient as StatusNeoGithubClient } from '@statusneo/backstage-plugin-github';

  // ...
  createApiFactory({
    api: githubApiRef,
    deps: { authApi: githubAuthApiRef, fetchApi: fetchApiRef, configApi: configApiRef },
    factory(deps) {
      return new StatusNeoGithubClient(deps);
    },
  }),
  // ...
  1. Import GithubPullRequestsCard, and GithubActionsCard from the installed package.

  2. You can then use these components at the backstage frontend wherever you need.

import { GithubPullRequestsCard, GithubActionsCard } from '@statusneo/backstage-plugin-github';

// ...
              <Grid item xs={12} md={6}>
                <GithubActionsCard />
              </Grid>
              <Grid item xs={12} md={6}>
                <GithubPullRequestsCard />
              </Grid>
// ...
  1. If you are using a GitHub enterprise edition, you can pass your instance url through app-config.yml
gh-plugin:
  url: ${GITHUB_ENTERPRISE_URL}

Now you are ready to use this Backstage GitHub plugin to make your software management and development cycle a little more hassle-free.

backstage-plugin-github's People

Contributors

abhay-soni-developer avatar debanitrkl avatar nishkarshraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

backstage-plugin-github's Issues

does the plugin work with backstage 1.13.0?

Hello @NishkarshRaj ,

We tried installing the plugin and including it in the HomePage.tsx (we already use the Github provider beforehand)
the widgets appear in the home page but they're empty and upon pressing login in them nothing happens and no error is thrown in the browser.

Also tried to add them in the GroupEntityPage but this seems conflict with Spotify's Shortcut plugin and crashes immediately.

Any hints what might be wrong?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.