Skip to content

Update D-n Labels

Actions
Automatically updates labels based on the D-n rule
v1.0.1
Latest
Starย (39)

d-day-labeler

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

D-n ๊ทœ์น™์— ๋”ฐ๋ผ ์ž๋™์œผ๋กœ Label ์„ ์—…๋ฐ์ดํŠธํ•˜๋Š” Github Actions

D-n ๋ฃฐ์ด๋ž€?

์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋˜์–ด์•ผ ํ•˜๋Š” ์‹œ์ ์„ D-n ํ˜•์‹์˜ Label ์„ PR ์— ์ถ”๊ฐ€ํ•ด ํ‘œํ˜„ํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ๋ฆฌ๋ทฐ์–ด๋Š” ๋ฆฌ๋ทฐ ์šฐ์„ ์ˆœ์œ„๋ฅผ ์‰ฝ๊ฒŒ ํŒ๋‹จํ•˜๊ณ  ํšจ์œจ์ ์œผ๋กœ ์ž‘์—…ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • 3์ผ ์ด๋‚ด์— ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋˜์–ด์•ผ ํ•œ๋‹ค๋ฉด PR ์— D-3 Label ์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
  • ๊ธด๊ธ‰ํ•œ ์ˆ˜์ • ์‚ฌํ•ญ์ด ๋ฐœ์ƒํ•œ๋‹ค๋ฉด D-0 Label ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋น ๋ฅด๊ฒŒ ๋ฆฌ๋ทฐ๋ฅผ ์ˆ˜ํ–‰ํ•˜๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.

์ด Label ์€ ๋งค์ผ ๊ฐฑ์‹ ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ด๋ฅผ ์ž๋™ํ™”ํ•˜๊ธฐ ์œ„ํ•ด ํ•ด๋‹น Github Action์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Usage

  1. ์•„๋ž˜์™€ ๊ฐ™์ด .github/workflows/d-day-labeler.yml ํŒŒ์ผ์„ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค:
name: Update D-n Labels
on:
  schedule:
    - cron: '0 15 * * *' # ๋งค์ผ ๋ฐค 12์‹œ์— ์‹คํ–‰ (KST ๊ธฐ์ค€)
jobs:
  d-day-labeler:
    runs-on: [ubuntu-latest]
    steps:
      - name: Update D-n Labels
        uses: naver/d-day-labeler@latest
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
  1. ์›ํ•˜๋Š” PR์— D-n (์˜ˆ: D-5, D-3 ๋“ฑ) ํ˜•์‹์˜ Label ์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
  2. GitHub Actions๊ฐ€ ๋งค์ผ ์ž๋™์œผ๋กœ ํ•ด๋‹น Label ์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.

Inputs

token

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

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.

Update D-n Labels 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 updates labels based on the D-n rule
v1.0.1
Latest

Update D-n Labels 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.