github_bugtracker

package
v0.0.0-...-483e9f6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bugtracker

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

func New

func New(repo string, appId string, appPrivateKey []byte) (*Bugtracker, error)

func (*Bugtracker) CloseTicket

func (b *Bugtracker) CloseTicket(auth *forge.Authenticator, ticketID string) error

CloseTicket closes the ticket in the bug tracker. Returns an error if the ticket could not be closed.

func (*Bugtracker) CreateTicket

func (b *Bugtracker) CreateTicket(auth *forge.Authenticator, title string, body string, opts bugtracker.Options) (string, error)

CreateTicket creates a ticket in the bug tracker. Returns the ticket ID or an error.

func (*Bugtracker) EditTicket

func (b *Bugtracker) EditTicket(auth *forge.Authenticator, ticketID string, title string, body string, opts bugtracker.Options) error

EditTicket edits the ticket in the bug tracker. Returns an error if the ticket could not be edited.

func (*Bugtracker) GetAuthenticator

func (b *Bugtracker) GetAuthenticator() (*forge.Authenticator, error)

GetAuthenticator returns an authenticator for the bug tracker.

func (*Bugtracker) TicketURI

func (b *Bugtracker) TicketURI(ticketID string) (string, error)

TicketURI returns the URI to the ticket in the bug tracker. Returns an error if the URI could not be generated.

func (*Bugtracker) URIToTicket

func (b *Bugtracker) URIToTicket(uri string) (string, error)

URIToTicket returns the ticket ID from the URI. Returns an error if the ticket ID could not be extracted.

Jump to

Keyboard shortcuts

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