Skip to content

Simple Labeler

Actions
Automatically applies labels to a PR when it s created
v1.0.1
Latest
Starย (13)

simple-labeler

๐ŸŒ ํ•œ๊ตญ์–ด | English

PR ์— ์ž๋™์œผ๋กœ Label ์„ ์ถ”๊ฐ€ํ•ด์ฃผ๋Š” ๊ฐ„๋‹จํ•œ Github Actions

Usage

  1. ์•„๋ž˜์™€ ๊ฐ™์ด .github/workflows/simple-labeler.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-*"
  1. ์›ํ•˜๋Š” ์ด๋ฒคํŠธ๋ฅผ on ์— ๋ช…์‹œํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ๋Š” PR ์ƒ์„ฑ ์‹œ, Draft ์—์„œ Open ์ƒํƒœ๋กœ ์ „ํ™˜ ์‹œ Label ์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. (์ฐธ๊ณ ๋กœ, Draft ์ƒ์„ฑ ์‹œ์—๋Š” ๋ฐœ์ƒํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.)
  2. ํ•ด๋‹น ์ด๋ฒคํŠธ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด GitHub Actions ๊ฐ€ ์ž๋™์œผ๋กœ labels์— ์ž…๋ ฅํ•œ Label ์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

Inputs

token

Required GitHub์—์„œ ์ œ๊ณตํ•˜๋Š” ํ† ํฐ

labels

Required ์ด๋ฒคํŠธ ๋ฐœ์ƒ ์‹œ ์ถ”๊ฐ€ํ•  Label ๋ชฉ๋ก. ์ฝค๋งˆ(,)๋กœ ๊ตฌ๋ถ„

duplicate

๊ธฐ์กด์— ๋ถ™์€ Label ์ค‘ ์ด ํŒจํ„ด๊ณผ ์ผ์น˜ํ•˜๋Š” ๊ฒƒ์ด ์žˆ๋‹ค๋ฉด ์ƒˆ Label์„ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. (glob ํŒจํ„ด ์‚ฌ์šฉ)

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.

Simple Labeler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Automatically applies labels to a PR when it s created
v1.0.1
Latest

Simple Labeler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.