bitbucket

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 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 Attachment added in v0.2.0

type Attachment struct {
	User     User   `json:"user"`
	Issue    int    `json:"issue"`
	URL      string `json:"url"`
	Filename string `json:"filename"`
	Path     string `json:"path"`
}

Attachment represents a single attachment from BitBucket export.

type Comment

type Comment struct {
	ID        int        `json:"id"`
	Issue     int        `json:"issue"`
	User      User       `json:"user"`
	Content   string     `json:"content"`
	CreatedOn time.Time  `json:"created_on"`
	UpdatedOn *time.Time `json:"updated_on"`
}

Comment represents a comment from BitBucket export.

type Export

type Export struct {
	Meta        map[string]any `json:"meta"`
	Issues      []Issue        `json:"issues"`
	Attachments []Attachment   `json:"attachments"`
	Comments    []Comment      `json:"comments"`
	Logs        []any          `json:"logs"`
}

Export represents the full JSON export structure.

type Issue

type Issue struct {
	ID        int       `json:"id"`
	Title     string    `json:"title"`
	Reporter  User      `json:"reporter"`
	Assignee  *User     `json:"assignee"`
	Content   string    `json:"content"`
	CreatedOn time.Time `json:"created_on"`
	UpdatedOn time.Time `json:"updated_on"`
	Status    string    `json:"status"`
	Priority  string    `json:"priority"`
	Kind      string    `json:"kind"`
	Milestone any       `json:"milestone"`
	Component any       `json:"component"`
	Version   any       `json:"version"`
	Watchers  []User    `json:"watchers"`
	Voters    []User    `json:"voters"`
}

Issue represents a single issue from BitBucket export.

type User

type User struct {
	DisplayName string `json:"display_name"`
	AccountID   string `json:"account_id"`
}

User represents a user in BitBucket export.

Jump to

Keyboard shortcuts

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