trac

package
v0.0.0-...-7cdc305 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DevhackBaseURL = "https://bugs.devhack.net"

DevhackBaseURL is the base URL for bugs.devhack.net.

Variables

This section is empty.

Functions

func ParseTicketURL

func ParseTicketURL(ticketURL string) (baseURL string, id int32, err error)

ParseTicketURL parses a ticket URL and returns the base URL and ticket ID.

func ParseTicketURLWithBaseURL

func ParseTicketURLWithBaseURL(ticketURL, baseURL string) (int32, error)

ParseTicketURLWithBaseURL parses a ticket URL and asserts that the given base URL matches the ticket's base URL.

func TicketURL

func TicketURL(baseURL string, id int) string

TicketURL generates the URL for a specific ticket in the Trac system.

Types

type Ticket

type Ticket struct {
	ID          int32  `json:"id" csv:"id"`
	Summary     string `json:"summary" csv:"summary"`
	Reporter    string `json:"reporter" csv:"reporter"`
	Owner       string `json:"owner" csv:"owner"`
	Description string `json:"description" csv:"description"`
	Type        string `json:"type" csv:"type"`
	Status      string `json:"status" csv:"status"`
	Priority    string `json:"priority" csv:"priority"`
	Milestone   string `json:"milestone" csv:"milestone"`
	Component   string `json:"component" csv:"component"`
	Resolution  string `json:"resolution" csv:"resolution"`
	Keywords    string `json:"keywords" csv:"keywords"`
	CC          string `json:"cc" csv:"cc"`
}

Ticket represents a bug or issue in the Trac system.

func FetchTicketByID

func FetchTicketByID(ctx context.Context, baseURL string, id int) (*Ticket, error)

FetchTicketByID fetches a ticket by its ID from the Trac system.

Jump to

Keyboard shortcuts

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