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 FindSubtaskByName ¶
FindSubtaskByName finds a subtask which contains specified string. Subtasks are paginated the same way as stories, so scan all pages.
func FindTaskComment ¶
FindTaskComment finds a story which contains specified string. Stories include every activity event (field changes, likes, etc.), not just comments, and the API returns them oldest first. Busy tasks easily exceed one page, so all pages must be scanned before concluding there is no match.
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
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.


