Skip to content

Commit

Permalink
Add contributing.md (PyTorchKorea#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taeyoung96 authored Jul 28, 2022
1 parent 99cd1d5 commit 7fdca78
Showing 1 changed file with 172 additions and 2 deletions.
174 changes: 172 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,173 @@
# ๊ธฐ์—ฌํ•˜๊ธฐ
# PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ๋ฒˆ์—ญ ๊ธฐ์—ฌํ•˜๊ธฐ

*TBD*
PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ์— ๋ฐฉ๋ฌธํ•ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์ด ๋ฌธ์„œ๋Š” [PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ์— ๊ธฐ์—ฌํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•ˆ๋‚ดํ•ฉ๋‹ˆ๋‹ค.


## ๊ธฐ์—ฌํ•˜๊ธฐ ๊ฐœ์š”

[๋ณธ ์ €์žฅ์†Œ](https://github.com/PyTorchKorea/hub-kr)๋Š” [PyTorch ๊ณต์‹ ํ—ˆ๋ธŒ](https://pytorch.org/hub/)๋ฅผ ๋ฒˆ์—ญํ•˜๋Š” ํ”„๋กœ์ ํŠธ๋ฅผ ์œ„ํ•œ ๊ณณ์œผ๋กœ,
[Pytorch ๊ณต์‹ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ](https://github.com/pytorch/hub)์˜ ๋‚ด์šฉ์„ ๋น„์ •๊ธฐ์ ์œผ๋กœ ๋ฐ˜์˜ํ•˜๊ณ , ๋ฒˆ์—ญ ๋ฐ ๊ฐœ์„ ํ•ฉ๋‹ˆ๋‹ค.

ํฌ๊ฒŒ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ธฐ์—ฌ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค.

* [1. ์˜คํƒˆ์ž๋ฅผ ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜ ๋ฒˆ์—ญ์„ ๊ฐœ์„ ํ•˜๋Š” ๊ธฐ์—ฌ](#1-์˜คํƒˆ์ž๋ฅผ-์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜-๋ฒˆ์—ญ์„-๊ฐœ์„ ํ•˜๋Š”-๊ธฐ์—ฌ)
* [PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์‚ฌ์ดํŠธ](https://pytorch.kr/hub/)์—์„œ ๋ฐœ๊ฒฌํ•œ ์˜คํƒˆ์ž๋ฅผ [๋ณธ ์ €์žฅ์†Œ](https://github.com/PyTorchKorea/hub-kr)์—์„œ ๊ณ ์น˜๋Š” ๊ธฐ์—ฌ์ž…๋‹ˆ๋‹ค.
* [2. ๋ฒˆ์—ญ๋˜์ง€ ์•Š์€ ํ—ˆ๋ธŒ ๋ชจ๋ธ์„ ๋ฒˆ์—ญํ•˜๋Š” ๊ธฐ์—ฌ](#2-๋ฒˆ์—ญ๋˜์ง€-์•Š์€-ํ—ˆ๋ธŒ-๋ชจ๋ธ์„-๋ฒˆ์—ญํ•˜๋Š”-๊ธฐ์—ฌ)
* [PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์‚ฌ์ดํŠธ](https://pytorch.kr/hub/)์— ์•„์ง ๋ฒˆ์—ญ๋˜์ง€ ์•Š์€ ๋ชจ๋ธ ํ—ˆ๋ธŒ๋ฅผ ๋ฒˆ์—ญํ•˜๋Š” ๊ธฐ์—ฌ์ž…๋‹ˆ๋‹ค.
* [3. 2๋กœ ๋ฒˆ์—ญ๋œ ๋ฌธ์„œ๋ฅผ ๋ฆฌ๋ทฐํ•˜๋Š” ๊ธฐ์—ฌ](#3-2๋กœ-๋ฒˆ์—ญ๋œ-๋ฌธ์„œ๋ฅผ-๋ฆฌ๋ทฐํ•˜๋Š”-๊ธฐ์—ฌ) :star:
* [๋ณธ ์ €์žฅ์†Œ์— Pull Request๋œ ํ—ˆ๋ธŒ ๋ฌธ์„œ](https://github.com/PyTorchKorea/hub-kr/pulls)๋ฅผ ๋ฆฌ๋ทฐํ•˜๋Š” ๊ธฐ์—ฌ์ž…๋‹ˆ๋‹ค.
* ~[4. ๊ณต์‹ Pytorch ํ—ˆ๋ธŒ ๋‚ด์šฉ์„ ๋ฐ˜์˜ํ•˜๋Š” ๊ธฐ์—ฌ](#4-๊ณต์‹-Pytorch-ํ—ˆ๋ธŒ-๋‚ด์šฉ์„-๋ฐ˜์˜ํ•˜๋Š”-๊ธฐ์—ฌ)~
* ~[Pytorch ๊ณต์‹ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ](https://github.com/pytorch/hub)์˜ ๋‚ด์šฉ์„ [PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ](https://github.com/PyTorchKorea/hub-kr)์— ๋ฐ˜์˜ํ•˜๋Š” ๊ธฐ์—ฌ์ž…๋‹ˆ๋‹ค.~


## ๊ธฐ์—ฌ ๊ฒฐ๊ณผ๋ฌผ์˜ ๋ผ์ด์„ ์Šค ๋™์˜

PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ๋Š” [Pytorch ๊ณต์‹ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ](https://github.com/pytorch/hub)์™€ ๋™์ผํ•œ [BSD 3ํ•ญ ๋ผ์ด์„ ์Šค](https://github.com/PyTorchKorea/pytorch.kr/blob/master/LICENSE)๋ฅผ ๋”ฐ๋ฆ…๋‹ˆ๋‹ค. \
๋”ฐ๋ผ์„œ ๊ธฐ์—ฌํ•˜์‹  ๋ชจ๋“  ๋‚ด์šฉ์— [BSD 3ํ•ญ ๋ผ์ด์„ ์Šค](https://github.com/PyTorchKorea/pytorch.kr/blob/master/LICENSE)๊ฐ€ ์ ์šฉ๋จ์„ ์ธ์ง€ํ•˜์‹œ๊ณ  ๋™์˜ํ•˜์‹œ๋Š” ๊ฒฝ์šฐ์—๋งŒ ์•„๋ž˜ ๋ฌธ์„œ ๋‚ด์šฉ๊ณผ ๊ฐ™์ด ๊ธฐ์—ฌํ•ด์ฃผ์„ธ์š”.


## ๊ธฐ์—ฌํ•˜๊ธฐ ์ ˆ์ฐจ

๋ชจ๋“  ๊ธฐ์—ฌ๋Š” [๋ณธ ์ €์žฅ์†Œ์— ์ด์Šˆ](https://github.com/PyTorchKorea/hub-kr/issues)๋ฅผ ๋‚จ๊ธด ํ›„ [Pull Request๋ฅผ ๋ณด๋‚ด๋Š” ๊ฒƒ](https://github.com/PyTorchKorea/hub-kr/pulls)์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค. \
์ด ๊ณผ์ •์„ ํ†ตํ•ด Pull Request๋ฅผ ์œ„ํ•œ Commit์„ ๋งŒ๋“ค๊ธฐ ์ „์— ์ด์Šˆ๋ฅผ ํ†ตํ•ด ํ•ด๋‹น ๋‚ด์šฉ์— ๊ธฐ์—ฌ๊ฐ€ ํ•„์š”ํ•œ์ง€ ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•˜๊ณ  ํ˜‘์˜ํ•˜์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค. \
(๋ฌผ๋ก  ์ด์Šˆ๋ฅผ ๋‚จ๊ธฐ์…จ๋‹ค๊ณ  ํ•ด์„œ ๋ฐ˜๋“œ์‹œ ํ•ด๋‹น ๋ฌธ์ œ๋ฅผ ๊ฐœ์„ ํ•˜์…”์•ผ ํ•˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๋‹ˆ, ๋งˆ์Œ ํŽธํžˆ ์ด์Šˆ๋ฅผ ๋‚จ๊ฒจ์ฃผ์„ธ์š”. :))

### Pull Reqeust ๋งŒ๋“ค๊ธฐ

#### Pull Request ๋งŒ๋“ค๊ธฐ ์ „ : ์ฃผ์˜์‚ฌํ•ญ

* ํ•˜๋‚˜์˜ commit, branch, Pull Request(PR)์—๋Š” ํ•˜๋‚˜์˜ ๋ณ€๊ฒฝ ์‚ฌํ•ญ๋งŒ ๋‹ด์•„์ฃผ์„ธ์š”.
* ์—ฌ๋Ÿฌ ์ˆ˜์ •์‚ฌํ•ญ์— ๋Œ€ํ•ด์„œ๋Š” ๊ฐ๊ฐ ๋‹ค๋ฅธ branch์—์„œ ์ž‘์—…ํ•˜์‹  ๋’ค, ์ƒˆ๋กœ์šด PR์„ ๋งŒ๋“ค์–ด์ฃผ์„ธ์š”.
* ์ƒˆ๋กœ์šด branch๊ฐ€ ์•„๋‹Œ, ์ด๋ฏธ PR๋ฅผ ๋งŒ๋“œ์…จ๋˜ branch์— ์ถ”๊ฐ€ commit ์‹œ์—๋Š” ์ด์ „ commit๋“ค๊ณผ ํ•จ๊ป˜ Pull Request๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
* Pull Request๋ฅผ ๋งŒ๋“ค๊ธฐ ๋ฌธ๋ฒ• ์˜ค๋ฅ˜๋‚˜ ๊นจ์ง„ ๊ธ€์ž๋Š” ์—†๋Š”์ง€ ํ™•์ธํ•ด์ฃผ์„ธ์š”.
* ๊ธฐ๋ณธ์ ์ธ ๋ฌธ๋ฒ•์€ Markdown ๋ฌธ๋ฒ•์„ ์ง€ํ‚ค๋ฉด์„œ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.
* ์ด๋ฏธ ๋ฒˆ์—ญ๋œ ๋ฌธ์„œ๋“ค์„ ์ฐธ๊ณ ํ•˜์…”๋„ ์ข‹์Šต๋‹ˆ๋‹ค.
* ๋ฒˆ์—ญ ํ›„์—๋Š” (๋‚ด ์ปดํ“จํ„ฐ์—์„œ) ๋นŒ๋“œ๋ฅผ ํ•œ ํ›„, ๋ฌธ๋ฒ• ์˜ค๋ฅ˜๋ฅผ ํ™•์ธํ•ด์ฃผ์„ธ์š”.
* ์˜ค๋ฅ˜๊ฐ€ ๋งŽ๊ฑฐ๋‚˜ ๋‹ค๋ฅธ PR์˜ commit์ด ์„ž์—ฌ์žˆ๋Š” ๊ฒฝ์šฐ ํ•ด๋‹น PR์€ ๊ด€๋ฆฌ์ž๊ฐ€ ๋‹ซ์„ ์ˆ˜ ์žˆ์œผ๋‹ˆ ์ฃผ์˜ํ•ด์ฃผ์„ธ์š”.

#### Pull Request ๋งŒ๋“ค๊ธฐ : ์ƒ์„ฑํ•˜๊ธฐ

* `๋ผ์ด์„ ์Šค ๋™์˜` ์ฒดํฌํ•˜๊ธฐ โœ…
* ๊ธฐ์—ฌํ•ด์ฃผ์‹  ๋‚ด์šฉ์„ ๋” ๋งŽ์€ ๋ถ„๋“ค์ด ์ฐธ๊ณ  / ๊ฐœ์„  / ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋ผ์ด์„ ์Šค ์ ์šฉ์— ๋™์˜ํ•ด์ฃผ์„ธ์š”.
* ๋™์˜๋ฅผ ๊ฑฐ๋ถ€ํ•˜์‹ค ์ˆ˜ ์žˆ์œผ๋‚˜, ์ด ๊ฒฝ์šฐ ํ•ด๋‹น PR์˜ ๋‚ด์šฉ์˜ ์ž์œ ๋กœ์šด ์‚ฌ์šฉ์ด ์–ด๋ ต๊ธฐ ๋•Œ๋ฌธ์— ๋ฆฌ๋ทฐ ๋ฐ ๋ฐ˜์˜์€ ์ง„ํ–‰ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
* PR ๋‚ด์šฉ์— ๊ด€๋ จ ์ด์Šˆ ๋ฒˆํ˜ธ ์ ์–ด์ฃผ๊ธฐ ๐Ÿ”ข
* ๋…ผ์˜๋œ ๋‚ด์šฉ์ด ์žˆ๋‹ค๋ฉด ์ฐธ๊ณ ํ•  ์ˆ˜ ์žˆ๋„๋ก ์–ด๋– ํ•œ ์ด์Šˆ๋กœ๋ถ€ํ„ฐ ์ƒ์„ฑํ•œ PR์ธ์ง€ ์•Œ๋ ค์ฃผ์„ธ์š”.
* PR ์ข…๋ฅ˜ ์„ ํƒํ•˜๊ธฐ
* ๋ฆฌ๋ทฐ์–ด์—๊ฒŒ ์–ด๋–ค ์ข…๋ฅ˜์˜ PR์ธ์ง€ ์•Œ๋ ค์ฃผ์„ธ์š”.
* PR ์„ค๋ช…ํ•˜๊ธฐ
* ์ด PR์„ ํ†ตํ•ด ์–ด๋– ํ•œ ๊ฒƒ๋“ค์ด ๋ณ€๊ฒฝ๋˜๋Š”์ง€ ์•Œ๋ ค์ฃผ์„ธ์š”.
* **Tip**: ๋งŒ์•ฝ ๋ฌธ์„œ๊ฐ€ ๋ฐฉ๋Œ€ํ•ด์„œ ์ค‘๊ฐ„ ํ”ผ๋“œ๋ฐฑ์ด ํ•„์š”ํ•˜๋‹ค๋ฉด Draft PR ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
* ์ž์„ธํ•œ ๋‚ด์šฉ์€ [GitHub Blog](https://github.blog/2019-02-14-introducing-draft-pull-requests/)์˜ ๊ธ€์„ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”.

#### Pull Request ๋งŒ๋“  ํ›„ : ๋ฆฌ๋ทฐ๋ฅผ ๋ฐ›์•˜์„ ๋•Œ

* ๋ฆฌ๋ทฐ ๋‚ด์šฉ์— ๋Œ€ํ•œ ์ถ”๊ฐ€ ์˜๊ฒฌ์ด ์žˆ์„ ๊ฒฝ์šฐ ํ•ด๋‹น ๋ฆฌ๋ทฐ์— ๋Œ“๊ธ€๋กœ ์˜๊ฒฌ์„ ์ฃผ๊ณ  ๋ฐ›์Šต๋‹ˆ๋‹ค.
* ๋ฒˆ์—ญํ•œ ๋ฌธ์„œ์˜ ๋‚ด์šฉ์€ ๋ฒˆ์—ญ์ž๊ฐ€ ๊ฐ€์žฅ ์ž˜ ์•Œ๊ณ  ์žˆ์œผ๋ฏ€๋กœ ๋ฆฌ๋ทฐ์–ด์˜ ์˜๊ฒฌ์— ๋ฐ˜๋“œ์‹œ ๋”ฐ๋ผ์•ผ ํ•˜๋Š” ๊ฒƒ์€ ์•„๋‹™๋‹ˆ๋‹ค.
* ํ•˜์ง€๋งŒ ๋ฒˆ์—ญ ์‹ค์ˆ˜๋‚˜ ์˜ค๋ฅ˜, ์ž˜๋ชป๋œ Markdown ๋ฌธ๋ฒ•์— ๋Œ€ํ•œ ๋‚ด์šฉ์€ ๊ฐ€๊ธ‰์  ๋ฐ˜์˜ํ•ด์ฃผ์‹œ๊ธฐ๋ฅผ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
* ๋‹ค๋ฅธ ๋ฌธ์„œ๋“ค๊ณผ์˜ ์ผ๊ด€์„ฑ, ์ดํ•ด๋ฅผ ์œ„ํ•ด ์ถ”๊ฐ€๋กœ ์š”์ฒญ๋“œ๋ฆฌ๋Š” ๋‚ด์šฉ๋“ค๋„ ์žˆ์„ ์ˆ˜ ์žˆ์œผ๋‹ˆ ๊ฐ์•ˆํ•ด์ฃผ์„ธ์š”.
* ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ๊ณ ์น˜๊ธฐ๋กœ ํ•˜์˜€๋‹ค๋ฉด, Pull Request๋ฅผ ๋งŒ๋“  ์›๋ณธ ์ €์žฅ์†Œ / branch์— ์ถ”๊ฐ€ commit์„ ํ•ฉ๋‹ˆ๋‹ค.
* ๋ฆฌ๋ทฐ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜์˜ํ•œ ๊ฒฝ์šฐ `Resolve Conversation` ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ๋ฆฌ๋ทฐ์–ด์—๊ฒŒ ์•Œ๋ฆฝ๋‹ˆ๋‹ค.

### Pull Request ๋ฆฌ๋ทฐํ•˜๊ธฐ

* ๋ฆฌ๋ทฐ ์ „ (TRANSLATION_GUIDE.md - TBD) ๋ฌธ์„œ๋ฅผ ์ฝ๊ณ  ๋ฆฌ๋ทฐํ•ด์ฃผ์„ธ์š”.
* ํŠนํžˆ ๋‹ค์Œ์˜ ๋‚ด์šฉ๋“ค์„ ์œ ์˜ํ•ด์ฃผ์„ธ์š”.
* ๋ฒˆ์—ญ๋œ ์šฉ์–ด๋“ค์ด ์šฉ์–ด์ง‘์— ๋งž๊ฒŒ ์‚ฌ์šฉ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
* ๋ฒˆ์—ญ๋œ ๋‚ด์šฉ์— ์˜คํƒˆ์ž๊ฐ€ ์žˆ๋Š”์ง€ ํ™•์ธํ•ด ๋ด…๋‹ˆ๋‹ค.
* ๋ถ€์ž์—ฐ์Šค๋Ÿฌ์šด ๋‚ด์šฉ์ด ์žˆ๋‹ค๋ฉด ์ข€ ๋” ๋‚˜์€ ๋ฒˆ์—ญ์œผ๋กœ ์ œ์•ˆํ•˜์—ฌ ๋ด…๋‹ˆ๋‹ค.
* Markdown ๋ฌธ๋ฒ•์— ๋งž๊ฒŒ ์ž˜ ์ž‘์„ฑ๋˜์–ด์žˆ๋Š”์ง€ ํ™•์ธํ•ด ๋ด…๋‹ˆ๋‹ค.
* ๋งํ•˜๋ ค๋Š” ๋‚ด์šฉ์ด ์ด๋ฏธ ๋‹ค๋ฅธ ๋Œ“๊ธ€์— ์žˆ๋‹ค๋ฉด ๊ณต๊ฐ ์ด๋ชจ์ง€ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์š”.


## (๊ธฐ์—ฌ ์ข…๋ฅ˜์— ๋”ฐ๋ฅธ) ๊ธฐ์—ฌ ๋ฐฉ๋ฒ•

### 1. ์˜คํƒˆ์ž๋ฅผ ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜ ๋ฒˆ์—ญ์„ ๊ฐœ์„ ํ•˜๋Š” ๊ธฐ์—ฌ

[PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์‚ฌ์ดํŠธ](https://pytorch.kr/hub/)์—์„œ ๋ฐœ๊ฒฌํ•œ ์˜คํƒˆ์ž๋ฅผ ๊ณ ์น˜๋Š” ๊ธฐ์—ฌ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

#### 1-1. ์ด์Šˆ ๋‚จ๊ธฐ๊ธฐ

(๋งค์šฐ ๋‚ฎ์€ ํ™•๋ฅ ๋กœ) ํ•ด๋‹น ์˜คํƒˆ์ž๊ฐ€ ์˜๋„ํ•œ ๊ฒƒ์ผ ์ˆ˜ ์žˆ์œผ๋‹ˆ, ํ•ด๋‹น ๋ฌธ์ œ์ ์„ ๊ณ ์นœ Pull Request๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์ „์— [๋ณธ ์ €์žฅ์†Œ์— ์ด์Šˆ](https://github.com/PyTorchKorea/hub-kr/issues)๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ฑฐ๋‚˜ ์ƒˆ๋กœ ๋‚จ๊ฒจ์ฃผ์„ธ์š”.

ํ•ด๋‹น ๋ฌธ์ œ์ ์— ๋Œ€ํ•œ ๊ฐœ์„  ์‚ฌํ•ญ์ด **์ด๋ฏธ ๋…ผ์˜๋˜์—ˆ๊ฑฐ๋‚˜ ์ง„ํ–‰ ์ค‘์ธ Pull Request๋ฅผ ํ†ตํ•ด ํ•ด๊ฒฐ ์ค‘์ผ ์ˆ˜ ์žˆ์œผ๋‹ˆ, ์ƒˆ๋กœ ์ด์Šˆ๋ฅผ ๋งŒ๋“œ์‹œ๊ธฐ ์ „, ๋จผ์ € ๊ฒ€์ƒ‰**์„ ํ•ด์ฃผ์‹œ๊ธฐ๋ฅผ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

์ดํ›„, ์ƒˆ๋กœ ๋‚จ๊ฒจ์ฃผ์‹  ์ด์Šˆ์—์„œ ์ €์žฅ์†Œ ๊ด€๋ฆฌ์ž ๋ฐ ๋‹ค๋ฅธ ๋ฐฉ๋ฌธ์ž๋“ค์ด ํ•จ๊ป˜ ๋ฌธ์ œ์ ์— ๋Œ€ํ•ด ํ† ์˜ํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. (๋˜๋Š” ์ด๋ฏธ ๊ด€๋ จ ์ด์Šˆ๊ฐ€ ์กด์žฌํ•˜์ง€๋งŒ ํ•ด๊ฒฐ ์ค‘์ด์ง€ ์•Š์€ ๊ฒฝ์šฐ์—๋Š” ๋ง๊ธ€์„ ํ†ตํ•ด ๊ธฐ์—ฌ๋ฅผ ์‹œ์ž‘ํ•จ์„ ์•Œ๋ ค์ฃผ์„ธ์š”.)

#### 1-2. ์ €์žฅ์†Œ ๋ณต์ œํ•˜๊ธฐ

์˜คํƒˆ์ž๋ฅผ ์ˆ˜์ •ํ•˜๊ธฐ ์œ„ํ•ด ์ €์žฅ์†Œ๋ฅผ ๋ณต์ œํ•ฉ๋‹ˆ๋‹ค. \
์ €์žฅ์†Œ ๋ณต์ œ๊ฐ€ ์ฒ˜์Œ์ด์‹œ๋ผ๋ฉด [GitHub์˜ ์ €์žฅ์†Œ ๋ณต์ œ ๊ด€๋ จ ๋„์›€๋ง](https://help.github.com/en/github/getting-started-with-github/fork-a-repo)์„ ์ฐธ์กฐํ•ด์ฃผ์„ธ์š”.


#### 1-3. ์˜คํƒˆ์ž ์ˆ˜์ •ํ•˜๊ธฐ

์œ„์—์„œ ์ฐพ์€ ์›๋ณธ ํ—ˆ๋ธŒ ๋ฌธ์„œ๋ฅผ Markdown ๋ฌธ๋ฒ•์— ๋งž์ถฐ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. \
Markdown ๋ฌธ๋ฒ•์— ์ต์ˆ™ํ•˜์ง€ ์•Š์€ ๊ฒฝ์šฐ, ๋‹ค๋ฅธ ํ—ˆ๋ธŒ ๋ฌธ์„œ์˜ ์›๋ณธ ๋ฌธ์„œ์™€ ๋นŒ๋“œ ๊ฒฐ๊ณผ๋ฌผ์„ ๋น„๊ตํ•ด๋ณด๋ฉด์„œ ๋นŒ๋“œ ๊ฒฐ๊ณผ๋ฌผ์„ ์˜ˆ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

#### 1-4. (๋‚ด ์ปดํ“จํ„ฐ์—์„œ) ๊ฒฐ๊ณผ ํ™•์ธํ•˜๊ธฐ

์ €์žฅ์†Œ์˜ ์ตœ์ƒ์œ„ ๊ฒฝ๋กœ์—์„œ `preview_hub.sh` ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜๋ฉด ์ฝ”๋“œ ์‹คํ–‰ ์—†์ด `http://127.0.0.1:4000/` ๋กœ์ปฌ ์ฃผ์†Œ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋นŒ๋“œ ๊ฒฐ๊ณผ๋ฌผ์„ ๋น ๋ฅด๊ฒŒ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

#### 1-5. Pull Request ๋งŒ๋“ค๊ธฐ

์ˆ˜์ •์„ ์™„๋ฃŒํ•œ ๋‚ด์šฉ์„ ๋ณต์ œํ•œ ์ €์žฅ์†Œ์— Commit ๋ฐ Pushํ•˜๊ณ , Pull Request๋ฅผ ๋‚จ๊น๋‹ˆ๋‹ค. \
Pull Request๋ฅผ ๋งŒ๋“œ์‹œ๊ธฐ ์ „์— ์ด ๋ฌธ์„œ์— ํฌํ•จ๋œ [Pull Request ๋งŒ๋“ค๊ธฐ](#Pull-Request-๋งŒ๋“ค๊ธฐ) ๋ถ€๋ถ„์„ ๋ฐ˜๋“œ์‹œ ์ฝ์–ด์ฃผ์„ธ์š”. \
๋งŒ์•ฝ Pull Request ๋งŒ๋“ค๊ธฐ๊ฐ€ ์ฒ˜์Œ์ด์‹œ๋ผ๋ฉด [GitHub์˜ Pull Request ์†Œ๊ฐœ ๋„์›€๋ง](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) ๋ฐ [๋ณต์ œํ•œ ์ €์žฅ์†Œ๋กœ๋ถ€ํ„ฐ Pull Request ๋งŒ๋“ค๊ธฐ ๋„์›€๋ง](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork)์„ ์ฐธ์กฐํ•ด์ฃผ์„ธ์š”.

### 2. ๋ฒˆ์—ญ๋˜์ง€ ์•Š์€ ํ—ˆ๋ธŒ ๋ชจ๋ธ์„ ๋ฒˆ์—ญํ•˜๋Š” ๊ธฐ์—ฌ

[PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์‚ฌ์ดํŠธ](https://pytorch.kr/hub/)์— ์•„์ง ๋ฒˆ์—ญ๋˜์ง€ ์•Š์€ ๋ชจ๋ธ ํ—ˆ๋ธŒ์„ ๋ฒˆ์—ญํ•˜๋Š” ๊ธฐ์—ฌ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

#### 2-1. ์ด์Šˆ ๋‚จ๊ธฐ๊ธฐ

(๋งค์šฐ ๋‚ฎ์€ ํ™•๋ฅ ๋กœ) ํ•ด๋‹น ํ—ˆ๋ธŒ์ด ๋ฒˆ์—ญ ์ค‘์ผ ์ˆ˜ ์žˆ์œผ๋‹ˆ, ๋ฒˆ์—ญ ์ „์— Pull Request๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์ „์— [๋ณธ ์ €์žฅ์†Œ์— ์ด์Šˆ](https://github.com/PyTorchKorea/hub-kr/issues)๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ฑฐ๋‚˜ ์ƒˆ๋กœ ๋‚จ๊ฒจ์ฃผ์„ธ์š”.

ํ•ด๋‹น ํ—ˆ๋ธŒ์— ๋Œ€ํ•œ **๋ฒˆ์—ญ์ด ์ด๋ฏธ ๋…ผ์˜๋˜์—ˆ๊ฑฐ๋‚˜ Pull Request๋ฅผ ํ†ตํ•ด ์ง„ํ–‰ ์ค‘์ผ ์ˆ˜ ์žˆ์œผ๋‹ˆ, ์ƒˆ๋กœ ์ด์Šˆ๋ฅผ ๋งŒ๋“œ์‹œ๊ธฐ ์ „, ๋จผ์ € ๊ฒ€์ƒ‰**์„ ํ•ด์ฃผ์‹œ๊ธฐ๋ฅผ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. \
์ดํ›„, ์ƒˆ๋กœ ๋‚จ๊ฒจ์ฃผ์‹  ์ด์Šˆ์—์„œ ์ €์žฅ์†Œ ๊ด€๋ฆฌ์ž ๋ฐ ๋‹ค๋ฅธ ๋ฐฉ๋ฌธ์ž๋“ค์ด ํ•จ๊ป˜ ๋ฒˆ์—ญ ์ง„ํ–‰์— ๋Œ€ํ•ด ํ† ์˜ํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. \
(๋˜๋Š” ์ด๋ฏธ ๊ด€๋ จ ์ด์Šˆ๊ฐ€ ์กด์žฌํ•˜์ง€๋งŒ ๋ฒˆ์—ญ ์ค‘์ด์ง€ ์•Š์€ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ด๋Š” ๊ฒฝ์šฐ์—๋Š” ๋Œ“๊ธ€์„ ํ†ตํ•ด ๊ธฐ์—ฌ๋ฅผ ์‹œ์ž‘ํ•จ์„ ์•Œ๋ ค์ฃผ์„ธ์š”.)

#### 2-2. ์ €์žฅ์†Œ ๋ณต์ œํ•˜๊ธฐ

์‹ ๊ทœ ๋ชจ๋ธ ํ—ˆ๋ธŒ์„ ๋ฒˆ์—ญํ•˜๊ธฐ ์œ„ํ•ด ์ €์žฅ์†Œ๋ฅผ ๋ณต์ œํ•ฉ๋‹ˆ๋‹ค. \
์ €์žฅ์†Œ ๋ณต์ œ๊ฐ€ ์ฒ˜์Œ์ด์‹œ๋ผ๋ฉด [GitHub์˜ ์ €์žฅ์†Œ ๋ณต์ œ ๊ด€๋ จ ๋„์›€๋ง](https://help.github.com/en/github/getting-started-with-github/fork-a-repo)์„ ์ฐธ์กฐํ•ด์ฃผ์„ธ์š”.

#### 2-3. ์›๋ณธ ๊ฒฝ๋กœ / ๋ฌธ์„œ ์ฐพ๊ธฐ

**(์ด ๋ถ€๋ถ„์„ ์ˆ˜์ •ํ•ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.)**

[ํ•œ๊ตญ์–ด ํŠœํ† ๋ฆฌ์–ผ ์‚ฌ์ดํŠธ์˜ ์†Œ์Šค ์ฝ”๋“œ](https://github.com/PyTorchKorea/tutorials-kr/tree/master/docs)๋Š” ํŠœํ† ๋ฆฌ์–ผ ์›๋ณธ ๋ฌธ์„œ๋ฅผ ๋นŒ๋“œํ•œ ๊ฒฐ๊ณผ๋ฌผ์ž…๋‹ˆ๋‹ค. \
๋”ฐ๋ผ์„œ ํŠœํ† ๋ฆฌ์–ผ ๋ฒˆ์—ญ์„ ์œ„ํ•ด์„œ๋Š” [PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์‚ฌ์ดํŠธ](https://pytorch.kr/hub/)์—์„œ ํŠœํ† ๋ฆฌ์–ผ ์›๋ณธ์˜ ๊ฒฝ๋กœ์™€ ๋ฌธ์„œ๋ช…์„ ํ™•์ธํ•˜๊ณ  ๋ฒˆ์—ญํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. \
์˜ˆ๋ฅผ ๋“ค์–ด ํŠœํ† ๋ฆฌ์–ผ์˜ ์ฃผ์†Œ๊ฐ€ `https://tutorials.pytorch.kr/beginner/deep_learning_60min_blitz.html`๋ผ๋ฉด, ํŠœํ† ๋ฆฌ์–ผ ๊ฒฝ๋กœ๋Š” `beginner`์ด๊ณ , ๋ฌธ์„œ๋ช…์€ `deep_learning_60min_blitz`์ž…๋‹ˆ๋‹ค. \
ํ•ด๋‹น ๋ฌธ์„œ์˜ ์›๋ณธ์€ [ํ•œ๊ตญ์–ด ํŠœํ† ๋ฆฌ์–ผ ์ €์žฅ์†Œ](https://github.com/PyTorchKorea/tutorials-kr)์— `๊ฒฝ๋กœ๋ช…_source` ๊ฒฝ๋กœ์— `๋ฌธ์„œ๋ช….rst` ๋˜๋Š” `๋ฌธ์„œ๋ช….py` ํŒŒ์ผ์ž…๋‹ˆ๋‹ค. \
(์œ„ ์˜ˆ์‹œ ๊ฒฝ์šฐ ์›๋ณธ ๋ฌธ์„œ๋Š” `beginner_source` ๊ฒฝ๋กœ์˜ `deep_learning_60min_blitz.rst` ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.)

#### 2-4. ํ—ˆ๋ธŒ ๋ฒˆ์—ญํ•˜๊ธฐ

์œ„์—์„œ ์ฐพ์€ ์›๋ณธ ํ—ˆ๋ธŒ ๋ฌธ์„œ๋ฅผ Markdown ๋ฌธ๋ฒ•์— ๋งž์ถฐ ๋ฒˆ์—ญํ•ฉ๋‹ˆ๋‹ค. \
๋ฒˆ์—ญ ์ค‘ ๋ฒˆ์—ญ ์šฉ์–ด์— ๋Œ€ํ•ด์„œ๋Š” ๋‹ค๋ฅธ ๋ชจ๋ธ ํ—ˆ๋ธŒ ๋ฌธ์„œ๋ฅผ ์ฐธ์กฐํ•˜์‹œ๊ฑฐ๋‚˜, `2-1`์—์„œ ๋‚จ๊ธด ์ด์Šˆ์˜ ๋ง๊ธ€์„ ํ†ตํ•ด ํ† ์˜ํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. \
Markdown ๋ฌธ๋ฒ•์— ์ต์ˆ™ํ•˜์ง€ ์•Š์€ ๊ฒฝ์šฐ, ๋‹ค๋ฅธ ํ—ˆ๋ธŒ ์›๋ณธ ๋ฌธ์„œ์™€ ๋นŒ๋“œ ๊ฒฐ๊ณผ๋ฌผ์„ ๋น„๊ตํ•ด๋ณด๋ฉด์„œ ๋นŒ๋“œ ๊ฒฐ๊ณผ๋ฌผ์„ ์˜ˆ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

#### 2-5. (๋‚ด ์ปดํ“จํ„ฐ์—์„œ) ๊ฒฐ๊ณผ ํ™•์ธํ•˜๊ธฐ

์ €์žฅ์†Œ์˜ ์ตœ์ƒ์œ„ ๊ฒฝ๋กœ์—์„œ `preview_hub.sh` ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜๋ฉด ์ฝ”๋“œ ์‹คํ–‰ ์—†์ด `http://127.0.0.1:4000/` ๋กœ์ปฌ ์ฃผ์†Œ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋นŒ๋“œ ๊ฒฐ๊ณผ๋ฌผ์„ ๋น ๋ฅด๊ฒŒ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. \
์ด ๊ณผ์ •์—์„œ ์ˆ˜์ •ํ•œ ๋ฌธ์„œ ์ƒ์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์˜ค๋ฅ˜๊ฐ€ ์žˆ๋‹ค๋ฉด Markdown ๋ฌธ๋ฒ•์„ ์ฐธ๊ณ ํ•˜์—ฌ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ณ ์ณ์ฃผ์„ธ์š”. \

#### 2-6. Pull Request ๋งŒ๋“ค๊ธฐ

๋ฒˆ์—ญ์„ ์™„๋ฃŒํ•œ ๋‚ด์šฉ์„ ๋ณต์ œํ•œ ์ €์žฅ์†Œ์— Commit ๋ฐ Pushํ•˜๊ณ , Pull Request๋ฅผ ๋‚จ๊น๋‹ˆ๋‹ค. \
Pull Request๋ฅผ ๋งŒ๋“œ์‹œ๊ธฐ ์ „์— ์ด ๋ฌธ์„œ์— ํฌํ•จ๋œ [Pull Request ๋งŒ๋“ค๊ธฐ](#Pull-Request-๋งŒ๋“ค๊ธฐ) ๋ถ€๋ถ„์„ ๋ฐ˜๋“œ์‹œ ์ฝ์–ด์ฃผ์„ธ์š”. \
๋งŒ์•ฝ Pull Request ๋งŒ๋“ค๊ธฐ๊ฐ€ ์ฒ˜์Œ์ด์‹œ๋ผ๋ฉด [GitHub์˜ Pull Request ์†Œ๊ฐœ ๋„์›€๋ง](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) ๋ฐ [๋ณต์ œํ•œ ์ €์žฅ์†Œ๋กœ๋ถ€ํ„ฐ Pull Request ๋งŒ๋“ค๊ธฐ ๋„์›€๋ง](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork)์„ ์ฐธ์กฐํ•ด์ฃผ์„ธ์š”

### 3. 2๋กœ ๋ฒˆ์—ญ๋œ ๋ฌธ์„œ๋ฅผ ๋ฆฌ๋ทฐํ•˜๋Š” ๊ธฐ์—ฌ

[๋ณธ ์ €์žฅ์†Œ์— Pull Request๋œ ํ—ˆ๋ธŒ ๋ฌธ์„œ](https://github.com/PyTorchKorea/hub-kr/pulls)๋ฅผ ๋ฆฌ๋ทฐํ•˜๋Š” ๊ธฐ์—ฌ์ž…๋‹ˆ๋‹ค.

Pull Request๋œ ๋ฌธ์„œ์˜ ์˜คํƒˆ์ž ์ˆ˜์ •, Markdown ๋ฌธ๋ฒ• ์˜ค๋ฅ˜ ๋˜๋Š” ์ž˜๋ชป ๋ฒˆ์—ญ๋œ ๋‚ด์šฉ์„ ๊ฐœ์„ ํ•˜๋Š” ๊ธฐ์—ฌ๋กœ, ๊ฐ€์žฅ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ๊ธฐ์—ฌ ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. :pray: \
Pull Request๋ฅผ ๋ฆฌ๋ทฐํ•˜์‹œ๊ธฐ ์ „์— ์ด ๋ฌธ์„œ์— ํฌํ•จ๋œ [Pull Request ๋ฆฌ๋ทฐํ•˜๊ธฐ](#Pull-Request-๋ฆฌ๋ทฐํ•˜๊ธฐ) ๋ถ€๋ถ„์„ ๋ฐ˜๋“œ์‹œ ์ฝ์–ด์ฃผ์„ธ์š”. \
๋งŒ์•ฝ PR ๋ฆฌ๋ทฐ๊ฐ€ ์ต์ˆ™ํ•˜์ง€ ์•Š์œผ์‹œ๋‹ค๋ฉด [GitHub์˜ Pull Request ๋ฆฌ๋ทฐ ๊ด€๋ จ ๋„์›€๋ง](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/about-pull-request-reviews)์„ ์ฐธ์กฐํ•ด์ฃผ์„ธ์š”.

### 4. ๊ณต์‹ Pytorch ํ—ˆ๋ธŒ ๋‚ด์šฉ์„ ๋ฐ˜์˜ํ•˜๋Š” ๊ธฐ์—ฌ

[Pytorch ๊ณต์‹ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ](https://github.com/pytorch/hub)์˜ ๋ณ€๊ฒฝ ๋‚ด์šฉ์„ [PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ](https://github.com/PyTorchKorea/hub-kr)์— ๋ฐ˜์˜ํ•˜๋Š” ๊ธฐ์—ฌ์ž…๋‹ˆ๋‹ค. \
์ด ๋•Œ์—๋Š” PyTorch ํ•œ๊ตญ์–ด ๋ชจ๋ธ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ์— ๋ฐ˜์˜๋œ ๋งˆ์ง€๋ง‰ Commit ID์™€ Pytorch ๊ณต์‹ ํ—ˆ๋ธŒ ์ €์žฅ์†Œ์˜ ์ตœ์„  Commit ID ์‚ฌ์ด์˜ ๋ณ€๊ฒฝ ์‚ฌํ•ญ๋“ค์„ [์ผ๊ด„์ ์œผ๋กœ ํ™•์ธ](https://help.github.com/en/github/committing-changes-to-your-project/comparing-commits-across-time)ํ•˜๊ณ  ๋ฐ˜์˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. \
์ด ์ข…๋ฅ˜์˜ ๊ธฐ์—ฌ๋Š” **์ €์žฅ์†Œ ๊ด€๋ฆฌ์ž๊ฐ€ ์ผ๊ด„์ ์œผ๋กœ ์ง„ํ–‰ํ•˜๋ฉฐ, ์•„์ง ๋ฐฉ๋ฌธํ•˜์‹  ๋ถ„๋“ค์˜ ๊ธฐ์—ฌ๋ฅผ ๋ฐ›๊ณ  ์žˆ์ง€๋Š” ์•Š์Šต๋‹ˆ๋‹ค.**

0 comments on commit 7fdca78

Please sign in to comment.