Skip to content

๐Ÿ›ฉ๏ธ 01_ํ˜‘์—…๋ฐฉ์‹

kimyo edited this page Jul 10, 2022 · 19 revisions

๐Ÿ”ธ Agile


๐Ÿ”ธ ์ด์Šˆ ๊ด€๋ฆฌ

  1. ํ”„๋กœ๋•ํŠธ ๋ฐฑ๋กœ๊ทธ๋ฅผ issue๋กœ ๋“ฑ๋กํ•ฉ๋‹ˆ๋‹ค.
  2. ํ”„๋กœ๋•ํŠธ ๋ฐฑ๋กœ๊ทธ์— ๋Œ€ํ•œ ์„ธ๋ถ€ ํ…Œ์Šคํฌ๋“ค์„ ์ž‘์„ฑํ•˜๊ณ ,
  3. ์„ธ๋ถ€ ํ…Œ์Šคํฌ๋ฅผ ์ถ”๊ฐ€๋กœ ์ด์Šˆ๋กœ ๋“ฑ๋กํ•ฉ๋‹ˆ๋‹ค. (Task ์ž‘์„ฑ ํ›„ convert ๋ฒ„ํŠผ)
  4. ์ด์Šˆ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ develop์œผ๋กœ ๋ถ€ํ„ฐ ๊ด€๋ จ ๋ธŒ๋žœ์น˜๋ฅผ ์ƒ์„ฑํ•ด ์ž‘์—…์„ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.
  5. ์„ธ๋ถ€ ํ…Œ์Šคํฌ๋“ค์„ ๋ชจ๋‘ ์™„๋ฃŒํ•œ ํ”„๋กœ๋•ํŠธ ๋ฐฑ๋กœ๊ทธ๋Š” ์™„๋ฃŒ์ƒํƒœ๋กœ ๋ณ€๊ฒฝ ํ›„ close ํ•ฉ๋‹ˆ๋‹ค
์ด์Šˆ์—๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์‚ฌํ•ญ์„ ์ง€์ •ํ•ด ์ค๋‹ˆ๋‹ค.
  - ์ด์Šˆ์— ๋Œ€ํ•œ ํ˜„์žฌ ์ƒํƒœ (ex - in progress)
  - ๋‹ด๋‹น์ž ์„ค์ • - ๋ณธ์ธ assign

๐Ÿ”ธ ๋ธŒ๋žœ์น˜ ๊ด€๋ฆฌ

  • Remote (prgrms-be-devcourse / BEDV2_Amabnb)

    • main/develop
  • Fork (Local) || Remote (์™„๋ฃŒ์‹œ ์‚ญ์ œ)

    • feature/{issue-num}-{๊ธฐ๋Šฅ๋ช…}

๐Ÿ”ธ ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ๊ด€๋ฆฌ

  • feature branch ์—์„œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
ex) feat: UserSearchApi ๊ตฌํ˜„
Category Description
feat ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ์ถ”๊ฐ€
fix ๋ฒ„๊ทธ ์ˆ˜์ •
docs ๋ฌธ์„œ ์ˆ˜์ •
style ์ฝ”๋“œ ํฌ๋งทํŒ…, ์„ธ๋ฏธ์ฝœ๋ก  ๋ˆ„๋ฝ, ์ฝ”๋“œ ๋ณ€๊ฒฝ์ด ์—†๋Š” ๊ฒฝ์šฐ
refac ์ฝ”๋“œ ๋ฆฌํŽ™ํ† ๋ง
test ํ…Œ์ŠคํŠธ ์ฝ”๋“œ, ๋ฆฌํŽ™ํ† ๋ง ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ถ”๊ฐ€
chore ๋นŒ๋“œ ์—…๋ฌด ์ˆ˜์ •, ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ € ์ˆ˜์ •

  • develop branch ์—์„œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
ex) [#31] feat: xxx์—์„œ yyy๋ฅผ ํ•ด์•ผํ•œ๋‹ค (#51)
    [#{issue-number}] {issue-title} (#{pr-number})
  • main branch ์—์„œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
ex) Release Amabnb v1.0.0  

Versioning Convention : v{major}.{minor}.{patch}


๐Ÿ”ธ PR ๊ด€๋ฆฌ

develop branch ์—์„œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด PR ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

  • PR์‹œ์—๋Š” ํ•ด๊ฒฐํ•œ issue ๋ฒˆํ˜ธ์™€ ์ฃผ์ œ๋ฅผ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.
    ex) [#31] feat: xxx์—์„œ yyy๋ฅผ ํ•ด์•ผํ•œ๋‹ค

  • PR ๋ณธ๋ฌธ์— ํ•ด๊ฒฐํ•œ ์ด์Šˆ๋ฅผ ์—ฐ๋™ํ•ฉ๋‹ˆ๋‹ค.
    resolves #31 ๊ณผ ๊ฐ™์ด ํ•ด๊ฒฐํ•œ ์ด์Šˆ๋ฒˆํ˜ธ๋ฅผ ํฌํ•จํ•˜์—ฌ PR์ด ๋จธ์ง€๋จ์— ๋”ฐ๋ผ ์ž๋™์œผ๋กœ ํ•ด๊ฒฐํ•œ ์ด์Šˆ๋ฅผ close ํ•ฉ๋‹ˆ๋‹ค.

  • PR์€ squash merge ๋งŒ ํ—ˆ์šฉํ•˜๋„๋ก ์„ค์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
    ์ž‘์—…ํ•œ ์ปค๋ฐ‹๋‚ด์—ญ๋“ค์€ squash merge ๋ฅผ ํ†ตํ•ด merge ๋ฉ๋‹ˆ๋‹ค.
    ์ด๋•Œ ์ž๋™์œผ๋กœ PR ๋„ค์ด๋ฐ์— ๋”ฐ๋ผ PR๋„˜๋ฒ„๋ฅผ ํฌํ•จํ•œ develop ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๊ฐ€ ์ž๋™์œผ๋กœ ์ž…๋ ฅ๋ฉ๋‹ˆ๋‹ค.


๐Ÿ”ธ ์ฝ”๋“œ๋ฆฌ๋ทฐ

  • PR์ด ์˜ฌ๋ผ์˜ค๋ฉด, ๋ฆฌ๋ทฐ์–ด๋ฅผ ํ• ๋‹นํ•˜๊ณ  ํ•œ๋ช… ์ด์ƒ์˜ approve ๊ฐ€ ์žˆ์–ด์•ผ mergeํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • PR์„ ์˜ฌ๋ฆฐ ๋‹ด๋‹น์ž๊ฐ€ ๋ฆฌ๋ทฐ๋ฅผ ํ†ตํ•ด ์ˆ˜์ •์„ ๋งˆ์ณค์„ ๋•Œ merge ํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ”ธ ์˜ˆ์™ธ HTTP ์ƒํƒœ ์ฝ”๋“œ

400 Bad Request - ์ž˜๋ชป๋œ ์š”์ฒญ์ž…๋‹ˆ๋‹ค
401 Unauthorized - ๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ ์„œ๋น„์Šค ์ž…๋‹ˆ๋‹ค
404 NotFound - ๋ฆฌ์†Œ์Šค๋ฅผ ์ฐพ์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค
500 Internal -  ์„œ๋ฒ„์—์„œ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ์Šต๋‹ˆ๋‹ค