[Git] PR / Commit ๋ฉ์์ง ํค์๋๋ก ์ด์ ์ฐ๋ ๋ฐ ์ข ๋ฃํ๊ธฐ
ํค์๋ ๊ธฐ๋ฅ ์๊ฐ
๐ก Special Keyword ๊ธฐ๋ฅ ์๋ ์กฐ๊ฑด
- PR ํ๊ฒ์ด ๋ ํฌ์งํ ๋ฆฌ์ default branch ์ผ ๋
- PR์ base๊ฐ default branch ์ผ ๋
PR Description ํน์ Commit ๋ฉ์์ง(Subject ํน์ Description)์ ํค์๋ #์ด์๋ฒํธ
๋ฅผ ์ถ๊ฐํ๋ฉด ์
๋ ฅํ ์ด์๊ฐ ์๋์ผ๋ก ๋งํฌ๋๋ฉฐ, ํด๋น Commit ํน์ PR์ ๊ธฐ๋ณธ ๋ธ๋์น(default branch)์ Merge ํ์ ๋ ๋งํฌํ ์ด์๋ ์๋์ผ๋ก ๋ซํ๋ค.
git commit -m "Feat: order filter close #15"
์ฐธ๊ณ ๋ก ๋ธ๋์น ์ด๋ฆ์ ์ด์ ๋ฒํธ๋ฅผ ๊ธฐ์ฌํ๋ฉด(#889-feat-…
) ์๋์ผ๋ก ์
๋ ฅํ ์ด์๋ฅผ ์ฐธ์กฐํ๋ค. ์ปค๋ฐ์ ์ถ๊ฐํ๋ฉด ํด๋น ์ด์์ ์๋ ๊ฐ์ ๋ ํผ๋ฐ์ค ํ์คํ ๋ฆฌ๊ฐ ๋จ๋๋ค.
userA added a commit to repo userA/repo-name that referenced this
๋ง์ฝ A
๋ผ๋ PR(ํ๋ฆฌํ์คํธ) ์ค๋ช
์ B
๋ผ๋ ๋ค๋ฅธ PR์ ์ฐธ์กฐํ๊ธฐ ์ํด ํน์ ํค์๋๋ฅผ ์ฌ์ฉํ๋ฉด, B
PR์ด A
PR๊ณผ ๋งํฌ๋๋ค. ์ดํ A
PR์ ๋ณํฉ(Merge)ํ๋ฉด ์ฐธ์กฐ๋ B
PR๋ ์๋์ผ๋ก ๋ซํ๋ค.
If you use a keyword to reference a pull request comment in another pull request, the pull requests will be linked. Merging the referencing pull request also closes the referenced pull request.
๋ค๋ฅธ ํ ๋ฆฌํ์คํธ์ ์ฝ๋ฉํธ๋ฅผ ์ฐธ์กฐํ๋ ํค์๋๋ฅผ ์ฌ์ฉํ๋ฉด ํ ๋ฆฌํ์คํธ๋ค์ด ์ฐ๊ฒฐ๋ฉ๋๋ค.
์ฐธ์กฐํ๋ ํ ๋ฆฌํ์คํธ๋ฅผ ๋ณํฉํ๋ฉด ์ฐธ์กฐ๋ ํ ๋ฆฌํ์คํธ๋ ๋ซํ๋๋ค.
์๋ ์ด๋ฏธ์ง๋ PR Description์ ํค์๋ #์ด์๋ฒํธ
๋ฅผ ๋จ๊ธด ํ ์ด์๊ฐ ์๋์ผ๋ก ๋งํฌ๋ ํ๋ฉด. ๊ธฐ๋ณธ ๋ธ๋์น์ Mergeํ๋ฉด ํด๋น ์ด์๊ฐ ์๋์ผ๋ก ๋ซํ๋ค. Commit ๋ฉ์์ง๋ฅผ ํตํด ๋งํฌ๋ ์ด์๋ Development ๋ถ๋ถ์ ํ์๋์ง ์์ง๋ง ์ญ์ Mergeํ๋ฉด ์๋์ผ๋ก ๋ซํ๋ค.
์ง์ํ๋ ํค์๋
๐ก ํค์๋๋ฅผ ์ฌ์ฉํด ์๋์ผ๋ก ๋งํฌ๋ ์ด์๋ฅผ ํด์ ํ๋ ค๋ฉด(๋งํฌ ํด์ ) PR ์ค๋ช ์ ์ง์ ํธ์งํด์ผ๋๋ ์ ์ฐธ๊ณ
- close
- closes
- closed
- fix
- fixes
- fixed
- resolve
- resolves
- resolved
ํค์๋ Syntax
๐ก ๋์ผ ๋ ํฌ์งํ ๋ฆฌ ์ฌ๋ถ์ ๋ฐ๋ผ ํค์๋ Syntax๊ฐ ๋ค๋ฅด๋ฏ๋ก ์ฃผ์
Linked issue | Syntax | Example |
Issue in the same repository | KEYWORD #ISSUE-NUMBER |
Closes #10 |
Issue in a different repository | KEYWORD OWNER/REPOSITORY#ISSUE-NUMBER |
Fixes octo-org/octo-repo#100 |
Multiple issues | Use full syntax for each issue | Resolves #10, resolves #123 , resolves octo-org/octo-repo#100 |
๋ ํผ๋ฐ์ค
Linking a pull request to an issue - GitHub Docs
You can link a pull request or branch to an issue to show that a fix is in progress and to automatically close the issue when the pull request or branch is merged.
docs.github.com
๊ธ ์์ ์ฌํญ์ ๋ ธ์ ํ์ด์ง์ ๊ฐ์ฅ ๋น ๋ฅด๊ฒ ๋ฐ์๋ฉ๋๋ค. ๋งํฌ๋ฅผ ์ฐธ๊ณ ํด ์ฃผ์ธ์
'๐ช Programming' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋๊ธ
์ด ๊ธ ๊ณต์ ํ๊ธฐ
-
๊ตฌ๋
ํ๊ธฐ
๊ตฌ๋ ํ๊ธฐ
-
์นด์นด์คํก
์นด์นด์คํก
-
๋ผ์ธ
๋ผ์ธ
-
ํธ์ํฐ
ํธ์ํฐ
-
Facebook
Facebook
-
์นด์นด์ค์คํ ๋ฆฌ
์นด์นด์ค์คํ ๋ฆฌ
-
๋ฐด๋
๋ฐด๋
-
๋ค์ด๋ฒ ๋ธ๋ก๊ทธ
๋ค์ด๋ฒ ๋ธ๋ก๊ทธ
-
Pocket
Pocket
-
Evernote
Evernote
๋ค๋ฅธ ๊ธ
-
[React] background-image์ svg ์ฌ์ฉํ๊ธฐ (inline SVG)
[React] background-image์ svg ์ฌ์ฉํ๊ธฐ (inline SVG)
2024.05.10 -
[JS] toISOString() ๋ฉ์๋ ์คํ์ ๊ต์ ํ๊ธฐ (UTC ์๊ฐ๋ ๋ณ๊ฒฝ)
[JS] toISOString() ๋ฉ์๋ ์คํ์ ๊ต์ ํ๊ธฐ (UTC ์๊ฐ๋ ๋ณ๊ฒฝ)
2024.05.09 -
[JS] ๋ก์ผ์ผ ํตํ๋ก ์ซ์ ํฌ๋งคํ / ์ฒ ๋จ์๋ง๋ค ์ฝค๋ง ์ถ๊ฐํ๊ธฐ
[JS] ๋ก์ผ์ผ ํตํ๋ก ์ซ์ ํฌ๋งคํ / ์ฒ ๋จ์๋ง๋ค ์ฝค๋ง ์ถ๊ฐํ๊ธฐ
2024.05.09 -
[HTML/CSS] ์คํฌ๋กค ๊ธฐ๋ฅ์ ์ ์งํ๋ฉด์ ์คํฌ๋กค๋ฐ ์จ๊ธฐ๊ธฐ
[HTML/CSS] ์คํฌ๋กค ๊ธฐ๋ฅ์ ์ ์งํ๋ฉด์ ์คํฌ๋กค๋ฐ ์จ๊ธฐ๊ธฐ
2024.05.09