zenhub

package module
v0.0.0-...-4169b7e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultURL = "https://api.zenhub.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Debug      bool
	HTTPClient *http.Client
	Token      string
	URL        string
}

func New

func New(token string) *Client

type Epic

type Epic struct {
	Issues             []Issue    `json:"issues"`
	Estimate           Int64Value `json:"estimate"`
	Pipelines          []Pipeline `json:"pipelines"`
	TotalEpicEstimates Int64Value `json:"total_epic_estimates"`
	Pipeline           *Pipeline  `json:"pipeline"`
}

type EpicIssue

type EpicIssue struct {
	IssueNumber int64  `json:"issue_number"`
	RepoID      int64  `json:"repo_id"`
	IssueURL    string `json:"issue_url"`
}

type EpicsService

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

func NewEpicsService

func NewEpicsService(c *Client) *EpicsService

func (*EpicsService) GetEpic

func (s *EpicsService) GetEpic(ctx context.Context, repo, id int64) (*Epic, error)

func (*EpicsService) GetEpics

func (s *EpicsService) GetEpics(ctx context.Context, repo int64) ([]*EpicIssue, error)

type Int64Value

type Int64Value struct {
	Value int64 `json:"value"`
}

type Issue

type Issue struct {
	IssueNumber int64      `json:"issue_number"`
	IsEpic      bool       `json:"is_epic"`
	RepoID      int64      `json:"repo_id"`
	Estimate    Int64Value `json:"estimate"`
	Pipelines   []Pipeline `json:"pipelines"`
	Pipeline    *Pipeline  `json:"pipeline"`
}

type IssuesService

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

func NewIssuesService

func NewIssuesService(c *Client) *IssuesService

func (*IssuesService) GetIssue

func (s *IssuesService) GetIssue(ctx context.Context, repo, id int64) (*Issue, error)

type Pipeline

type Pipeline struct {
	WorkspaceID string `json:"workspace_id"`
	Name        string `json:"name"`
	PipelineID  string `json:"pipeline_id"`
}

Jump to

Keyboard shortcuts

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