Atlassian Smart Commits
Published in
1 min readMay 16, 2018
ถ้าคุณอยู่ในโลกของ atlassian
แล้วหล่ะก็ เราขอนำเสนอ Smart Commits ที่จะช่วยให้การ comment บน JIRA, การ update JIRA status หรือ การ log เวลาทำงานเป็นเรื่องที่ง่ายขึ้น
โดย syntax สำหรับ smart commits message มีรูปแบบดังนี้
<ignored text> <ISSUE_KEY> <ignored text> #<COMMAND> <optional COMMAND_ARGUMENTS>
#COMMAND ที่ใช้ได้มี 3 command ดังนี้
commenttimetransition
comment
เป็น command message สำหรับใส่ comment ใน JIRA
<ignored text> ISSUE_KEY <ignored text> #comment <comment_string>
ตัวอย่างเช่น
JIRA-01 #comment corrected indent issue
ซึ่งข้อความ corrected indent issue
ก็จะกลายไปเป็น comment message ใน JIRA story JIRA-01 เช่นกัน