githubutils

package
v0.0.0-...-bc1001e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 8 Imported by: 0

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

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

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

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