Skip to content

Commit

Permalink
CreatedAt is not always set
Browse files Browse the repository at this point in the history
  • Loading branch information
rail committed Mar 28, 2022
1 parent 4f7f047 commit 6b3c8f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cmd/release/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ func (c *githubClientImpl) issueEvents(issueNum int) ([]githubEvent, error) {
}
for _, event := range events {
detail := githubEvent{
CreatedAt: *event.CreatedAt,
Event: *event.Event,
Event: *event.Event,
}
if event.CreatedAt != nil {
detail.CreatedAt = *event.CreatedAt
}
if event.ProjectCard != nil && event.ProjectCard.ProjectID != nil {
project, _, err := c.client.Projects.GetProject(c.ctx, *event.ProjectCard.ProjectID)
Expand Down

0 comments on commit 6b3c8f0

Please sign in to comment.