Git Product home page Git Product logo

assign-random-codeowners's Introduction

Assign Random CODEOWNERS Reviewers

A GitHub Action for randomly assigning CODEOWNERS to changes submitted in PRs.


It can prove difficult to set round-robin/random PR reviewer assignment of team members when a team is assigned as a PR reviewer for every team in an organization with many internal teams.

This GitHub Action aims to solve this by automatically picking random members of teams assigned as a reviewers on PRs and assign picked team members as reviewers instead.


Usage

Inputs

Input Type Required Description
reviewers-to-assign number How many total reviewers to assign to a given PR. The action will not assign more reviewers than the number given and takes already assigned reviewers into consideration when running.
assign-from-changed-files boolean Whether to assign reviewers from the files changed in a PR. If a CODEOWNER cannot be found for a file, the action will select randomly from the global CODEOWNERS.
assign-individuals-from-teams boolean Whether to pick and assign random team members from CODEOWNER teams as reviewers.

The action requires a GITHUB_TOKEN to be present in the env with the required permissions to assign PR reviewers.

Outputs

Input Type Description
assigned-codeowners { count: number, teams: string[], users: string[] } The reviewers assigned to the PR.

assign-random-codeowners's People

Contributors

andersfischernielsen avatar dependabot[bot] avatar github-actions[bot] avatar jsfr avatar littlegreenyoda42 avatar marcos-arranz avatar niceplace avatar pleo-bot-renovate avatar pleo-file-distributor[bot] avatar renovate[bot] avatar scudkot avatar victorpascualv 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.