webosce/README

Create commit message template

Closed this issue ยท 10 comments

chbae commented

Create commit message template and write it in wiki page

Proposal

1. Template for a commit of a file.

Filename without extension: Explain WHAT you did briefly

Explanation of WHY you did it. <Optional if the first line is clear>

Fix: Issue <Optional if it exists>

Signed-off-by: author <author's email>

For example,

main: Add debug toggle option

To allow users debug the app at runtime, toggle option is needed.

Fix: webosce/build-webos/issues#1

Signed-off-by: Yi-Soo An <email@email.com>

2. Template for a commit of a feature.

Explain WHAT you did briefly

Explanation of WHY you did it, but it should be in more detail.

Fix: Issue <Optional, see the first case>

Signed-off-by: author <author's email>

For example,

Add debug option

To allow users debug the app at runtime, add debug option.

include:
  main.c
  application.c
  window.c

Fix: #1

Signed-off-by: Yi-Soo An <email@email.com>

For Your Information

  1. The case of number 2 could include a few files in a commit.
  2. Fix could be as repo/issues#<number> or just #<number> -- See #1 (comment) about it in further detail.
chbae commented

@memnoth
Issue ๋ฒˆํ˜ธ๋ฅผ ๋‹ฌ๋•Œ๋Š” https://help.github.com/articles/closing-issues-using-keywords/ ๋ฅผ ์ฐธ๊ณ ํ•ด์„œ ์ „์ฒด URL์ด ์•„๋‹Œ "fix #1" ์ด๋Ÿฐ์‹์œผ๋กœ ๋‹ฌ์•„๋„ ๊ดœ์ฐฎ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

ํ•œ ๊ฐ€์ง€ ๋‚ด์šฉ์œผ๋กœ ์—ฌ๋Ÿฌ ํŒŒ์ผ์„ ํ•œ๋ฒˆ์— ์ˆ˜์ •ํ•˜๋Š” ๊ฒฝ์šฐ๋„ ์žˆ๋Š”๋ฐ ๊ทธ๋Ÿฐ ๊ฒฝ์šฐ๋Š” ์–ด๋–ป๊ฒŒ ํ•˜๋ฉด ์ข‹์„๊นŒ์š”

@sukdo399 ๊ทธ ๊ฒฝ์šฐ๋Š” 2๋ฒˆ ํ…œํ”Œ๋ฆฟ์— ํฌํ•จ๋  ๊ฒƒ ๊ฐ™์•„์„œ ๊ด€๋ จ๋‚ด์šฉ์„ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

@memnoth issue ๋ฒˆํ˜ธ๋Š” ์•„๋ž˜์™€ ๊ฐ™์ด ์ž‘์„ฑํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. (์•„๋ž˜ #์ดํ›„ issue ๋ฒˆํ˜ธ)
Fix: #1

*. #1 ํ˜•์‹์€ ๊ฐ™์€ repo์•ˆ์—์„œ ์‚ฌ์šฉ
*. cross repo๋ฅผ ์œ„ํ•ด์„œ๋Š” ์œ„์™€ ๊ฐ™์ด #1

wiki์—๋„ ์ˆ˜์ • ํ•ด ๋†“๊ฒ ์Šต๋‹ˆ๋‹ค.

@sukdo399 ๋ง์”€ํ•ด์ฃผ์‹  ํ•œ ์ปค๋ฐ‹์— ์—ฌ๋ŸฌํŒŒ์ผ์ด ์ˆ˜์ •๋˜๋Š” ๊ฒฝ์šฐ๋Š” ์ปค๋ฐ‹ ๋ฉ”์„ธ์ง€์— ํŒŒ์ผ ์ด๋ฆ„์„ ํฌํ•จํ•˜๋Š”๊ฑด ์–ด๋–จ๊นŒ์š”? ์œ„์— ์˜ˆ์ œ๋ฅผ ์ถ”๊ฐ€ํ•ด์„œ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.

@memnoth ํŒŒ์ผ ์ด๋ฆ„์„ ๋‹ค ์ ๋Š” ๊ฒƒ์€ commit message ์ž์ฒด๊ฐ€ ๋ณต์žกํ•ด ๋ณด์ด์ง€ ์•Š์„๊นŒ์š”? ์ˆ˜์‹ญ๊ฐœ ์ด์ƒ ์ˆ˜์ •ํ•˜๋Š” ๊ฒฝ์šฐ๋„ ์ƒ๊ฐ๋ณด๋‹ค ๋งŽ๊ณ ์š”. ๊ทธ๋ฆฌ๊ณ  diff๋‚˜ git log์—๋„ ์ˆ˜์ •ํ•œ ํŒŒ์ผ ๋ชฉ๋ก๋“ค์€ ๋‚˜์˜ค๊ธฐ ๋•Œ๋ฌธ์— ์ €๋Š” ํŒŒ์ผ ์ด๋ฆ„๊นŒ์ง€๋Š” ๋‹ค ์ ์ง€ ์•Š์•„๋„ ์ข‹๊ฒ ๋‹ค๊ณ  ๊ฐœ์ธ์ ์œผ๋กœ ์ƒ๊ฐํ•˜๋Š”๋ฐ ๋‹ค๋ฅธ ๋ถ„๋“ค ์˜๊ฒฌ๋„ ํ•œ๋ฒˆ ๋“ค์–ด๋ณผ๊นŒ์š”

@sukdo399 ์•„ ๊ทธ๋Ÿฐ๊ฒฝ์šฐ๋„ ์žˆ์„ ์ˆ˜ ์žˆ๊ฒ ๋„ค์š”. ์ €๋„ ๋‹ค๋ฅธ ๋ถ„๋“ค ์˜๊ฒฌ์„ ๋“ค์–ด๋ณด๋Š”๊ฒƒ๋„ ์ข‹๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

chbae commented
  1. ์ปดํฌ๋„ŒํŠธ
    ์ˆ˜์ • ๋‚ด์—ญ๋งŒ ์ ์–ด๋„ ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  2. meta layer
    ํŒŒ์ผ ํ•œ๊ฐœ๋Š” ์ ๋Š”๊ฒŒ ์ข‹์„ ๊ฒƒ ๊ฐ™๊ณ ์š”. ์—ฌ๋Ÿฌ๊ฐœ๋ฉด ํฐ ์ œ๋ชฉ๋งŒ ๋ถ™์ด๋ฉด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์ปดํฌ๋„ŒํŠธ ์ˆ˜์ •์‚ฌํ•ญ์€ ์ปดํฌ๋„ŒํŠธ ์ด๋ฆ„์œผ๋กœ ์ ์œผ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™๊ณ ์š”.