issue

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 12 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

View Source
var (
	SyncLabel     = "secureframe"
	DisabledLabel = "disabled"
	PassingLabel  = "passing"
)

Functions

func Close

func Close(ctx context.Context, gc *github.Client, org string, project string, i *github.Issue, label string) error

Close closes an issue

func Create

func Create(ctx context.Context, gc *github.Client, org string, project string, ft IssueForm) error

Create creates an issue

func NewClient

func NewClient(c *http.Client) *github.Client

func SyncLabels

func SyncLabels(ctx context.Context, gc *github.Client, org string, project string, labels []string) error

func Synced

func Synced(ctx context.Context, gc *github.Client, org string, project string) ([]*github.Issue, error)

Synced returns a list of synced issues within a project

func Update

func Update(ctx context.Context, gc *github.Client, org string, project string, id int, ft IssueForm) error

Update creates an issue

Types

type IssueForm

type IssueForm struct {
	Title  string
	Body   string
	Labels []string
}

func FromTest

func FromTest(t secureframe.Test, additionalLabel string, reportKey string) (IssueForm, error)

Jump to

Keyboard shortcuts

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