Documentation ¶
Overview ¶
Package githubasana provides GitHub and Asana pull request task integration.
Index ¶
- func AddCodeReviewSubtask(client *asana.Client, taskID string, prID int, requester *Account, ...) (*asana.Task, error)
- func AddCodeReviewSubtaskComment(client *asana.Client, subtask *asana.Task, requester *Account, ...) (*asana.Story, error)
- func AddPullRequestCommentToTask(client *asana.Client, taskID string, requester *Account, ...) (*asana.Story, error)
- func FindSubtaskByName(client *asana.Client, taskID string, findString string) (*asana.Task, error)
- func FindTaskComment(client *asana.Client, taskID string, findString string) (*asana.Story, error)
- func NextBusinessDay(n int, base time.Time, holidays map[string]bool) time.Time
- func UpdateCodeReviewSubtask(client *asana.Client, subtask *asana.Task, requester *Account, ...) error
- func UpdateTaskComment(client *asana.Client, storyID string, requester *Account, ...) (*asana.Story, error)
- type Account
- type AsanaGID
- type Config
- type GithubLogin
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCodeReviewSubtask ¶
func AddCodeReviewSubtaskComment ¶ added in v1.1.0
func AddCodeReviewSubtaskComment(client *asana.Client, subtask *asana.Task, requester *Account, reviewer *Account, pr *github.PullRequestReviewEvent) (*asana.Story, error)
func AddPullRequestCommentToTask ¶
func AddPullRequestCommentToTask(client *asana.Client, taskID string, requester *Account, pr *github.PullRequestEvent) (*asana.Story, error)
func FindSubtaskByName ¶
FindSubtaskByName finds a subtask which contains specified string.
func FindTaskComment ¶
FindTaskComment finds a story which contains specified string.
func NextBusinessDay ¶ added in v1.1.0
NextBusinessDay returns next n business day. If n is zero, it returns most recent business day including `base` day.
func UpdateCodeReviewSubtask ¶ added in v1.1.0
func UpdateCodeReviewSubtask(client *asana.Client, subtask *asana.Task, requester *Account, pr *github.PullRequestEvent) error
func UpdateTaskComment ¶
func UpdateTaskComment(client *asana.Client, storyID string, requester *Account, pr *github.PullRequestEvent) (*asana.Story, error)
Types ¶
type Account ¶ added in v1.0.2
func NewAccount ¶ added in v1.0.2
func NewNoAsanaAccount ¶ added in v1.0.2
func (*Account) GetUserPermalink ¶ added in v1.0.2
type Config ¶
type Config struct { DueDate int `yaml:"due_date"` Holidays map[string]bool `yaml:"holidays"` Accounts map[GithubLogin]AsanaGID `yaml:"accounts"` }
func LoadConfig ¶
type GithubLogin ¶
type GithubLogin = string
type Handler ¶ added in v1.0.2
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.