https://github.com/naver/simple-labeler
PR에 자동으로 Label 을 추가해주는 간단한 Github Actions
https://github.com/naver/simple-labeler
dev-culture github-actions label labeler-action labeling-tool pr-review pull-request
Last synced: 7 months ago
JSON representation
PR에 자동으로 Label 을 추가해주는 간단한 Github Actions
- Host: GitHub
- URL: https://github.com/naver/simple-labeler
- Owner: naver
- License: apache-2.0
- Created: 2023-10-30T10:29:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-15T09:06:18.000Z (over 1 year ago)
- Last Synced: 2025-04-14T23:29:55.853Z (10 months ago)
- Topics: dev-culture, github-actions, label, labeler-action, labeling-tool, pr-review, pull-request
- Language: TypeScript
- Homepage:
- Size: 438 KB
- Stars: 14
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.en.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-labeler
🌏 [**한국어**](README.md) | English
GitHub Actions to automatically add a label to pull requests
## Usage
1. Create a `.github/workflows/simple-labeler.yml` file:
```yml
name: Simple Labeler
on:
pull_request:
types: [opened, ready_for_review]
jobs:
simple-labeler:
runs-on: [ubuntu-latest]
steps:
- name: Label to PR
uses: naver/simple-labeler@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: "D-3"
duplicate: "D-*"
```
2. Specify the events to trigger in `on`. In this example above, a label is added when a PR is created or transitioned from Draft to open status. (Note: it does not trigger on Draft PR creation.)
3. When the specified event occurs, `simple-labeler` automatically adds the label specified in `labels`.
## Inputs
### `token`
**Required** GitHub token
### `labels`
**Required** Labels to add when the event occurs, separated by commas(,)
### `duplicate`
If a label matches this pattern(glob), no new label is added.
## License
```
Copyright (c) 2023-present NAVER Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```