Versions in this module Expand all Collapse all v6 v6.4.1 Dec 7, 2025 Changes in this version + type CommentController struct + Expr Expr + Getenv func(string) string + GitHub GitHub + Platform Platform + func (c *CommentController) Post(ctx context.Context, cmt *github.Comment) error + type ExecCommentParams struct + CombinedOutput string + Command string + ExitCode int + JoinCommand string + Org string + Outputs []*option.Output + PRNumber int + Repo string + SHA1 string + Stderr string + Stdout string + Template string + TemplateKey string + Vars map[string]any + type ExecController struct + Config *config.Config + Executor Executor + Expr Expr + Fs afero.Fs + Getenv func(string) string + GitHub GitHub + Platform Platform + Reader Reader + Renderer Renderer + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Wd string + func (c *ExecController) Exec(ctx context.Context, logger *slog.Logger, opts *option.ExecOptions) error + type Executor interface + Run func(ctx context.Context, params *execute.Params) (*execute.Result, error) + type Expr interface + Compile func(expression string) (expr.Program, error) + Match func(expression string, params any) (bool, error) + type Fsys interface + Exist func(path string) bool + Write func(path string, content []byte) error + type GitHub interface + CreateComment func(ctx context.Context, cmt *github.Comment) error + GetAuthenticatedUser func(ctx context.Context) (string, error) + HideComment func(ctx context.Context, nodeID string) error + ListComments func(ctx context.Context, pr *github.PullRequest) ([]*github.IssueComment, error) + PRNumberWithSHA func(ctx context.Context, owner, repo, sha string) (int, error) + type HideController struct + Config *config.Config + Expr Expr + Getenv func(string) string + GitHub GitHub + HasStdin func() bool + Platform Platform + Stderr io.Writer + Wd string + func (c *HideController) Hide(ctx context.Context, logger *slog.Logger, opts *option.HideOptions) error + type InitController struct + Fsys Fsys + func (c InitController) Run(_ context.Context) error + type ParamListHiddenComments struct + Condition string + HideKey string + Org string + PRNumber int + Repo string + SHA1 string + Vars map[string]any + type Platform interface + CI func() string + ComplementExec func(opts *option.ExecOptions) error + ComplementHide func(opts *option.HideOptions) error + ComplementPost func(opts *option.PostOptions) error + type PostController struct + Config *config.Config + Expr Expr + Getenv func(string) string + GitHub GitHub + HasStdin func() bool + Platform Platform + Renderer Renderer + Stderr io.Writer + Stdin io.Reader + Wd string + func (c *PostController) Post(ctx context.Context, logger *slog.Logger, opts *option.PostOptions) error + type PostTemplateParams struct + Org string + PRNumber int + Repo string + SHA1 string + TemplateKey string + Vars map[string]any + type Reader interface + FindAndRead func(cfgPath, wd string) (config.Config, error) + type Renderer interface + Render func(tpl string, templates map[string]string, params any) (string, error)