Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
users

GitHub Action

codewatchers-assignees

v0.0.1

codewatchers-assignees

users

codewatchers-assignees

Set PR assignees based on a CODEOWNERS file

Installation

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

              

- name: codewatchers-assignees

uses: dovetail/[email protected]

Learn more about this action in dovetail/codewatchers

Choose a version

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

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 }}