Skip to content
play

GitHub Action

autolabeler-codeowners

0.1 Latest version

autolabeler-codeowners

play

autolabeler-codeowners

Automatically label PRs based on CODEOWNERS

Installation

Copy and paste the following snippet into your .yml file.

              

- name: autolabeler-codeowners

uses: pratikmallya/autolabeler-codeowners@0.1

Learn more about this action in pratikmallya/autolabeler-codeowners

Choose a version

autolabeler-codeowners

Adds labels to PR's based on CODEOWNERS. Useful in monorepos where there can be a ton of concurrent users and it might get hard to find the relevant PR for a particular team.

Example usage

The following is a fully functional Github Workflow. Note that githubToken is a Github secret that needs to be added to the Github repo.

on: [pull_request]
jobs:
  autolabeler-codeowners:
    runs-on: ubuntu-latest
    name: Publish docs to confluence
    steps:
    - uses: actions/checkout@v1
    - name: publish to confluence
      uses: pratikmallya/autolabeler-codeowners@master
      with:
        githubToken: ${{ secrets.githubToken }}