service

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubService

type GithubService struct {
	// contains filtered or unexported fields
}

GithubService is a service that simplifies GitHub API interaction

func NewGithubService

func NewGithubService(
	client internal.GithubClient,
	config *entity.Configuration,
	meta *entity.Meta,
) *GithubService

NewGithubService creates a new GitHub service that simplify API interaction with functions which is actually needed

func (*GithubService) AttachLabel

func (s *GithubService) AttachLabel(
	ctx context.Context,
	pullRequest *entity.PullRequest,
) error

AttachLabel attachs label to invalid pull request

func (*GithubService) ClosePullRequest

func (s *GithubService) ClosePullRequest(
	ctx context.Context,
	pullRequest *entity.PullRequest,
) error

ClosePullRequest closes invalid pull request

func (*GithubService) WriteMessage added in v0.12.0

func (s *GithubService) WriteMessage(
	ctx context.Context,
	pullRequest *entity.PullRequest,
) error

WriteMessage creates a new comment that contains user-desired message

func (*GithubService) WriteReport

func (s *GithubService) WriteReport(
	ctx context.Context,
	pullRequest *entity.PullRequest,
	results *entity.PullRequestResult,
	time time.Time,
) error

WriteReport creates a new comment that contains conventional-pr workflow report in markdown format

Jump to

Keyboard shortcuts

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