Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/plugin-cicd-statistics-module-gitlab

Package Overview
Dependencies
Maintainers
3
Versions
742
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/plugin-cicd-statistics-module-gitlab

CI/CD Statistics plugin module; Gitlab CICD

  • 0.0.0-nightly-20240325021142
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
112
increased by128.57%
Maintainers
3
Weekly downloads
 
Created
Source

cicd-statistics-module-gitlab

This is an extension module to the cicd-statistics plugin, providing a CicdStatisticsApiGitlab that you can use to extract the CI/CD statistics from your Gitlab repository.

Getting started

  1. Install the cicd-statistics and cicd-statistics-module-gitlab plugins in the app package.

  2. Configure your ApiFactory:

    • You can optionally pass in a second argument to CicdStatisticsApiGitlab of type CicdDefaults to alter the default CICD UI configuration
// packages/app/src/apis.ts
import { gitlabAuthApiRef } from '@backstage/core-plugin-api';

import { cicdStatisticsApiRef } from '@backstage/plugin-cicd-statistics';
import { CicdStatisticsApiGitlab } from '@backstage/plugin-cicd-statistics-module-gitlab';

export const apis: AnyApiFactory[] = [
  createApiFactory({
    api: cicdStatisticsApiRef,
    deps: { gitlabAuthApi: gitlabAuthApiRef },
    factory({ gitlabAuthApi }) {
      return new CicdStatisticsApiGitlab(gitlabAuthApi);
    },
  }),
];
  1. Add the component to your EntityPage:
// packages/app/src/components/catalog/EntityPage.tsx
import { EntityCicdStatisticsContent } from '@backstage/plugin-cicd-statistics';

<EntityLayout.Route path="/ci-cd-statistics" title="CI/CD Statistics">
  <EntityCicdStatisticsContent />
</EntityLayout.Route>;

Keywords

FAQs

Package last updated on 25 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc