Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitMessage ¶
CommitMessage construct a commit message. ref:https://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html
Types ¶
type Header ¶
type Header struct { Kind kind `json:"kind,omitempty"` Scope string `json:"scope,omitempty"` Subject Subject `json:"subject,omitempty"` }
Header ...
type Message ¶
type Message struct { Header Header `json:"header,omitempty"` Body interface{} `json:"body,omitempty"` }
type Subject ¶
type Subject struct { // Operator the operator of this operation Operator string `json:"operator,omitempty"` // Date the date of commit. Do not have to specific this value when creating a commit. // When getting a commit, this value will fill by the commit metadata. Date *time.Time `json:"date,omitempty"` // Action the action Action string `json:"action,omitempty"` // Application the name of application. Application *string `json:"application,omitempty"` // Cluster the name of cluster. Cluster *string `json:"cluster,omitempty"` }
Click to show internal directories.
Click to hide internal directories.