githubutils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLoggingAnnotationsPerStep = 10

Variables

This section is empty.

Functions

func BasicLocationFormat

func BasicLocationFormat(c *reviewdog.CheckResult) string

BasicLocationFormat format check CheckResult to %f|%l col %c| errorformat.

func LinkedMarkdownCheckResult

func LinkedMarkdownCheckResult(owner, repo, sha string, c *reviewdog.CheckResult) string

LinkedMarkdownCheckResult returns Markdown string which contains a link to the location in the CheckResult and CheckResult content itself.

func PathLink(owner, repo, sha, path string, line int) string

PathLink build a link to GitHub path to given sha, file, and line.

func ReportAsGitHubActionsLog

func ReportAsGitHubActionsLog(toolName, level string, c *reviewdog.CheckResult)

ReportAsGitHubActionsLog reports results via logging command to create annotations. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#example-5

func WarnTooManyAnnotationOnce

func WarnTooManyAnnotationOnce()

Types

type GitHubActionLogWriter

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

GitHubActionLogWriter reports results via logging command to create annotations. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#example-5

func NewGitHubActionLogWriter

func NewGitHubActionLogWriter(level string) *GitHubActionLogWriter

NewGitHubActionLogWriter returns new GitHubActionLogWriter.

func (*GitHubActionLogWriter) Flush

Flush checks overall error at last.

func (*GitHubActionLogWriter) Post

Jump to

Keyboard shortcuts

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