Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
prefer .repo.owner.login
Browse files Browse the repository at this point in the history
  • Loading branch information
thepwagner committed Nov 11, 2020
1 parent 96f62a6 commit 9d3ec96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions actions/updateaction/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (h *handler) Release(ctx context.Context, evt *github.ReleaseEvent) error {
if err != nil {
return err
}
logrus.WithField("issue_number", feedbackIssue.Number).Debug("created feedback issue")

dispatchOpts, err := releaseDispatchOptions(evt, feedbackIssue)
if err != nil {
Expand Down Expand Up @@ -58,7 +59,7 @@ func releaseFeedbackIssue(ctx context.Context, gh *github.Client, evt *github.Re
_, _ = fmt.Fprintf(&body, "- [ ] %s\n", r)
}

issue, _, err := gh.Issues.Create(ctx, ghRepo.GetOwner().GetName(), ghRepo.GetName(), &github.IssueRequest{
issue, _, err := gh.Issues.Create(ctx, ghRepo.GetOwner().GetLogin(), ghRepo.GetName(), &github.IssueRequest{
Title: github.String(fmt.Sprintf("Release feedback: %s", evt.GetRelease().GetTagName())),
Body: github.String(body.String()),
})
Expand All @@ -70,7 +71,7 @@ func releaseDispatchOptions(evt *github.ReleaseEvent, feedbackIssue *github.Issu
Path: fmt.Sprintf("github.com/%s", evt.GetRepo().GetFullName()),
Next: evt.GetRelease().GetTagName(),
Feedback: RepoDispatchActionUpdatePayloadFeedback{
Owner: feedbackIssue.GetRepository().GetOwner().GetName(),
Owner: feedbackIssue.GetRepository().GetOwner().GetLogin(),
Name: feedbackIssue.GetRepository().GetName(),
IssueNumber: feedbackIssue.GetNumber(),
},
Expand Down

0 comments on commit 9d3ec96

Please sign in to comment.