scm

package
v0.0.0-...-a196a74 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedFile

type ChangedFile struct {
	Name      string
	Status    string
	Additions int
	Deletions int
}

ChangedFile is a type that contains information about created/modified/removed file within an scm repository

func NewChangedFile

func NewChangedFile(file *gogh.CommitFile) *ChangedFile

NewChangedFile maps the fields and returns the new struct

type RepositoryChange

type RepositoryChange struct {
	Owner,
	RepoName,
	Hash string
}

RepositoryChange holds information about owner and repository to which the change indicated by Hash belongs

type RepositoryIssue

type RepositoryIssue struct {
	Owner    string
	RepoName string
	Number   int
}

RepositoryIssue holds owner name, repository name and an issue number

func NewRepositoryIssue

func NewRepositoryIssue(owner, repoName string, number int) *RepositoryIssue

NewRepositoryIssue creates a new instance of RepositoryIssue with the given values

type StatusService

type StatusService interface {
	Failure(reason, detailsPageName string) error
	Success(reason, detailsPageName string) error
	Pending(reason string) error
	Error(reason string) error
}

StatusService encapsulates operation for updating status of the RepositoryChange

Jump to

Keyboard shortcuts

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