MCPcopy Create free account
hub / github.com/gogs/gogs / APIFormat

Method APIFormat

internal/database/users.go:1300–1309  ·  view source on GitHub ↗

APIFormat returns the API format of a user.

()

Source from the content-addressed store, hash-verified

1298
1299// APIFormat returns the API format of a user.
1300func (u *User) APIFormat() *api.User {
1301 return &api.User{
1302 ID: u.ID,
1303 UserName: u.Name,
1304 Login: u.Name,
1305 FullName: u.FullName,
1306 Email: u.Email,
1307 AvatarUrl: u.AvatarURL(),
1308 }
1309}
1310
1311// maxNumRepos returns the maximum number of repositories that the user can have
1312// direct ownership.

Callers 15

APIFormatLegacyMethod · 0.45
ForkRepositoryFunction · 0.45
DeleteBranchPostFunction · 0.45
TestWebhookFunction · 0.45
responseAPIUsersFunction · 0.45
GetInfoFunction · 0.45
GetAuthenticatedUserFunction · 0.45
ListIssueCommentsFunction · 0.45
ListRepoIssueCommentsFunction · 0.45
CreateIssueCommentFunction · 0.45
EditIssueCommentFunction · 0.45
ListMilestonesFunction · 0.45

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls 1

AvatarURLMethod · 0.95

Tested by 1

TestWebhookFunction · 0.36