charlie

package module
v0.0.0-...-d72b88c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2019 License: MIT Imports: 4 Imported by: 0

README

Charlie

Build Status Go Report Card GitHub issues

Charlie is open-source changelog aggregator. Feel free to contribute.

To run project execute

docker-compose build && docker-compose up -d

To perform separate steps (e.g. build, test) run Makefile commands like

make test

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortByVersion

func SortByVersion(releases []Release)

SortByVersion sorts provided slice of releases (by reference) in ascending order by version

func SortByVersionDesc

func SortByVersionDesc(releases []Release)

SortByVersionDesc sorts provided slice of releases (by reference) in descending order by version

Types

type Issue

type Issue struct {
	ID         string
	Type       Type
	Components []string
	Message    string
}

Issue describes an issue, resolved or implemented in release

type Release

type Release struct {
	Version
	Issues []Issue
	Date   time.Time
}

Release describes whole release data - the name itself, release date and issues

func (Release) SummaryType

func (r Release) SummaryType() map[Type]int

SummaryType returns count issues by type

type Type

type Type byte

Type describes issue type

const (
	Info        Type = 0
	Added       Type = 1
	Changed     Type = 2
	Deprecated  Type = 3
	Removed     Type = 4
	Fixed       Type = 5
	Security    Type = 6
	Performance Type = 7
	Unreleased  Type = 127
)

List of defined issue types

func (Type) String

func (t Type) String() string

String returns string representation of issue type

type Version

type Version struct {
	Major string
	Minor string
	Patch string
	Label string
	Build string
}

Version describes only release version

func (Version) Compare

func (v Version) Compare(other Version) int

Compare method compares two versions This method, used in sorting, will sort version in ascending order

func (Version) Contains

func (v Version) Contains(other Version) bool

Contains methods returns true, if current release version can contain provided one. For example 5.2 can contain 5.2.1 and 5.2.12, but cannot contain 5.3 and 6.0

func (Version) IsStable

func (v Version) IsStable() bool

IsStable returns true if version not contains beta or other not stable flags

func (Version) String

func (v Version) String() string

String returns string representation of version

Directories

Path Synopsis
ini

Jump to

Keyboard shortcuts

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