githubutils

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

View Source
const MaxLoggingAnnotationsPerStep = 10

Variables

This section is empty.

Functions

func BasicLocationFormat

func BasicLocationFormat(d *rdf.Diagnostic) string

BasicLocationFormat format a diagnostic to %f|%l col %c| errorformat.

func LinkedMarkdownDiagnostic added in v0.11.0

func LinkedMarkdownDiagnostic(owner, repo, sha string, d *rdf.Diagnostic) string

LinkedMarkdownDiagnostic returns Markdown string which contains a link to the location in the diagnostic and the diagnostic content itself.

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

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

func ReportAsGitHubActionsLog added in v0.9.15

func ReportAsGitHubActionsLog(toolName, defaultLevel string, d *rdf.Diagnostic)

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 added in v0.9.15

func WarnTooManyAnnotationOnce()

Types

type GitHubActionLogWriter added in v0.9.15

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 added in v0.9.15

func NewGitHubActionLogWriter(level string) *GitHubActionLogWriter

NewGitHubActionLogWriter returns new GitHubActionLogWriter.

func (*GitHubActionLogWriter) Flush added in v0.9.15

Flush checks overall error at last.

func (*GitHubActionLogWriter) Post added in v0.9.15

Jump to

Keyboard shortcuts

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