Giter Site home page Giter Site logo

altjake / label-required-approvals Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lvegerano/label-required-approvals

0.0 0.0 0.0 569 KB

Github action to require pull requests reviews based on labels applied ✅

License: MIT License

TypeScript 100.00%

label-required-approvals's Introduction

Label Required Approvals Action

This is a Github Action to require the approval of a Pull Reques from a team member based on the labels applied to it. example

Configuration

Create .github/team-approvers.yml

You need to provide a yml file contains the label and the approvers for the label:

BlackAjah:
  - Alviarin
  - Liandrin
BlueAjah:
  - Moiranie
  - Siuan

NOTE: only one team member per label is required to approve.

Action Inputs

input description required default value
repo-token The GITHUB_TOKEN secret or a PAT that allows PR management true undefined
status Specifies the 'context' for the status to be set. This will show up in the PR's checks list false Required Reviews
configureation-path Path to the label -> approvers configuration file false .github/team-approvers.yml

Usage

Create .github/workflows/label-approvers.yml

Create a workflow (e.g. github/workflows/label-approvers.yml see Creating a Workflow file) to utilize the action. This action only needs the GITHUB_TOKEN secret or another token with sufficient permissions to modify labels via the Github API. The action can be use as such:

name: label-required-approvals
on:
  pull_request_review:
  pull_request:
    types: [opened, reopened, labeled, unlabeled]
jobs
  required-approvals:
    runs-on: ubuntu-latest
    steps:
      uses: lvegerano/label-required-approvals@v1
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

label-required-approvals's People

Contributors

lvegerano 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.