Jiseoup/showmycodePublic
EN|KO
  • 코드
  • 커밋
  • 풀 리퀘스트
← 목록으로

docs: streamline the contributing guide (#43)

JiseoupJISUB LIM · 2026년 6월 23일1157e55

변경된 파일3개+32 -26

변경된 파일

+32 -26 · 3개

@@ -3,38 +3,42 @@
Thanks for contributing!
This is a quick guide to get you up and running.
-## Setup
+Keep pull requests small — one feature or bug fix per PR.
+For larger changes, open an issue first to discuss the approach.
-```bash
-git clone https://github.com/<your-username>/showmycode.git
-cd showmycode
-npm install
-cp .env.example .env.local # fill in GITHUB_PAT, GITHUB_OWNER, GITHUB_REPOS (see README)
-npm run dev
-```
+## Sending a pull request
-## Workflow
+1. **Fork** the repository on GitHub, then **clone** your fork and add the `upstream` remote:
-We follow **GitHub Flow**: branch from `main`, open a PR, squash and merge.
+ ```bash
+ git clone https://github.com/<your-username>/showmycode.git
+ cd showmycode
+ git remote add upstream https://github.com/Jiseoup/showmycode.git
+ ```
-1. Create a branch with a prefix: `feat/`, `fix/`, `chore/`, `refactor/`, `docs/`, `i18n/`.
-2. Commit using [Conventional Commits](https://www.conventionalcommits.org/) (`feat:`, `fix:`, `chore:`, `refactor:`, `docs:`, `i18n:`).
-3. Run the checks below, then open a PR against `main` and fill in the template.
-4. PRs are **squash-merged** — the PR title becomes the commit on `main`, so it must follow Conventional Commits.
+2. **Install** dependencies and set up your environment:
-## Before you push
+ ```bash
+ npm install # also activates the git hooks
+ cp .env.example .env.local # fill in GITHUB_PAT, GITHUB_OWNER, GITHUB_REPOS (see README)
+ npm run dev # http://localhost:3000
+ ```
-CI runs these checks automatically on every PR, but running them locally first saves a round-trip:
+3. **Create a branch** with a prefix (`feat/`, `fix/`, `chore/`, `refactor/`, `docs/`, `i18n/`) — make your changes, then run the checks:
-```bash
-npm run format:check # run `npm run format` to auto-fix
-npm run lint
-npm run typecheck
-npm run build
-```
+ ```bash
+ npm run format:check # `npm run format` to auto-fix
+ npm run lint
+ npm run typecheck
+ npm run build
+ ```
+
+4. **Commit** using [Conventional Commits](https://www.conventionalcommits.org/) (`feat:`, `fix:`, `chore:`, `refactor:`, `docs:`, `i18n:`), push to your fork, and **open a PR** against `main`, filling in the PR template. PRs are squash-merged, so the PR title must follow Conventional Commits too.
## Conventions
-- Code style is enforced automatically by Prettier and ESLint — just run the checks above.
-- **i18n** — all user-facing strings must support KO/EN; add new strings to both `locales/ko.json` and `locales/en.json`.
+- There's no automated test suite — verify changes manually, including dark mode and the mobile layout (down to 320px).
+- Branch names and commit messages are checked locally by git hooks (set up by `npm install`) — use the prefixes above.
+- Code style is enforced by Prettier and ESLint — just run the checks above.
+- **i18n** — all user-facing strings must support EN/KO; add new strings to both `locales/en.json` and `locales/ko.json`.
- Be kind and respectful. See the [Code of Conduct](CODE_OF_CONDUCT.md).
@@ -134,7 +134,8 @@ GitHub 응답은 60초 동안 캐시되므로, 뷰어에게 표시되는 데이
## 🤝 기여하기
-기여를 환영합니다! 브랜치, 커밋 메시지, PR 프로세스에 대한 가이드라인은 [CONTRIBUTING.md](CONTRIBUTING.md)를 참고해주세요.
+기여를 환영합니다!
+브랜치, 커밋 메시지, PR 프로세스에 대한 가이드라인은 [CONTRIBUTING.md](CONTRIBUTING.md)를 참고해주세요.
## 📄 라이선스
@@ -135,7 +135,8 @@ GitHub responses are cached for 60 seconds, so data shown to viewers may be up t
## 🤝 Contributing
-Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on branching, commit messages, and the PR process.
+Contributions are welcome!
+Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on branching, commit messages, and the PR process.
## 📄 License