Skip to content

Instantly share code, notes, and snippets.

@ljlm0402
Created November 27, 2020 01:27
Show Gist options
  • Select an option

  • Save ljlm0402/32e5d13c63a0cb92954de0cee4373e37 to your computer and use it in GitHub Desktop.

Select an option

Save ljlm0402/32e5d13c63a0cb92954de0cee4373e37 to your computer and use it in GitHub Desktop.
GitHub Label, Issue, Pull request Settings

Github Label μ„ΈνŒ…

Label μ΄λž€?

  • Issue, PR 에 λΆ™μ—¬μ„œ λΆ„λ₯˜ν•˜κΈ° μœ„ν•œ μ΄λ¦„ν‘œ

Github μ•‘μ„ΈμŠ€ 토큰 λ°œκΈ‰

https://github.com/settings/tokens

  • Generate new token 클릭
  • μ›ν•˜λŠ” 이름 μž…λ ₯
  • scopesμ—μ„œ repo 선택

image

Label μ •μ˜ν•˜κΈ°

  • labels.json νŒŒμΌμ— JSON Array ν˜•νƒœλ‘œ μ •μ˜
  • name, color, description 을 μ •μ˜ν•  수 있음
[
  {
    "name": "Priority: Critical",
    "color": "8c001a",
    "description": "μš°μ„ μˆœμœ„ κΈ΄κΈ‰"
  }
]

μ •μ˜ 된 Label μ μš©ν•˜κΈ°

  • μ•‘μ„ΈμŠ€ 토큰, 계정λͺ…, μ €μž₯μ†Œ 이름을 μžμ‹ μ˜ κ²ƒμœΌλ‘œ λ³€κ²½
npx github-label-sync --access-token [μ•‘μ„ΈμŠ€ 토큰] --labels labels.json [계정λͺ…]/[μ €μž₯μ†Œ 이름]

Label μ„€μ • 적용 μ „

image

Label 적용 ν›„

image

Issue Template

Issues νƒ­μ—μ„œ New issue λ²„νŠΌμ„ λˆŒλ €μ„ λ•Œ 미리 μ •μ˜ 된 ν…œν”Œλ¦Ώμ„ 선택할 수 있음

Issue Template μ •μ˜ν•˜κΈ°

  • λ§ˆν¬λ‹€μš΄ ν˜•μ‹μœΌλ‘œ 파일 생성
  • name, about, title, labels, assigneesλ₯Ό 미리 μ§€μ •ν•  수 있음
  • labels 의 경우 μœ„μ—μ„œ μ •μ˜ ν•œ label name을 μ§€μ •ν•˜λ©΄ 됨

μ˜ˆμ‹œ

---
name: Bug Report Template
about: 버그 리포트 ν…œν”Œλ¦Ώμž…λ‹ˆλ‹€.
title: ''
labels: 'Status: To Do, Priority: Medium, Type: Bugfix/Function, Type: Bugfix/UI'
assignees: ''
---

# λ°œμƒ μΌμ‹œ

# λ°œμƒ μœ„μΉ˜

# 증상

# μž¬ν˜„ 방법

# μŠ€ν¬λ¦°μƒ·

Issue Template 적용

  • μΆ”κ°€ 된 νŒŒμΌμ„ github 원격에 push ν•œ ν›„ New issue λ²„νŠΌμ„ λˆ„λ₯΄κ²Œ 되면 μ•„λž˜μ™€ 같이 선택 화면이 λ‚˜μ˜΄

image

Pull Request Template

  • λ§ˆν¬λ‹€μš΄ ν˜•μ‹μœΌλ‘œ 파일 생성
  • pull_request_template.md둜 파일 이름 μ§€μ •

μ˜ˆμ‹œ

# 반영 브랜치

# λ³€κ²½ 사항

# 확인 방법 (μŠ€ν¬λ¦°μƒ· 포함)

Pull Request Template 적용

image


μ°Έκ³ 

github-label-sync

Using templates to encourage useful issues and pull requests

[
{
"name": "Priority: Critical",
"color": "8c001a",
"description": "μš°μ„ μˆœμœ„ κΈ΄κΈ‰"
},
{
"name": "Priority: High",
"color": "FF0000",
"description": "μš°μ„ μˆœμœ„ 상"
},
{
"name": "Priority: Low",
"color": "F9966b",
"description": "μš°μ„ μˆœμœ„ ν•˜"
},
{
"name": "Priority: Medium",
"color": "E77471",
"description": "μš°μ„ μˆœμœ„ 쀑"
},
{
"name": "Status: Done",
"color": "a0ffb8",
"description": "λ¦¬λ·°κΉŒμ§€ μ™„λ£Œ 된 이슈"
},
{
"name": "Status: Duplicated",
"color": "cfd3d7",
"description": "이미 보고 된 이슈",
"aliases": [
"duplicate"
]
},
{
"name": "Status: In Progress",
"color": "539606",
"description": "ν˜„μž¬ 처리 쀑인 이슈"
},
{
"name": "Status: Pending",
"color": "66e26c",
"description": "보λ₯˜ 쀑인 이슈",
"aliases": [
"wontfix"
]
},
{
"name": "Status: Reviewing",
"color": "2db78b",
"description": "μ²˜λ¦¬ν•˜κ³  리뷰 쀑인 이슈"
},
{
"name": "Status: To Do",
"color": "757c06",
"description": "μ²˜λ¦¬ν•΄μ•Ό λ˜λŠ” 이슈"
},
{
"name": "Type: Bugfix/Function",
"color": "d73a4a",
"description": "정상 λ™μž‘ν•˜μ§€ μ•ŠλŠ” κΈ°λŠ₯",
"aliases": [
"bug"
]
},
{
"name": "Type: Bugfix/UI",
"color": "b60205",
"description": "정상 ν‘œμ‹œλ˜μ§€ μ•ŠλŠ” UI"
},
{
"name": "Type: Feature/Document",
"color": "0075ca",
"description": "λ¬Έμ„œ μΆ”κ°€ 및 보완 μž‘μ—…"
},
{
"name": "Type: Feature/Function",
"color": "a2eeef",
"description": "μƒˆλ‘œμš΄ κΈ°λŠ₯ 및 κ°œμ„  사항",
"aliases": [
"enhancement"
]
},
{
"name": "Type: Feature/UI",
"color": "7057ff",
"description": "UI μˆ˜μ • 및 κ°œμ„  사항"
},
{
"name": "Type: Hotfix",
"color": "de8ae2",
"description": "κΈ‰ν•˜κ²Œ μˆ˜μ •ν•΄μ•Ό λ˜λŠ” 사항"
},
{
"name": "Type: Release",
"color": "c2e0c6",
"description": "배포 κ΄€λ ¨ 이슈"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment