bugs

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommentToBug

func AddCommentToBug(bugNum int, conf *config.OneCRLConfig, comment string) error

func AttachToBug

func AttachToBug(bugNum int, apiKey string, attachments []Attachment, conf *config.OneCRLConfig) error

func CreateBug

func CreateBug(bug Bug, conf *config.OneCRLConfig) (int, error)

Types

type Attachment

type Attachment struct {
	ApiKey      string           `json:"api_key"`
	Ids         []int            `json:"ids"`
	ContentType string           `json:"content_type"`
	Data        string           `json:"data"`
	Summary     string           `json:"summary"`
	FileName    string           `json:"file_name"`
	Flags       []AttachmentFlag `json:"flags"`
	BugId       int              `json:"bug_id"`
	Comment     string           `json:"comment"`
}

type AttachmentFlag

type AttachmentFlag struct {
	Name      string `json:"name"`
	Status    string `json:"status"`
	Requestee string `json:"requestee"`
	New       bool   `json:"new"`
}

type AttachmentResponse

type AttachmentResponse struct {
	Ids []string `json:"ids"`
}

type Bug

type Bug struct {
	ApiKey      string `json:"api_key"`
	Product     string `json:"product"`
	Component   string `json:"component"`
	Version     string `json:"version"`
	Type        string `json:"type"`
	Summary     string `json:"summary"`
	Comment     string `json:"comment"`
	Description string `json:"description"`
	Blocks      []int  `json:"blocks,omitempty"`
}

type BugData

type BugData struct {
	Summary string `json:"summary"`
	Id      int    `json:"id"`
}

type BugResponse

type BugResponse struct {
	Id int `json:"id"`
}

type Comment

type Comment struct {
	ApiKey  string `json:"api_key"`
	Comment struct {
		Body       string `json:"body"`
		IsPrivate  bool   `json:"is_private"`
		IsMarkdown bool   `json:"is_markdown"`
	} `json:"comment"`
}

type SearchResponse

type SearchResponse struct {
	Bugs []BugData `json:"bugs"`
}

func GetBugData

func GetBugData(bugNumStrings []string, conf *config.OneCRLConfig) (SearchResponse, error)

Jump to

Keyboard shortcuts

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