Update go-github

This commit is contained in:
Miguel de la Cruz 2020-09-24 11:13:52 +02:00
parent a13a0ec949
commit da89cad164
115 changed files with 4785 additions and 1606 deletions

View file

@ -6,7 +6,7 @@ import (
"io/ioutil"
"os"
"github.com/google/go-github/v29/github"
"github.com/google/go-github/v32/github"
jira "gopkg.in/andygrunwald/go-jira.v1"
"git.ctrlz.es/mgdelacroix/campaigner/model"

View file

@ -11,7 +11,7 @@ import (
"git.ctrlz.es/mgdelacroix/campaigner/model"
"github.com/StevenACoffman/j2m"
"github.com/google/go-github/v29/github"
"github.com/google/go-github/v32/github"
"golang.org/x/oauth2"
)
@ -92,6 +92,8 @@ func (a *App) PublishNextInGithub(dryRun bool) (bool, error) {
return false, err
}
// ToDo: print here the newly created issue
if !dryRun {
if err := a.UpdateJiraAfterGithub(ticket); err != nil {
fmt.Fprintf(os.Stderr, "error updating Jira info for %s after publishing in Github\n", ticket.JiraLink)