func (g *Client) GetIssue(issueNoRegex string) (issue *go_github.Issue, comments []*go_github.IssueComment, err error) {
	rep0 := regexp.MustCompile(issueNoRegex)
	g.branch = rep0.ReplaceAllString(g.branch, "$1")
	g.issueID, err = strconv.Atoi(g.branch)
	if err != nil {
		return
	}
	// get a issue
	ctx := context.Background()
	issue, _, err = g.client.Issues.Get(ctx, g.repoOwner, g.repoName, g.issueID)
	if err != nil {
		return
	}
	opt := new(go_github.IssueListCommentsOptions)
	comments, _, err = g.client.Issues.ListComments(ctx, g.repoOwner, g.repoName, g.issueID, opt)

	return
}
// GetIssue requests an issue and comments by refering current branch name which includes issueID
GetIssue requests an issue and comments by refering current branch name which includes issueID
// GetIssue requests an issue and comments by refering current branch name which includes issueID
func (g *Client) GetIssue(issueNoRegex string) (issue *go_github.Issue, comments []*go_github.IssueComment, err error) {
	rep0 := regexp.MustCompile(issueNoRegex)
	g.branch = rep0.ReplaceAllString(g.branch, "$1")
	g.issueID, err = strconv.Atoi(g.branch)
	if err != nil {
		return
	}
	ctx := context.Background()
	issue, _, err = g.client.Issues.Get(ctx, g.repoOwner, g.repoName, g.issueID)
	if err != nil {
		return
	}
	opt := new(go_github.IssueListCommentsOptions)
	comments, _, err = g.client.Issues.ListComments(ctx, g.repoOwner, g.repoName, g.issueID, opt)
	return
}
func ( g * Client ) GetIssue ( issueNoRegex string ) ( issue * go_github . Issue , comments [ ] * go_github . IssueComment , err error ) { rep0 := regexp . MustCompile ( issueNoRegex ) g . branch = rep0 . ReplaceAllString ( g . branch , " " ) g . issueID , err = strconv . Atoi ( g . branch ) if err != nil { return } ctx := context . Background ( ) issue , _ , err = g . client . Issues . Get ( ctx , g . repoOwner , g . repoName , g . issueID ) if err != nil { return } opt := new ( go_github . IssueListCommentsOptions ) comments , _ , err = g . client . Issues . ListComments ( ctx , g . repoOwner , g . repoName , g . issueID , opt ) return }
GetIssue requests an issue and comments by refering current branch name which includes issueID
GetIssue requests an issue and comments by refering current branch name which includes issueID
// get a issue