From 44b1ede22d71e26fa5d7af7a50204f7e6daadfc8 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Wed, 25 Nov 2015 23:26:20 -0800 Subject: [PATCH] github: Document all possible values for IssueList{,ByRepo}Options.State. The value "all" is also possible for State. See https://developer.github.com/v3/issues/#list-issues and https://developer.github.com/v3/issues/#list-issues-for-a-repository. --- github/issues.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/issues.go b/github/issues.go index 34807aa..14fcb7f 100644 --- a/github/issues.go +++ b/github/issues.go @@ -65,7 +65,7 @@ type IssueListOptions struct { Filter string `url:"filter,omitempty"` // State filters issues based on their state. Possible values are: open, - // closed. Default is "open". + // closed, all. Default is "open". State string `url:"state,omitempty"` // Labels filters issues based on their label. @@ -148,7 +148,7 @@ type IssueListByRepoOptions struct { Milestone string `url:"milestone,omitempty"` // State filters issues based on their state. Possible values are: open, - // closed. Default is "open". + // closed, all. Default is "open". State string `url:"state,omitempty"` // Assignee filters issues based on their assignee. Possible values are a