gitlab

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Project `json:"project"`
}

func (Data) ToGithubIssueData

func (idata Data) ToGithubIssueData() github.Data

type Discussion

type Discussion struct {
	CreatedAt time.Time `json:"createdAt"`
	Notes     `json:"notes"`
}

type GitLab

type GitLab interface {
	ReadIssues() (Data, error)
}

type Issue

type Issue struct {
	IID         string `json:"iid"`
	WebURL      string `json:"webUrl"`
	Author      User   `json:"author"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Notes       `json:"notes"`
	Labels      `json:"labels"`
	CreatedAt   time.Time  `json:"createdAt"`
	ClosedAt    *time.Time `json:"closedAt,omitempty"`
}

type Issues

type Issues struct {
	Count int     `json:"count"`
	Nodes []Issue `json:"nodes"`
}

type Label

type Label struct {
	Title string
}

type Labels

type Labels struct {
	Nodes []Label `json:"nodes"`
}

type Note

type Note struct {
	Author    User      `json:"author"`
	Body      string    `json:"body"`
	CreatedAt time.Time `json:"createdAt"`
}

type Notes

type Notes struct {
	Nodes []Note `json:"nodes"`
}

type Project

type Project struct {
	Issues `json:"issues"`
}

type User

type User struct {
	ID       string `json:"id,omitempty"`
	Username string `json:"username"`
	Name     string `json:"name"`
}

Jump to

Keyboard shortcuts

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