{"id":42301757,"url":"https://github.com/moreh-dev/pre-commit-hooks","last_synced_at":"2026-01-27T10:37:17.593Z","repository":{"id":297744683,"uuid":"748440917","full_name":"moreh-dev/pre-commit-hooks","owner":"moreh-dev","description":"자동화를 위한 git pre-commit hook","archived":false,"fork":false,"pushed_at":"2025-06-07T06:50:17.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-07T07:26:51.323Z","etag":null,"topics":["pre-commit","pre-commit-hooks"],"latest_commit_sha":null,"homepage":"https://pre-commit.com/","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moreh-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-26T01:05:40.000Z","updated_at":"2025-06-07T06:41:31.000Z","dependencies_parsed_at":"2025-06-07T07:36:55.823Z","dependency_job_id":null,"html_url":"https://github.com/moreh-dev/pre-commit-hooks","commit_stats":null,"previous_names":["moreh-dev/pre-commit-hooks"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/moreh-dev/pre-commit-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreh-dev%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreh-dev%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreh-dev%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreh-dev%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moreh-dev","download_url":"https://codeload.github.com/moreh-dev/pre-commit-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreh-dev%2Fpre-commit-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28812208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pre-commit","pre-commit-hooks"],"created_at":"2026-01-27T10:37:16.917Z","updated_at":"2026-01-27T10:37:17.578Z","avatar_url":"https://github.com/moreh-dev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pre-commit\n\n### 설정\n\n```shell\ngit config --global init.templateDir ~/.git-template \\\n\u0026\u0026 pre-commit init-templatedir ~/.git-template -t pre-commit -t prepare-commit-msg\n```\n\n위 명령어를 실행하면 레포지토리를 생성하거나 클론할 때 자동으로 pre-commit 훅이 등록됩니다.\n\n이미 레포지토리를 생성하거나 클론한 상태라면 해당 레포지토리에서 `pre-commit install` 명령어를 실행하여 훅을 등록할 수 있습니다.\n\n### add-jira-issue-key-to-commit-msg\n\n- `\u003cjiraProjectKey\u003e`: MAF, MO 등 프로젝트를 구분하는 키\n- `\u003cjiraIssueKey\u003e`: `\u003cjiraProjectKey\u003e-\u003cissueNumber\u003e` 형식의 이슈를 구분하는 키\n\n```yaml\ndefault_install_hook_types:\n  - pre-commit\n  - prepare-commit-msg\nrepos:\n  - repo: https://github.com/moreh-dev/pre-commit-hooks\n    rev: main\n    hooks:\n      - id: add-jira-issue-key-to-commit-msg\n        args:\n          - --key\n          - MAF\n          - --key\n          - MV\n          - --enable-no-issue\n```\n\n- args\n  - `-k|--key \u003cjiraProjectKey\u003e`\n    - JIRA 프로젝트 키를 지정합니다. 여러 개를 지정할 수 있습니다.\n    - 브랜치 명이 해당 `\u003cjiraIssueKey\u003e`로 시작하는 경우 커밋 메시지 앞에 `\u003cjiraIssueKey\u003e: `를 추가합니다.\n  - `-n|--enable-no-issue`\n    - 인식할 수 있는 `\u003cjiraIssueKey\u003e`가 없는 경우 `NO-ISSUE: `를 커밋 메시지 앞에 추가합니다.\n\n### commit convention\n\n- https://www.conventionalcommits.org/ko/v1.0.0/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoreh-dev%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoreh-dev%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoreh-dev%2Fpre-commit-hooks/lists"}