Skip to content

Commit

Permalink
create remote issue (tmp)
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi committed May 7, 2014
1 parent 641f68a commit d83834d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions adapter_github.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ func (d *AdapterGithub) Update() error {
}
client := github.NewClient(t.Client())
repoInfo := strings.Split(config.RemoteConfig.Repo, "/")
issues, _, err := client.Issues.ListByRepo(repoInfo[0], repoInfo[1], nil)
if err != nil {
return err
}
for _, issue := range issues {
println(*issue.Title)
// remoteIssues, _, err := client.Issues.ListByRepo(repoInfo[0], repoInfo[1], nil)
// if err != nil {
// return err
// }
for _, issue := range IssueList {
client.Issues.Create(repoInfo[0], repoInfo[1], &github.IssueRequest{Title: &issue.Title})
}
return nil
}

0 comments on commit d83834d

Please sign in to comment.