issue

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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