github

package
v0.0.0-...-3444316 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueHandler

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

IssueHandler handles methods for github issues

func Setup

func Setup(org, repo, githubTokenPath string, dryrun bool) (*IssueHandler, error)

Setup creates the necessary setup to make calls to work with github issues

func (*IssueHandler) CloseIssueForTest

func (gih *IssueHandler) CloseIssueForTest(testName string) error

CloseIssueForTest will try to close the issue for the given testName. If there is no issue related to the test or the issue is already closed, the function will do nothing.

func (*IssueHandler) CreateIssueForTest

func (gih *IssueHandler) CreateIssueForTest(testName, desc string) error

CreateIssueForTest will try to add an issue with the given testName and description. If there is already an issue related to the test, it will try to update that issue.

Jump to

Keyboard shortcuts

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