Module: Git::Message
- Defined in:
- lib/git/message/message.rb,
lib/git/message/version.rb
Constant Summary collapse
- VERSION =
"0.1.1"
Instance Method Summary collapse
Instance Method Details
#getType(num) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/git/message/message.rb', line 43 def getType (num) case num when '1' "feat" when '2' "fix" when '3' "docs" when '4' "style" when '5' "refactor" when '6' "test" when '7' "chore" when '8' "debug" else '' end end |
#showMessage ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/git/message/message.rb', line 34 def showMessage puts <<EOF Enter the subject of your commit: EOF end |
#showScopeNote ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/git/message/message.rb', line 25 def showScopeNote puts <<EOF Enter the scope of your commit: EOF end |
#showTypeOption ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/git/message/message.rb', line 7 def showTypeOption puts <<EOF 1 feat: 新功能(feature) 2 fix: 修补bug 3 docs: 文档(documentation) 4 style: 格式(不影响代码运行的变动) 5 refactor:重构(即不是新增功能,也不是修改bug的代码变动) 6 test: 增加测试 7 chore: 构建过程或辅助工具的变动 8 debug: 调试的变更(仅作调试使用) Enter the type number of your commit: EOF end |