Documentation
¶
Index ¶
- Variables
- func CheckIfBacklogRepo()
- func Endpoint(apiURL string) string
- func ErrorCheck(err error)
- func ErrorPanic(err error)
- func Execute()
- func GetCurrentBranch() string
- func PrintResponse(responseData []byte)
- func ProjectKey() string
- func Repository() *git.Repository
- func RepositoryName() string
- func Truncate(s string) string
- type Config
- type CurrentUser
- type Issue
- type Notification
- type PullRequest
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseBranch string
The branch that we wish to merge to
View Source
var RootCmd = &cobra.Command{
Use: "backlog-cli",
Short: "Use Backlog from the command line.",
Long: `Use Backlog from the command line to create pull requests, check issue status, access web pages, etc.`,
}
RootCmd ... The primary main cobra command
Functions ¶
func CheckIfBacklogRepo ¶
func CheckIfBacklogRepo()
func ProjectKey ¶
func ProjectKey() string
ProjectKey ... Returns the project key for the configuration (e.g "MARKETING")
func RepositoryName ¶
func RepositoryName() string
RepositoryName ... returns current repository name
Types ¶
type Config ¶
type Config struct { User User BaseURL string APIKey string ProjectKey string Repository *git.Repository RepositoryName string CurrentBranch string CurrentIssue Issue DebugMode bool }
Config .. the configuration struct for backlog-cli
var GlobalConfig Config
GlobalConfig .. the global configuration for backlog-cli
type Issue ¶
type Issue struct { ID int `json:"id"` IssueKey string `json:"issueKey"` Description string `json:"description"` Summary string `json:"summary"` }
Issue .. the configuration struct for backlog-cli
type Notification ¶
type Notification struct { ID int `json:"id"` Sender notificationSender `json:"sender"` Comment notificationComment `json:"comment"` PullRequestComment notificationPullRequestComment `json:"pullRequestComment"` Reason int `json:"reason"` Content string }
Notification .. a PARTIAL struct for a Notification
type PullRequest ¶
type PullRequest struct { Number int `json:"number"` Summary string `json:"summary"` Description string `json:"description"` Base string `json:"base"` Branch string `json:"branch"` Issue Issue `json:"issue"` Status pullRequestStatus `json:"status"` }
PullRequest .. a PARTIAL struct for a PullRequest on Backlog
Click to show internal directories.
Click to hide internal directories.