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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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