Skip to content

Instantly share code, notes, and snippets.

@liebespaar93
Last active October 4, 2023 04:31
Show Gist options
  • Select an option

  • Save liebespaar93/9ca9958f208c2874e2441082baab38a9 to your computer and use it in GitHub Desktop.

Select an option

Save liebespaar93/9ca9958f208c2874e2441082baab38a9 to your computer and use it in GitHub Desktop.
labels 작업 입니다
" ============================================================================
" Netrw Directory Listing (netrw v172)
" /labels
" Sorted by name
" Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:special
" ==============================================================================
../
./
README.md
get_labels.js
labels.json

간단한 이슈 변경 방법

참고 링크

  1. labels.json 작성

    labels.json을 밑에 형식에 맞게 작성해준다
    [
      {
        "name": "🚀 기능",
        "color": "0052CC",
        "description": "새로운 기능 또는 작업"
      }
    ]
  2. 실행

     npx github-label-sync --access-token <토큰정보> --labels labels.json <계정명>/<repo>

이슈 가져오기

특정 레포의 이슈 모든 설정 가져오기

const githubLabelSync = require('github-label-sync');

githubLabelSync({
  accessToken: '<토큰정보>',
  repo: '<계정명>/<repo>',
  labels: [],
  dryRun: true,
}).then(diff => {
  console.log(diff);
});
/**
* @bref 특정 레포지토리 라벨 설정을 가져오는 기능입니다.
* @link https://github.com/Financial-Times/github-label-sync
* @install npm i github-label-sync
* @run node get_labels.js
*/
const githubLabelSync = require('github-label-sync');
githubLabelSync({
accessToken: '<토큰정보>',
repo: '<계정명>/<repo>',
labels: [],
dryRun: true,
}).then(diff => {
console.log(diff);
});
[
{ "name": "♻️ 리펙토링", "color": "8f8387", "description": "리펙토링 작업" },
{ "name": "⚡️ 기능", "color": "F9D0C4", "description": "신규 기능" },
{ "name": "⛓️ 다이어그램", "color": "080A59", "description": "다이어그램 문서작업" },
{ "name": "🌎 환경설정", "color": "B051F3", "description": "환경설정 구축" },
{ "name": "🌑 Github", "color": "8f8387", "description": "깃 허브" },
{ "name": "🌱 Initial", "color": "44EA1F", "description": "첫 신규" },
{ "name": "🎉 배포", "color": "483C8C", "description": "배포 작업" },
{ "name": "🎓 학습", "color": "0052CC", "description": "학습" },
{ "name": "🎨 스타일", "color": "0052CC", "description": "새로은 스타일 및 디자인" },
{ "name": "🐝 버그", "color": "EDEE82", "description": "버그 발생" },
{ "name": "💣 삭제", "color": "ffffff", "description": "코드, 이슈, PR 삭제" },
{ "name": "💻 작업", "color": "0e8a16", "description": "작업" },
{ "name": "📝 문서", "color": "f63235", "description": "문서 수정 및 신규 등록" },
{ "name": "📤 업데이트", "color": "5319e7", "description": "업데이트" },
{ "name": "📦️ 병합", "color": "A3F436", "description": "병합작업" },
{ "name": "🔐 보안", "color": "E2DB56", "description": "보안 이슈" },
{ "name": "🗃️ 템플릿", "color": "0052CC", "description": "탬플릿 작성" },
{ "name": "🚀 기술", "color": "0052CC", "description": "새로운 기술 작업" },
{ "name": "🚧 작업 중지", "color": "000000", "description": "작업 중지 사항" },
{ "name": "🛠️ 수정", "color": "d876e3", "description": "수정 사항" },
{ "name": "🧪 테스트", "color": "008672", "description": "테스트 작업" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment