codeownerizer

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2022 License: MIT Imports: 7 Imported by: 0

README

codeownerizer

GitHub codeowners are required to have the push permission on the repo. This tool is designed to automatically add code owners who are listed in the CODEOWNERS file but don't have sufficient permissions to the repository, along with the appropriate permission.

GitHub Actions

name: Add ungranted codeowners to the repo

on:
  push:
    - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Codeownerizer
      uses: grezar/codeownerizer@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUngrantedOwners

func AddUngrantedOwners(ctx context.Context, api *github.Client, org string, repo string, owners []codeowners.Owner) error

Types

This section is empty.

Directories

Path Synopsis
cmd
codeownerizer command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL