Giter Club home page Giter Club logo

ministryofjustice.github-repository-standards's Introduction

Ministry of Justice GitHub Repository Standards

This repository contains code which uses the GitHub API to find all public Ministry of Justice (MoJ) GitHub repositories, and check whether or not they comply with our standards.

These checks run on a regular schedule, and send the results to the Operations Engineering Reports web application.

Running the report

The report is scheduled to run daily, via a GitHub Actions workflow.

You can also trigger it manually via the "Run workflow" button here.

The ruby code is run directly via the GitHub Actions workflow - there is no docker image or other build steps.

Architecture

  • A GraphQL query retrieves information about MoJ public GitHub repositories
  • Data for each repository is used to instantiate a StandardsReport object
  • Code in StandardsReport creates a report based on the data supplied

Public repositories should:

  • be MIT Licensed (not implemented yet)
  • have main as the default branch
  • have at least one team with admin access (not implemented yet)
  • delete branch on merge (not implemented yet)
  • have non-empty description (shouldn't be null or "") (not implemented yet)
  • have issues enabled (not implemented yet)
  • have recent activity (pushedAt < ?) (not implemented yet)
  • have branch protection on main, with: "requiresApprovingReviews": true, "requiresCodeOwnerReviews": true, "isAdminEnforced": true,
  • have Dependabot enabled (not implemented yet)

ministryofjustice.github-repository-standards's People

Contributors

antonybishop avatar digitalronin avatar

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.