Skip to content

Commit

Permalink
usage ex
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzhang committed Jan 18, 2024
1 parent c5efdc3 commit a61ee23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![CodeQL](https://github.com/mdzhang/pr-codeowner-autolabel-action/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/mdzhang/pr-codeowner-autolabel-action/actions/workflows/codeql-analysis.yml)
[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)

Add labels to GitHub PRs based on the contents of `.github/CODEOWNERS`
Add labels to GitHub PRs based on the contents of [`CODEOWNERS`](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)

## Usage

Expand All @@ -24,8 +24,9 @@ jobs:
id: pr-codeowner-autolabel
uses: mdzhang/pr-codeowner-autolabel
with:
# default is ./CODEOWNERS
file-path: ./.github/CODEOWNERS
# default is CODEOWNERS
file-path: .github/CODEOWNERS
repo-token: ${{ secrets.GITHUB_TOKEN }}
labels-to-owners: |
{
"frontend": "@myteam/@frontend-guild"
Expand Down

0 comments on commit a61ee23

Please sign in to comment.