Skip to content

A GitHub action to parse a CODEOWNERS like files and use it to set assignees on PRs

License

Notifications You must be signed in to change notification settings

dovetail/codewatchers

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Table of contents

Introduction

This action set the assignees on a PR based of a CODEOWNERS file.

Inputs

input description required
github-token Auth token with permissions to label PR true
codewatchers-filename Filename of codewatchers file. Default: CODEWATCHERS false
github-user-mappings Optional user to github user mappings false

Usage

name: Add CODEWATCHERS
on:
  pull_request:
    types: [opened]
jobs:
  add-assignees:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    steps:
      - name: Add CODEWATCHERS as assignees
        uses: dovetail/codewatchers@latest
        with:
          codewatchers-filename: CODEWATCHERS
          github-token: ${{ secrets.GITHUB_TOKEN }}

About

A GitHub action to parse a CODEOWNERS like files and use it to set assignees on PRs

Resources

License

Stars

Watchers

Forks

Packages

No packages published