Toy
깃허브(Github) - 이슈 라벨(Issue Label) 템플릿 만들기
라큐브
2023. 2. 22. 15:02
이슈 라벨(Issue Label)
프로젝트의 이슈 내용, 구분, 상태 등을 분류하기 위해 사용합니다.
깃랩에서 깃허브로 넘어오면서 발생한 문제
깃랩(Gitlab)에서는 같은 그룹 내 레포지토리는 이슈 라벨(Issue Label) 공유가 된다는 것이었습니다. 그런데
깃허브(Github)에서는 레포지토리 생성할 때마다 이슈 라벨(Issue Label)을 생성하는게 매우 불편해졌습니다.
깃허브 라벨 템플릿 작성하기
깃허브 라벨을 만들 수 있는 레포지토리가 있습니다.
yeong-hyeon-kim/Lalabel: Template Labels (github.com)
GitHub - yeong-hyeon-kim/Lalabel: Template Labels
Template Labels. Contribute to yeong-hyeon-kim/Lalabel development by creating an account on GitHub.
github.com
1. 레포지토리를 포크(Fork)하여 내 레포지토리에 가져옵니다.
2. Github Personal Access Token 발급합니다.
'Profile > Settings > Developer settings > Tokens' 경로에서 발급 받을 수 있습니다.
Select scopes는 repo, workflow 만 체크하여 생성합니다.
3. 레포지토리 시크릿(Secrets) 추가합니다.
TOKEN : Github Personal Access Token
REPO : 레포지토리 이름
4. 포크한 레포지토리 액션(Actions) 탭에서 녹색 버튼을 눌러 Workflows를 허용합니다.
5. 포크한 레포지토리에서 라벨 템플릿(labels.json)을 수정합니다.
Repository 속성에 라벨을 '적용할 레포지토리 이름'을 작성합니다.
[
{ "Repository": "적용할 레포지토리 이름" },
[
{
"name": "✔ Status:Done",
"color": "0E8A16",
"description": "작업 완료",
"hex": "#0E8A16"
},
{
"name": "❗Ticket:Bug",
"color": "B60205",
"description": "버그",
"hex": "#B60205"
},
{
"name": "⏳ Status:Wait",
"color": "009966",
"description": "대기",
"hex": "#009966"
},
{
"name": "✨ Ticket:Feature",
"color": "1D76DB",
"description": "기능",
"hex": "#1D76DB"
},
{
"name": "🎀 Ticket:Design",
"color": "D93F0B",
"description": "디자인",
"hex": "#D93F0B"
},
{
"name": "📈 Ticket:Improvement",
"color": "5319E7",
"description": "개선사항",
"hex": "#5319E7"
},
{
"name": "📝 Ticket:Document",
"color": "006B75",
"description": "문서",
"hex": "#006B75"
},
{
"name": "📨 Ticket:Request",
"color": "0052CC",
"description": "요청사항",
"hex": "#0052CC"
},
{
"name": "🧼 Ticket:Refactor",
"color": "8A2BE2",
"description": "코드정리",
"hex": "#8A2BE2"
},
{
"name": "🛠 Status:In Progress",
"color": "3cb371",
"description": "작업 진행 중",
"hex": "#3cb371"
},
{
"name": "🧪 Ticket:Test",
"color": "FBCA04",
"description": "테스트",
"hex": "#FBCA04"
}
]
]
수정 후 커밋 합니다.
6. Workflows가 완료된 후 레포지토리 이슈 라벨을 확인합니다.
반응형