All Contributors

All Contributors

  • 문서
  • GitHub
  • Languages icon한국어
    • English
    • 日本語
    • Deutsch
    • Español
    • Français
    • Bahasa Indonesia
    • Polski
    • Português (Brasil)
    • Русский
    • 中文

›@all Contributors 봇 🤖

사양

  • 개요
  • 사양
  • Emoji Key ✨
  • 리포지토리 관리자
  • 툴링

@all Contributors 봇 🤖

  • 개요
  • 설치
  • 설명서
  • 설정
  • 자주 묻는 질문

CLI

  • 개요
  • 설치
  • 설명서
  • 설정

프로젝트

  • 개선 할 수 있도록 도와주세요
  • 운영 규정
  • 활용한 프로젝트 목록
Edit

봇 설정

.all-contributorsrc JSON 파일을 업데이트하여 all-contributors bot 동작을 구성 할 수 있습니다. The data used to generate the contributors list will be stored there, and you can configure how you want @all-contributors to generate the list.

CLI Configuration 과 유사한 봇 구성입니다.🤖

지정할 수있는 키는 다음과 같습니다.

옵션내용예제/기본값
projectName필수 옵션인 프로젝트 이름.예: all-contributors-cli
projectOwner필수적 옵션인 프로젝트가 호스팅되는 사용자의 이름.Example: tenshiAMD
repoType리포지토리 유형. github와 gitlab 둘중에 하나.기본값: github
repoHost리포지토리 호스트를 가리킵니다. 자가 호스팅 리포지토리를 사용하는 경우 변경하십시오.기본값: repoType이 github이면 https://github.com으로, repoType이 gitlab이면 https://gitlab.com
files업데이트 할 파일의 배열.기본값: ['README.md']
imageSize사용자의 아바타 크기 (픽셀 단위) 입니다.기본값: 100
commit기여자를 자동 추가 할 때 자동 커밋 배지.기본값: false
commitConventionCommit convention (angular, atom, ember, eslint, jshint, gitmoji, or none).Default: angular
contributorsPerLineContributors 테이블의 최대 열 수.기본값: 7
contributorsSortAlphabeticallytrue: 알파벳순으로 정렬. false: 추가 순서대로 표시.기본값: false
badgeTemplateLodash 템플릿을 정의하여 배지를 생성하세요.
contributorTemplateLodash 템플릿을 정의하여 기여자를 생성하세요.
wrapperTemplateDefine your own lodash template to wrap the list of contributors
types기여 유형에 대한 사용자 기호 또는 링크 템플리트를 지정하세요. 문서화 된 유형을 대체 할 수 있습니다.
linkToUsageAdds a footer with link to usage (either true or false)Default: true
skipCiMakes the CI ignore the commit. (either true or false)Default: true
contributors이 프로젝트의 참여자 목록입니다. @ all-contributors add 에 의해 업데이트됩니다.
{
  "projectName": "all-contributors",
  "projectOwner": "all-contributors",
  "repoType": "github",
  "repoHost": "https://github.com",
  "files": ["README.md"],
  "imageSize": 100,
  "commit": false,
  "contributorsPerLine": 7,
  "contributorsSortAlphabetically": false,
  "badgeTemplate": "[![All Contributors](https://img.shields.io/github/all-contributors/<%= projectOwner %>/<%= projectName %>?color=ee8449&style=flat-square)](#contributors)",
  "contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
  "wrapperTemplate": "\n<table>\n  <tbody><%= bodyContent %>  </tbody>\n<%= tableFooterContent %></table>\n\n",
  "types": {
    "custom": {
      "symbol": "🔭",
      "description": "A custom contribution type.",
      "link": "[<%= symbol %>](<%= url %> \"<%= description %>\"),"
    }
  },
  "linkToUsage": true,
  "skipCi": true,
  "contributors": []
}

All Contributors 테이블을 다른 파일로 옮기기

아시다시피 컨트리뷰터 테이블의 기본 파일은 README.md입니다. 하지만 프로젝트에 많은 기여자가 있는 경우 README.md 파일에 모든 기여자분을 테이블을 포함하는 것은 관리하기가 힘듭니다. 그런 상황에는 다른 파일에 기여자를 입력할 수 있습니다.

많은 기여자가 있을 때에는 다음과 같이 구조를 바꾸어 보세요. 이 튜토리얼에서는 CONTRIBUTORS.md파일로 All Contributors 테이블을 변경합니다.

  1. 먼저 봇을 설치하세요. 설치 하는 방법은 봇 설치를 참고 하세요.

  2. 첫 번째 기여자를 추가합니다. 추가하는 방법은 봇 사용을 참고 하세요.

  3. CONTRIBUTORS.md 파일을 만드세요.

  4. Copy the code which can be found in this guide.

  5. 새 파일 이름과 일치하도록 .all-contributorsrc JSON 파일의 files 키를 수정하세요.

    {
      "files": [
        "CONTRIBUTORS.md"
      ],
    ...
    }
    
  6. Now you should be good to go. New contributors will be added to this new file instead of the README.md file.

← 설명서자주 묻는 질문 →
All Contributors