Skip to content

Commit 92130c1

Browse files
committed
Update helper function name
1 parent f57e9d0 commit 92130c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

services/migrations/github.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ func (g *GithubDownloaderV3) GetMilestones() ([]*base.Milestone, error) {
259259
milestones = append(milestones, &base.Milestone{
260260
Title: m.GetTitle(),
261261
Description: m.GetDescription(),
262-
Deadline: convertGithubTimeToTime(m.DueOn),
262+
Deadline: convertGithubTimestampToTime(m.DueOn),
263263
State: state,
264264
Created: m.GetCreatedAt().Time,
265-
Updated: convertGithubTimeToTime(m.UpdatedAt),
266-
Closed: convertGithubTimeToTime(m.ClosedAt),
265+
Updated: convertGithubTimestampToTime(m.UpdatedAt),
266+
Closed: convertGithubTimestampToTime(m.ClosedAt),
267267
})
268268
}
269269
if len(ms) < perPage {
@@ -718,11 +718,11 @@ func (g *GithubDownloaderV3) GetPullRequests(page, perPage int) ([]*base.PullReq
718718
State: pr.GetState(),
719719
Created: pr.GetCreatedAt().Time,
720720
Updated: pr.GetUpdatedAt().Time,
721-
Closed: convertGithubTimeToTime(pr.ClosedAt),
721+
Closed: convertGithubTimestampToTime(pr.ClosedAt),
722722
Labels: labels,
723723
Merged: pr.MergedAt != nil,
724724
MergeCommitSHA: pr.GetMergeCommitSHA(),
725-
MergedTime: convertGithubTimeToTime(pr.MergedAt),
725+
MergedTime: convertGithubTimestampToTime(pr.MergedAt),
726726
IsLocked: pr.ActiveLockReason != nil,
727727
Head: base.PullRequestBranch{
728728
Ref: pr.GetHead().GetRef(),
@@ -882,7 +882,7 @@ func (g *GithubDownloaderV3) GetReviews(reviewable base.Reviewable) ([]*base.Rev
882882
return allReviews, nil
883883
}
884884

885-
func convertGithubTimeToTime(t *github.Timestamp) *time.Time {
885+
func convertGithubTimestampToTime(t *github.Timestamp) *time.Time {
886886
if t == nil {
887887
return nil
888888
}

0 commit comments

Comments
 (0)