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