git

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Github    sourceCodeHost = "github"
	Gitlab    sourceCodeHost = "gitlab"
	Bitbucket sourceCodeHost = "bitbucket"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GitManager

type GitManager interface {
	Authorize() error
	Report(issue ReportRequest, res chan ReportResponse)
	GetStatus(issueNum, index int, res chan StatusResponse)
	Authenticated() bool
}

func NewGitManager

func NewGitManager(sch sourceCodeHost, repo *Repository) (GitManager, error)

type ReportRequest

type ReportRequest struct {
	Title string `json:"title"`
	Body  string `json:"body"`
	Index int    // index location in [IssueManager.Issues] slice in the issue package
}

type ReportResponse

type ReportResponse struct {
	ID    int // issue number
	Err   error
	Index int // index location in [IssueManager.Issues] slice in the issue package
}

type Repository

type Repository struct {
	WorkTree string
	Dir      string
	RepoName string
	UserName string
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(path string) (*Repository, error)

type StatusResponse added in v1.1.0

type StatusResponse struct {
	Resolved bool
	Err      error
	Index    int // index location in [IssueManager.Issues] slice in the issue package
}

Jump to

Keyboard shortcuts

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