1
0
mirror of https://github.com/actions/labeler synced 2026-05-05 03:07:49 +02:00

Merge branch 'main' into main

This commit is contained in:
Josh Dales
2023-03-08 18:10:37 -05:00
committed by GitHub
7 changed files with 33 additions and 42 deletions

View File

@@ -1,13 +1,6 @@
# Pull Request Labeler
<p align="left">
<a href="https://github.com/actions/labeler/actions/workflows/basic-validation.yml">
<img alt="basic validation status" src="https://github.com/actions/labeler/actions/workflows/basic-validation.yml/badge.svg">
</a>
<a href="https://libraries.io/github/actions/labeler">
<img alt="dependencies" src="https://img.shields.io/librariesio/github/actions/labeler">
</a>
</p>
[![Basic validation](https://github.com/actions/labeler/actions/workflows/basic-validation.yml/badge.svg?branch=main)](https://github.com/actions/labeler/actions/workflows/basic-validation.yml)
Automatically label new pull requests based on the paths of files being changed or the branch name.
@@ -133,21 +126,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
```
_Note: This grants access to the `GITHUB_TOKEN` so the action can make calls to GitHub's rest API_
#### Inputs
Various inputs are defined in [`action.yml`](action.yml) to let you configure the labeler:
| Name | Description | Default |
| - | - | - |
| `repo-token` | Token to use to authorize label changes. Typically the GITHUB_TOKEN secret, with `contents:read` and `pull-requests:write` access | N/A |
| `repo-token` | Token to use to authorize label changes. Typically the GITHUB_TOKEN secret, with `contents:read` and `pull-requests:write` access | `github.token` |
| `configuration-path` | The path to the label configuration file | `.github/labeler.yml` |
| `sync-labels` | Whether or not to remove labels when matching files are reverted or no longer changed by the PR | `false`
| `sync-labels` | Whether or not to remove labels when matching files are reverted or no longer changed by the PR | `false`|
# Contributions