Giter Site home page Giter Site logo

Comments (9)

azeemshaikh38 avatar azeemshaikh38 commented on September 24, 2024 1

FYI, Scorecard Branch-Protection data already has the status checks. Not needed right now, but can consider pulling in this info from Scorecard directly at some point.

from allstar.

artis3n avatar artis3n commented on September 24, 2024

Maybe also, in the object: an optional msg field that overwrites the message given to developers if that status check is found missing. If not present a general "missing X status check" message will be outputted.

from allstar.

jeffmendoza avatar jeffmendoza commented on September 24, 2024

This sounds great. It would be good to propose the additional names and types of the members in the config.

Why would required be needed. Why would you list a name of expected check, but it not be required?

The GitHub data looks straight forward, just a list of strings.

from allstar.

artis3n avatar artis3n commented on September 24, 2024

Why would required be needed. Why would you list a name of expected check, but it not be required?

We have a bunch of status checks we supply through GitHub Apps in our org to give feedback to folks as they work on PRs, but they don't necessarily need to succeed before code is merged. e.g. providing teams early security feedback but the violations only have to be fixed later on, teams can still merge code with the failed status check.

I'm fine with putting this together without the required field but that's my use case.

from allstar.

artis3n avatar artis3n commented on September 24, 2024

Given the GitHub data it seems the status checks submitted must be considered required, which makes sense. So the new data going into the config would look like:

status_checks:
  - mycheck
  - theothercheck
  - other

With no other metadata needed. Just the names

from allstar.

jeffmendoza avatar jeffmendoza commented on September 24, 2024

Sounds great, lgtm

from allstar.

yorinasub17 avatar yorinasub17 commented on September 24, 2024

I had a need for this for our org's use case so I went ahead and took a stab at an implementation! #147

from allstar.

yorinasub17 avatar yorinasub17 commented on September 24, 2024

FYI #147 was just merged. Note that the final version changed the interface slightly to allow for specifying the GH app that should provide the context:

requireStatusChecks:
  - context: "Analyze (go)"
    appID: 15368
  - context: "lint"
  - context: "build"
    appID: 15368

Refer to #147 (comment) for rationale

from allstar.

jeffmendoza avatar jeffmendoza commented on September 24, 2024

Closed with above

from allstar.

Related Issues (20)

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.