Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { Directory string `json:"directory,omitempty"` BaseRemote string `json:"base_remote,omitempty"` PullRequests map[string][]types.PullRequest `json:"pull_requests,omitempty"` }
Configuration is the global application configuration model.
func Find ¶
func Find(configurations []Configuration, directory string) (*Configuration, error)
Find find a configuration by directory name.
func ReadFile ¶
func ReadFile() ([]Configuration, error)
ReadFile read or create the configuration file and load the configuration into an array.
func (*Configuration) FindPullRequests ¶
func (c *Configuration) FindPullRequests(number int) (*types.PullRequest, error)
FindPullRequests find a pull request by number.
func (*Configuration) RemovePullRequest ¶
func (c *Configuration) RemovePullRequest(pull *types.PullRequest) int
RemovePullRequest remove a pull request.
Click to show internal directories.
Click to hide internal directories.