comment

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCreateComment     = errors.New("failed to create comment on client")
	ErrorNotCreatedComment = errors.New("failed to create comment on server")
)

Functions

func Do added in v0.0.3

func Do(ctx context.Context, cmd *Comment) error

func WithGithubCommitFromEnvironment added in v0.0.3

func WithGithubCommitFromEnvironment(comment *Comment) error

func WithGithubCommitFromInput added in v0.0.3

func WithGithubCommitFromInput(comment *Comment) error

func WithGithubTokenFromEnvironment added in v0.0.3

func WithGithubTokenFromEnvironment(comment *Comment) error

func WithGithubTokenFromInput added in v0.0.3

func WithGithubTokenFromInput(comment *Comment) error

func WithOrganizationNameFromEnvironment added in v0.0.3

func WithOrganizationNameFromEnvironment(comment *Comment) error

func WithOrganizationNameFromInput added in v0.0.3

func WithOrganizationNameFromInput(comment *Comment) error

func WithPullRequestIDFromEnvironment added in v0.0.3

func WithPullRequestIDFromEnvironment(comment *Comment) error

func WithPullRequestIDFromInput added in v0.0.3

func WithPullRequestIDFromInput(comment *Comment) error

func WithRepositoryNameFromEnvironment added in v0.0.3

func WithRepositoryNameFromEnvironment(comment *Comment) error

func WithRepositoryNameFromInput added in v0.0.3

func WithRepositoryNameFromInput(comment *Comment) error

Types

type Comment added in v0.0.3

type Comment struct {
	Organization  string
	PullRequestID int
	Ref           string
	Repository    string
	Token         string
}

func New added in v0.0.3

func New(options ...Option) (comment *Comment, err error)

type Option added in v0.0.3

type Option func(comment *Comment) error

Jump to

Keyboard shortcuts

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