Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvatarStackData ¶
type AvatarStackData struct {
Participants []*CommitParticipant
SearchByEmailLink string
}
AvatarStackData is the view-model for the AvatarStack render helpers. Participants[0] is the primary participant (commit author), painted on top; the rest follow.
func BuildAvatarStackData ¶
func BuildAvatarStackData(ctx context.Context, allParticipants []*git.CommitIdentity, emailUserMap *user.EmailUserMap) *AvatarStackData
type CommitParticipant ¶
type CommitParticipant struct {
GitIdentity *git.CommitIdentity // git identity (name/email), never nil
GiteaUser *user.User // matched Gitea user, nil if unmatched
}
CommitParticipant is one participant of a commit (its author or a co-author): a git identity, optionally matched to a Gitea user.
type UserCommit ¶
type UserCommit struct {
GitCommit *git.Commit
AuthorUser *user.User
AvatarStackData *AvatarStackData
}
UserCommit represents a commit with matched of database "author" user.
Click to show internal directories.
Click to hide internal directories.