Skip to content

Commit

Permalink
optimize: add owner and name field for contributor
Browse files Browse the repository at this point in the history
  • Loading branch information
justlorain committed Jun 26, 2024
1 parent 54b10bf commit 140e923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ func GetContributorsByRepo(ctx context.Context, owner, name, repoNodeID string)
Company: user.Company,
Location: user.Location,
AvatarURL: c.GetAvatarURL(),
RepoOwner: owner,
RepoName: name,
RepoNodeID: repoNodeID,
Contributions: c.GetContributions(),
})
Expand Down
2 changes: 2 additions & 0 deletions model/contributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ type Contributor struct {
Location string
AvatarURL string

RepoOwner string
RepoName string
RepoNodeID string
Contributions int
}

0 comments on commit 140e923

Please sign in to comment.