domain

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetString added in v0.1.1

func GetString(s *string) string

func GetStringSlicePointer added in v0.1.1

func GetStringSlicePointer(arr []string) *[]string

func JoinBody added in v0.2.2

func JoinBody(arr ...string) string

Types

type GitHub

type GitHub interface {
	ListIssues(ctx context.Context, repoOwner, repoName, title string) ([]*Issue, error)
	CloseIssue(ctx context.Context, repoOwner, repoName string, issueNumber int) error
	UpdateIssue(ctx context.Context, repoOwner, repoName string, issueNumber int, issue *github.IssueRequest) error
	CreateIssue(ctx context.Context, repoOwner, repoName string, issue *github.IssueRequest) (*github.Issue, error)
	CreateComment(ctx context.Context, repoOwner, repoName string, issueNumber int, body string) (*github.IssueComment, error)
	AddProjectNextItem(ctx context.Context, issueID, projectID string) error
	AddProjectCard(ctx context.Context, issueID, projectID string) error
}

type Issue

type Issue struct {
	Number int
	Body   string
}

type Metadata added in v0.1.1

type Metadata struct {
	PackageFileDir string `json:"packageFileDir"`
	PackageName    string `json:"packageName"`
	GroupName      string `json:"groupName"`
	DepName        string `json:"depName"`
	UpdateType     string `json:"updateType"`
	Manager        string `json:"manager"`
}

func (*Metadata) Name added in v0.2.2

func (meta *Metadata) Name() string

type Repo added in v0.1.1

type Repo struct {
	Owner string
	Name  string
}

Jump to

Keyboard shortcuts

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