angular

package
v0.0.0-...-d125d34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitMessage

func CommitMessage(scope string, subject Subject, body interface{}) string

CommitMessage construct a commit message. ref:https://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html

func StringPtr

func StringPtr(s string) *string

Types

type Header struct {
	Kind    kind    `json:"kind,omitempty"`
	Scope   string  `json:"scope,omitempty"`
	Subject Subject `json:"subject,omitempty"`
}

Header ...

func (Header) String

func (h Header) String() string

type Message

type Message struct {
	Header Header      `json:"header,omitempty"`
	Body   interface{} `json:"body,omitempty"`
}

func (Message) String

func (m Message) String() string

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"`
}

func (Subject) String

func (s Subject) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL