gitlabClient

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

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Labels    []gitlab.Label
	BoardList []gitlab.BoardList
	Current
}

type Current

type Current struct {
	Sprint string
}

type GitLab

type GitLab struct {
	Client *gitlab.Client
	Config Config
}
var GITLAB GitLab

func Run

func Run() (GitLab, error)

func (*GitLab) Apply

func (git *GitLab) Apply() error

Apply - read `process.yaml` and create: create: labels/file in repository/ETC

func (*GitLab) CreateBoardList

func (git *GitLab) CreateBoardList(groupId interface{}, board []gitlab.BoardList) error

func (*GitLab) CreateGroupLabel

func (git *GitLab) CreateGroupLabel(projectId interface{}, label gitlab.Label) error

func (*GitLab) CreateMilestone

func (git *GitLab) CreateMilestone(name string) error

func (*GitLab) CreateProjectLabel

func (git *GitLab) CreateProjectLabel(projectId interface{}, label gitlab.Label) error

func (*GitLab) GetGroupMilestoneIssues

func (git *GitLab) GetGroupMilestoneIssues(name string) ([]*gitlab.Issue, error)

func (*GitLab) GetListProject

func (git *GitLab) GetListProject() ([]*gitlab.Project, error)

func (*GitLab) GetMilestoneByGroupName

func (git *GitLab) GetMilestoneByGroupName(pid gitlab.Group, milestoune string) (*gitlab.GroupMilestone, error)

func (*GitLab) GetMilestoneByProjectName

func (git *GitLab) GetMilestoneByProjectName(pid gitlab.Project, milestoune string) (*gitlab.Milestone, error)

func (*GitLab) GetProjectMilestoneIssues

func (git *GitLab) GetProjectMilestoneIssues(name string) ([]*gitlab.Issue, error)

func (*GitLab) ListGroup

func (git *GitLab) ListGroup() ([]*gitlab.Group, error)

func (*GitLab) ListIssue

func (git *GitLab) ListIssue(milestone *string) ([]*gitlab.Issue, error)

func (*GitLab) ListUser

func (git *GitLab) ListUser() ([]*gitlab.User, error)

func (*GitLab) ParseWeight

func (git *GitLab) ParseWeight(title string) int

func (*GitLab) ReportPlannedActually

func (git *GitLab) ReportPlannedActually(name string) (Weight, error)

func (*GitLab) ReportPlannedActuallyByUser

func (git *GitLab) ReportPlannedActuallyByUser(name string) (map[string]*Weight, error)

type Weight

type Weight struct {
	Actually int
	Planned  int
	Nickname string
}

Jump to

Keyboard shortcuts

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