github

package
v0.0.0-...-5dfa7fa Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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