๋ฐ˜์‘ํ˜•

ํ‚ค์›Œ๋“œ ๊ธฐ๋Šฅ ์†Œ๊ฐœ


๐Ÿ’ก 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"

 

Fork GUI๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ Description์— ๋ถ€๋ถ„์— Special Keyword๋ฅผ ์ž…๋ ฅํ•  ์ˆ˜๋„ ์žˆ๋‹ค

์ฐธ๊ณ ๋กœ ๋ธŒ๋žœ์น˜ ์ด๋ฆ„์— ์ด์Šˆ ๋ฒˆํ˜ธ๋ฅผ ๊ธฐ์žฌํ•˜๋ฉด(#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

 


๊ธ€ ์ˆ˜์ •์‚ฌํ•ญ์€ ๋…ธ์…˜ ํŽ˜์ด์ง€์— ๊ฐ€์žฅ ๋น ๋ฅด๊ฒŒ ๋ฐ˜์˜๋ฉ๋‹ˆ๋‹ค. ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”
๋ฐ˜์‘ํ˜•