trellogithub

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuilderYmlTrello = "trello-github-integ.yml"
)

Variables

This section is empty.

Functions

func Create

func Create(options map[string]interface{}) (map[string]interface{}, error)

Create sets up trello-github-integ workflows.

func Delete

func Delete(options map[string]interface{}) (bool, error)

Delete remove trello-github-integ workflows.

func Read

func Read(options map[string]interface{}) (map[string]interface{}, error)

func Update

func Update(options map[string]interface{}) (map[string]interface{}, error)

Update remove and set up trello-github-integ workflows.

Types

type Jobs

type Jobs struct {
}

Jobs is the struct for github actions custom config.

type Options

type Options struct {
	Owner       string `validate:"required_without=Org"`
	Org         string `validate:"required_without=Owner"`
	Repo        string `validate:"required"`
	Branch      string `validate:"required"`
	BoardId     string
	TodoListId  string
	DoingListId string
	DoneListId  string
}

Options is the struct for configurations of the trellogithub plugin.

type TrelloGithub

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

func NewTrelloGithub

func NewTrelloGithub(options map[string]interface{}) (*TrelloGithub, error)

func (*TrelloGithub) AddTrelloIdSecret

func (tg *TrelloGithub) AddTrelloIdSecret(trelloId *TrelloItemId) error

AddTrelloIdSecret add trello ids to secret

func (*TrelloGithub) CompareFiles

func (tg *TrelloGithub) CompareFiles(wsFiles, filesInRemoteDir []string) map[string]error

CompareFiles compare files between local and remote

func (*TrelloGithub) VerifyWorkflows

func (tg *TrelloGithub) VerifyWorkflows(workflows []*github.Workflow) (map[string]error, error)

VerifyWorkflows get the workflows with names "wf1.yml", "wf2.yml", then: If all workflows is ok => return ({"wf1.yml":nil, "wf2.yml:nil}, nil) If some error occurred => return (nil, error) If wf1.yml is not found => return ({"wf1.yml":error("not found"), "wf2.yml:nil},nil)

type TrelloItemId

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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