Documentation
¶
Index ¶
- func ValidateType(t string) bool
- type Remark
- type Remarks
- func (r *Remarks) ActiveForBranch(branch string) []Remark
- func (r *Remarks) Add(remark Remark)
- func (r *Remarks) FindByID(id string) *Remark
- func (r *Remarks) IsEmpty() bool
- func (r *Remarks) Marshal() ([]byte, error)
- func (r *Remarks) Merge(other *Remarks)
- func (r *Remarks) RemoveByID(id string) bool
- type State
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateType ¶
ValidateType checks if a string is a valid remark type
Types ¶
type Remark ¶
type Remark struct {
ID string `yaml:"id"`
Type Type `yaml:"type"`
Branch string `yaml:"branch"`
State State `yaml:"state"`
CreatedAt time.Time `yaml:"created_at"`
Body string `yaml:"body"`
}
Remark represents a single note attached to a commit
type Remarks ¶
type Remarks struct {
Remarks []Remark `yaml:"remarks"`
}
Remarks is a container for multiple remarks on a single commit
func ParseRemarks ¶
ParseRemarks parses YAML content into Remarks
func (*Remarks) ActiveForBranch ¶
ActiveForBranch returns all active remarks for a given branch
func (*Remarks) RemoveByID ¶
RemoveByID removes a remark by its ID and returns true if found
Click to show internal directories.
Click to hide internal directories.