Documentation ¶
Index ¶
- Variables
- func AddLabel(repo, labelName string, issueNum int) ([]*github.Label, error)
- func AddMilestone() error
- func ChangeKey(oldKey, newKey string) error
- func ChangeLogin(user, oauth, key string) error
- func CloseIssue(repo string, issue *github.Issue) (*github.Issue, error)
- func Comment(repo, body string, issueNum int) (github.IssueComment, error)
- func CreateLabel(repo, labelName string) (github.Label, error)
- func CreateMilestone(repo, milestone string) (github.Milestone, error)
- func DeleteComment(repo string, commentID int) error
- func DeleteLabel(repo, labelName string) error
- func DeleteMilestone(repo string, mileNum int) error
- func EditComment(repo, body string, commentID int) (github.IssueComment, error)
- func EditIssue(repo string, oldIssue *github.Issue) (*github.Issue, error)
- func EditLabel(repo, labelName, newName string) (github.Label, error)
- func EditMilestone(repo, newTitle string, mileNum int) (github.Milestone, error)
- func IsSetUp() (bool, error)
- func Issues(repo string) ([]*github.Issue, error)
- func IssuesFilter(repo, state, milestone, assignee, creator, sort, order string, labels []string) ([]*github.Issue, error)
- func ListComments(repo string, issueNum int) ([]*github.IssueComment, error)
- func ListLabels(repo string) ([]*github.Label, error)
- func ListMilestones(repo string) ([]*github.Milestone, error)
- func LockIssue(repo string, issueNum int) error
- func Login(userkey string) error
- func MakeIssue(repo, title, body, assignee string, milestone int, labels []string) (*github.Issue, error)
- func OpenIssue(repo string, issue *github.Issue) (*github.Issue, error)
- func PossibleAssignees(repo string) ([]*github.User, error)
- func RemoveLabel(repo, labelName string, issueNum int) error
- func RemoveMilestone() error
- func SetUp(user, oauth, key string) error
- func UnlockIssue(repo string, issueNum int) error
- func WatchRepo(repo string) (string, string, bool, error)
- type Comments
- type Config
- Bugs
Constants ¶
This section is empty.
Variables ¶
var ( Conf *Config Path = &folder GitLog *log.Logger )
Functions ¶
func AddMilestone ¶
func AddMilestone() error
AddMilestone Add Milestone to an issue. BUG(butlerx) Currently adding a milestone is not supported as milestones in the api are a mix of strings and ints. Bug is noted in library docs.
func ChangeLogin ¶
ChangeLogin Change user name and Auth token and relogin.
func CloseIssue ¶
CloseIssue Marks issue as closed.
func Comment ¶
func Comment(repo, body string, issueNum int) (github.IssueComment, error)
Comment Comment on a issue on github.
func CreateLabel ¶
CreateLabel Create a label for a repo.
func CreateMilestone ¶
CreateMilestone Create a Milestone for a repo.
func DeleteComment ¶
DeleteComment Remove a comment from an issue.
func DeleteLabel ¶
DeleteLabel Delete a label from a repo.
func DeleteMilestone ¶
DeleteMilestone Delet a Milestone from a repo.
func EditComment ¶
func EditComment(repo, body string, commentID int) (github.IssueComment, error)
EditComment Edit a comment already on github.
func EditMilestone ¶
EditMilestone Change the title of a milestone in a repo.
func Issues ¶
Issues Pull all issues and write them to .issue/issues.json. Pulls both open and closed issues. Used to update issues.json. Method for accessing issue.json. Returns last pull if cant connect to server. Repo should be structured as "user/repo"
func IssuesFilter ¶
func IssuesFilter(repo, state, milestone, assignee, creator, sort, order string, labels []string) ([]*github.Issue, error)
IssuesFilter Filters issues based on mileston, assignee, creatoror, labels or state. Pass empty strings for things that arnt to be filtered. Returns array of issues in order asked for. TODO(butlerx) filter offline issues if query of repo fails.
func ListComments ¶
func ListComments(repo string, issueNum int) ([]*github.IssueComment, error)
ListComments Lists all the comments for a given issue.
func ListLabels ¶
ListLabels list all possible labels in a repo.
func ListMilestones ¶
ListMilestones List all Milestones in a repo.
func MakeIssue ¶
func MakeIssue(repo, title, body, assignee string, milestone int, labels []string) (*github.Issue, error)
MakeIssue Create an issue on github. Requires repo and title args, rest are optinal arg and can be passed empty. Make issue put milestone at 0 for no milestone. BUG(butlerx) Issue Creation doesnt work in offile mode.
func PossibleAssignees ¶
PossibleAssignees Get a list of all possible assingees
func RemoveLabel ¶
RemoveLabel Remove a label from an issue.
func RemoveMilestone ¶
func RemoveMilestone() error
RemoveMilestone Remove Milestone to an issue. BUG(butlerx) currently Removing milestones is not supported as milestones in the api are a mix of strings and ints. Bug is noted in library docs.
func SetUp ¶
SetUp Set up .issue folder, issues, comments & config file and begin logfile. Appends to to gitignore to ignore the config file. Checks if the files exist and if they dont creates them.
func UnlockIssue ¶
UnlockIssue Unlocks issue to allow changes.
Types ¶
type Comments ¶
type Comments struct { Issue []*github.IssueComment Num int }
Comments used for storing comments offline array of comments and issue number they relate to
Notes ¶
Bugs ¶
Issue Creation doesnt work in offile mode.
Currently adding a milestone is not supported as milestones in the api are a mix of strings and ints. Bug is noted in library docs.
currently Removing milestones is not supported as milestones in the api are a mix of strings and ints. Bug is noted in library docs.