Skip to content

Commit

Permalink
add print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Aug 14, 2024
1 parent a6a3d25 commit cad3ea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ee/cli/pkg/drift/github_issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ func (ghi GithubIssueNotification) Send(projectName string, plan string) error {
return item.Title == title
})
if exists {
log.Printf("Issue found: %v", theIssue)
_, err := (*ghi.GithubService).UpdateIssue(theIssue.ID, theIssue.Title, theIssue.Body)
if err != nil {
log.Printf("error while updating issue: %v", err)
}
return err
} else {
log.Printf("Issue NOT found: %v", theIssue)
_, err := (*ghi.GithubService).PublishIssue(title, message)
if err != nil {
log.Printf("error while publishing issue: %v", err)
Expand Down

0 comments on commit cad3ea6

Please sign in to comment.