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: 1 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 interface {
	// CreateTicket creates a ticket in the bug tracker.
	// Returns the ticket ID or an error.
	CreateTicket(auth *forge.Authenticator, title string, body string, opts Options) (string, error)

	// EditTicket edits the ticket in the bug tracker.
	// Returns an error if the ticket could not be edited.
	EditTicket(auth *forge.Authenticator, ticketID string, title string, body string, opts Options) error

	// CloseTicket closes the ticket in the bug tracker.
	// Returns an error if the ticket could not be closed.
	CloseTicket(auth *forge.Authenticator, ticketID string) error

	// TicketURI returns the URI to the ticket in the bug tracker.
	// Returns an error if the URI could not be generated.
	TicketURI(ticketID string) (string, error)

	// URIToTicket returns the ticket ID from the URI.
	// Returns an error if the ticket ID could not be extracted.
	URIToTicket(uri string) (string, error)

	// GetAuthenticator returns an authenticator for the bug tracker.
	GetAuthenticator() (*forge.Authenticator, error)
}

type Options

type Options struct {
	// Labels are the labels to apply to the ticket.
	// All bug trackers might not support labels, but it's a common feature.
	Labels []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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