report

package
v0.0.0-...-185445a Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package report contains helpers for writing comments and updating statuses in Github.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Report

func Report(ghc GithubClient, reportTemplate *template.Template, pj kube.ProwJob) error

Report is creating/updating/removing reports in Github based on the state of the provided ProwJob.

Types

type GithubClient

type GithubClient interface {
	BotName() (string, error)
	CreateStatus(org, repo, ref string, s github.Status) error
	ListIssueComments(org, repo string, number int) ([]github.IssueComment, error)
	CreateComment(org, repo string, number int, comment string) error
	DeleteComment(org, repo string, ID int) error
	EditComment(org, repo string, ID int, comment string) error
}

Jump to

Keyboard shortcuts

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