Skip to content
calendar

GitHub Action

Update D-n Labels

v1.0.1 Latest version

Update D-n Labels

calendar

Update D-n Labels

Automatically updates labels based on the D-n rule

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Update D-n Labels

uses: naver/[email protected]

Learn more about this action in naver/d-day-labeler

Choose a version

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.