# Packages
No description provided by the author
# Functions
AccessLevel returns the Access a user has to a repository.
AddAssigneeIfNotAssigned adds an assignee only if he isn't aleady assigned to the issue.
AddDeletePRBranchComment adds delete branch comment for pull request issue.
AddDeployKey add new deploy key to database and authorized_keys file.
AddEmailAddress adds an email address to given user.
AddEmailAddresses adds an email address to given user.
AddGPGKey adds new public key to database.
AddOrgUser adds new user to given organization.
AddPublicKey adds new public key to database and authorized_keys file.
AddTeamMember adds new membership of given team to given organization, the user will have membership to given organization automatically when needed.
AddTestPullRequestTask adds new test tasks by given head/base repository and head/base branch, and generate new patch for testing as needed.
AddTime will add the given time (in seconds) to the issue.
AddUserOpenID adds an pre-verified/normalized OpenID URI to given user.
AssertCount assert the count of a bean.
AssertExistsAndLoadBean assert that a bean exists and load it from the test database.
AssertExistsIf asserts that a bean exists or does not exist, depending on what is expected.
AssertInt64InRange assert value is in range [low, high].
AssertNotExistsBean assert that a bean does not exist in the test database.
AssertSuccessfulInsert assert that beans is successfully inserted.
AttachmentLocalPath returns where attachment is stored in local file system based on given UUID.
BeanExists for testing, check if a bean exists.
CalcCommitStatus returns commit status state via some status, the commit statues should order by id desc.
CancelStopwatch removes the given stopwatch and logs it into issue's timeline.
Cell2Int64 converts a xorm.Cell type to int64, and handles possible irregular cases.
ChangeMilestoneAssign changes assignment of milestone for issue.
ChangeMilestoneStatus changes the milestone open/closed status.
ChangeOrgUserStatus changes public or private membership status.
ChangeRepositoryName changes all corresponding setting from old repository name to new one.
ChangeUserName changes all corresponding setting from old user name to new one.
ChangeUsernameInPullRequests changes the name of head_user_name.
CheckConsistencyFor test that all matching database entries are consistent.
CheckConsistencyForAll test that the entire database is consistent.
CheckLFSAccessForRepo check needed access mode base on action.
CheckPublicKeyString checks if the given public key string is recognized by SSH.
CheckRepoStats checks the repository stats.
CleanUpMigrateInfo finishes migrating repository and/or wiki with things that don't need to be done for mirrors.
CommentHashTag returns unique hash tag for comment id.
CommitRepoAction adds new commit action to the repository, and prepare corresponding webhooks.
CommitToPushCommit transforms a git.Commit to PushCommit type.
ComposeHTTPSCloneURL returns HTTPS clone URL based on given owner and repository name.
Cond create a condition with arguments for a test.
CountIssuesByRepo map from repoID to number of issues matching the options.
CountLoginSources returns number of login sources.
CountNotices returns number of notices.
CountOrganizations returns number of organizations.
CountRepoClosedMilestones returns number of closed milestones in given repository.
CountRepositories returns number of repositories.
CountUserRepositories returns number of repositories user owns.
CountUsers returns number of users.
CreateCodeComment creates a plain code comment at the specified line / path.
CreateComment creates comment of issue or commit.
CreateCommentReaction creates a reaction on comment.
CreateHookTask creates a new hook task, it handles conversion from Payload to PayloadContent.
CreateIssueComment creates a plain issue comment.
CreateIssueDependency creates a new dependency for an issue.
CreateIssueReaction creates a reaction on issue.
CreateLFSLock creates a new lock.
CreateLoginSource inserts a LoginSource in the DB if not already existing with the given name.
CreateNotice creates new system notice.
CreateOrganization creates record of a new organization.
CreateOrStopIssueStopwatch will create or remove a stopwatch and will log it into issue's timeline.
CreateOrUpdateIssueNotifications creates an issue notification for each watcher, or updates it if already exists.
CreateOrUpdateIssueWatch set watching for a user and issue.
CreateReaction creates reaction for issue or comment.
CreateRefComment creates a commit reference comment to issue.
CreateRegistration will create a new U2FRegistration from the given Registration.
CreateRelease creates a new release of repository.
CreateRepository creates a repository for the user/organization u.
CreateRepositoryNotice creates new system notice with type NoticeRepository.
CreateReview creates a new review based on opts.
CreateUser creates record of a new user.
CreateWebhook creates a new web hook.
CutDiffAroundLine cuts a diff of a file in way that only the given line + numberOfLine above it will be shown it also recalculates hunks and adds the appropriate headers to the new diff.
DeleteAccessTokenByID deletes access token by given ID.
DeleteAttachment deletes the given attachment and optionally the associated file.
DeleteAttachments deletes the given attachments and optionally the associated files.
DeleteAttachmentsByComment deletes all attachments associated with the given comment.
DeleteAttachmentsByIssue deletes all attachments associated with the given issue.
DeleteComment deletes the comment.
DeleteCommentReaction deletes a reaction on comment.
DeleteDeployKey deletes deploy key from its repository authorized_keys file if needed.
DeleteEmailAddress deletes an email address of given user.
DeleteEmailAddresses deletes multiple email addresses.
DeleteGPGKey deletes GPG key information in database.
DeleteInactivateUsers deletes all inactivate users and email addresses.
DeleteIssueLabel deletes issue-label relation.
DeleteIssueReaction deletes a reaction on issue.
DeleteLabel delete a label of given repository.
DeleteLFSLockByID deletes a lock by given ID.
DeleteMilestoneByRepoID deletes a milestone from a repository.
DeleteMirrorByRepoID deletes a mirror by repoID.
DeleteMissingRepositories deletes all repository records that lost Git files.
DeleteNotice deletes a system notice by given ID.
DeleteNotices deletes all notices with ID from start to end (inclusive).
DeleteNoticesByIDs deletes notices by given IDs.
DeleteNotPassedAssignee deletes all assignees who aren't passed via the "assignees" array.
DeleteOldRepositoryArchives deletes old repository archives.
DeleteOrganization completely and permanently deletes everything of organization.
DeletePublicKey deletes SSH key information both in database and authorized_keys file.
DeleteReaction deletes reaction for issue or comment.
DeleteRegistration will delete U2FRegistration.
DeleteReleaseByID deletes a release and corresponding Git tag by given ID.
DeleteRepoFromIndexer remove all of a repository's entries from the indexer.
DeleteRepository deletes a repository for a user or organization.
DeleteRepositoryArchives deletes all repositories' archives.
DeleteSource deletes a LoginSource record in DB.
DeleteTeam deletes given team.
DeleteTwoFactorByID deletes two-factor authentication token by given ID.
DeleteUpload delete a upload.
DeleteUploadByUUID deletes a upload by UUID.
DeleteUploads deletes multiple uploads.
DeleteUser completely and permanently deletes everything of a user, but issues/comments/pulls will be kept and shown as someone has been deleted.
DeleteUserOpenID deletes an openid address of given user.
DeleteWebhookByOrgID deletes webhook of organization by given ID.
DeleteWebhookByRepoID deletes webhook of repository by given ID.
DeliverHooks checks and delivers undelivered hooks.
DumpDatabase dumps all data from database according the special database SQL syntax to file system.
ExternalUserLogin attempts a login using external source types.
FetchCodeComments will return a 2d-map: ["Path"]["Line"] = Comments at line.
FindComments returns all comments according options.
FindReviews returns reviews passing FindReviewOptions.
FindTopics retrieves the topics via FindTopicOptions.
FindUnitTypes give the unit key name and return unit.
FindUserAccessibleRepoIDs find all accessible repositories' ID by user's id.
FollowUser marks someone be another's follower.
ForkRepository forks a repository.
GetAccessTokenBySHA returns access token by given sha1.
GetActiveOAuth2LoginSourceByName returns a OAuth2 LoginSource based on the given name.
GetActiveOAuth2ProviderLoginSources returns all actived LoginOAuth2 sources.
GetActiveOAuth2Providers returns the map of configured active OAuth2 providers key is used as technical name (like in the callbackURL) values to display.
GetActiveWebhooksByOrgID returns all active webhooks for an organization.
GetActiveWebhooksByRepoID returns all active webhooks of repository.
GetActivityStats return stats for repository at given time range.
GetAssigneesByIssue returns everyone assigned to that issue.
GetAttachmentByID returns attachment by given id.
GetAttachmentByUUID returns attachment by given UUID.
GetAttachmentsByCommentID returns all attachments if comment by given ID.
GetAttachmentsByIssueID returns all attachments of an issue.
GetBranchesByPath returns a branch by it's path.
GetCommentByID returns the comment by given ID.
GetCommentsByIssueID returns all comments of an issue.
GetCommentsByIssueIDSince returns a list of comments of an issue since a given time point.
GetCommentsByRepoIDSince returns a list of comments for all issues in a repo since a given time point.
GetCommitGraph return a list of commit (GraphItems) from all branches.
GetCommitStatus populates a given status for a given commit.
GetCommitStatuses returns all statuses for a given commit.
GetCount get the count of a bean.
GetCurrentReview returns the current pending review of reviewer for given issue.
GetDeployKeyByID returns deploy key by given ID.
GetDeployKeyByRepo returns deploy key by given public key ID and repository ID.
GetDiffCommit builds a Diff representing the given commitID.
GetDiffRange builds a Diff between two commits of a repository.
GetDiffRangeWithWhitespaceBehavior builds a Diff between two commits of a repository.
GetDingtalkPayload converts a ding talk webhook into a DingtalkPayload.
GetDiscordPayload converts a discord webhook into a DiscordPayload.
GetEmailAddresses returns all email addresses belongs to given user.
GetExternalLogin checks if a externalID in loginSourceID scope already exists.
GetFeeds returns actions according to the provided options.
GetGPGKeyByID returns public key by given ID.
GetIssueByID returns an issue by given ID.
GetIssueByIndex returns issue by index in a repository.
GetIssuesByIDs return issues with the given IDs.
GetIssueStats returns issue statistic information by given conditions.
GetIssueWatch returns an issue watch by user and issue.
GetIssueWatchers returns watchers/unwatchers of a given issue.
GetLabelByID returns a label by given ID.
GetLabelInRepoByID returns a label by ID in given repository.
GetLabelInRepoByName returns a label by name in given repository.
GetLabelsByIssueID returns all labels that belong to given issue by ID.
GetLabelsByRepoID returns all labels that belong to given repository by ID.
GetLabelsInRepoByIDs returns a list of labels by IDs in given repository, it silently ignores label IDs that are not belong to the repository.
GetLabelTemplateFile loads the label template file by given name, then parses and returns a list of name-color pairs and optionally description.
GetLatestCommitStatus returns all statuses with a unique context for a given commit.
GetLFSLock returns release by given path.
GetLFSLockByID returns release by given id.
GetLFSLockByRepoID returns a list of locks of repository.
GetLoginSourceByID returns login source by given ID.
GetMilestoneByRepoID returns the milestone in a repository.
GetMilestones returns a list of milestones of given repository and status.
GetMilestonesByRepoID returns all milestones of a repository.
GetMirrorByRepoID returns mirror information of a repository.
GetNotificationCount returns the notification count for user.
GetOrgByName returns organization by given name.
GetOrgsByUserID returns a list of organizations that the given user ID has joined.
GetOrgUsersByOrgID returns all organization-user relations by organization ID.
GetOrgUsersByUserID returns all organization-user relations by user ID.
GetOwnedOrgsByUserID returns a list of organizations are owned by given user ID.
GetOwnedOrgsByUserIDDesc returns a list of organizations are owned by given user ID, ordered descending by the given condition.
GetParticipantsByIssueID returns all users who are participated in comments of an issue.
GetPrivateRepositoryCount returns the total number of private repositories of user.
GetProtectedBranchBy getting protected branch by ID/Name.
GetProtectedBranchByID getting protected branch by ID.
GetProtectedBranchByRepoID getting protected branch by repo ID.
GetPublicKeyByID returns public key by given ID.
GetPublicRepositoryCount returns the total number of public repositories of user.
GetPullRequestByID returns a pull request by given ID.
GetPullRequestByIndex returns a pull request by the given index.
GetPullRequestByIssueID returns pull request by given issue ID.
GetRawDiff dumps diff results of repository in given commit ID to io.Writer.
GetRawDiffForFile dumps diff results of file in given commit ID to io.Writer.
GetRawIssueByIndex returns raw issue without loading attributes by index in a repository.
GetRelease returns release by given ID.
GetReleaseAttachments retrieves the attachments for releases.
GetReleaseByID returns release with given ID.
GetReleaseCountByRepoID returns the count of releases of repository.
GetReleasesByRepoID returns a list of releases of repository.
GetRepoIssueStats returns number of open and closed repository issues by given filter mode.
GetRepositoriesByForkID returns all repositories with given fork ID.
GetRepositoriesMapByIDs returns the repositories by given id slice.
GetRepositoryByID returns the repository by given id if exists.
GetRepositoryByName returns the repository by given name under user if exists.
GetRepositoryByOwnerAndName returns the repository by given ownername and reponame.
GetRepositoryCount returns the total number of repositories of user.
GetReviewByID returns the review by the given ID.
GetSlackPayload converts a slack webhook into a SlackPayload.
GetStarredRepos returns the repos starred by a particular user.
GetStatistic returns the database statistics.
GetTeam returns team by given team name and organization.
GetTeamByID returns team by given ID.
GetTeamMembers returns all members in given team of organization.
GetTeamsWithAccessToRepo returns all teams in an organization that have given access level to the repository.
GetTopicByName retrieves topic by name.
GetTrackedTimes returns all tracked times that fit to the given options.
GetTwoFactorByUID returns the two-factor authentication token associated with the user, if any.
GetU2FRegistrationByID returns U2F registration by id.
GetU2FRegistrationsByUID returns all U2F registrations of the given user.
GetUnmergedPullRequest returns a pull request that is open and has not been merged by given head/base and repo/branch.
GetUnmergedPullRequestsByBaseInfo returns all pull requests that are open and has not been merged by given base information (repo and branch).
GetUnmergedPullRequestsByHeadInfo returns all pull requests that are open and has not been merged by given head information (repo and branch).
GetUploadByUUID returns the Upload by UUID.
GetUploadsByUUIDs returns multiple uploads by UUIDS.
GetUser checks if a user already exists.
GetUserByEmail returns the user object by given e-mail if exists.
GetUserByID returns the user object by given ID if exists.
GetUserByKeyID get user information by user's public key id.
GetUserByName returns user by given name.
GetUserByOpenID returns the user object by given OpenID if exists.
GetUserEmailsByNames returns a list of e-mails corresponds to names.
GetUserIDsByNames returns a slice of ids corresponds to names.
GetUserIfHasWriteAccess returns the user with write access of repository by given ID.
GetUserIssueStats returns issue statistic information for dashboard by given conditions.
GetUserMirrorRepositories returns a list of mirror repositories of given user.
GetUserOpenIDs returns all openid addresses that belongs to given user.
GetUserRepositories returns a list of repositories of given user.
GetUserSalt returns a random user salt token.
GetUsersByIDs returns all resolved users from a list of Ids.
GetUserTeams returns all teams that user belongs to in given organization.
GetWatchedRepos returns the repos watched by a particular user.
GetWatchers returns all watchers of given repository.
GetWebhookByID returns webhook of repository by given ID.
GetWebhookByOrgID returns webhook of organization by given ID.
GetWebhookByRepoID returns webhook of repository by given ID.
GetWebhooksByOrgID returns all webhooks for an organization.
GetWebhooksByRepoID returns all webhooks of a repository.
GitConfigPath returns the path to a repository's git config/ directory.
GitFsck calls 'git fsck' to check repository health.
GitGcRepos calls 'git gc' to remove unnecessary files and optimize the local repository.
HasAccess returns true if user has access to repo.
HasDeployKey returns true if public key is a deploy key of given repository.
HasForkedRepo checks if given user has already forked a repository with given ID.
HasIssueLabel returns true if issue has been labeled.
HasTeamRepo returns true if given repository belongs to team.
HasUserStopwatch returns true if the user has a stopwatch.
HookTasks returns a list of hook tasks by given conditions.
InitDeliverHooks starts the hooks delivery thread.
InitFixtures initialize test fixtures for a test database.
InitIssueIndexer initialize issue indexer.
InitMailRender initializes the macaron mail renderer.
InitOAuth2 initialize the OAuth2 lib and register all active OAuth2 providers in the library.
InitRepoIndexer initialize the repo indexer.
InitSyncMirrors initializes a go routine to sync the mirrors.
InitTestPullRequests runs the task to test all the checking status pull requests.
IsEmailUsed returns true if the email has been used.
IsErrAccessTokenEmpty checks if an error is a ErrAccessTokenEmpty.
IsErrAccessTokenNotExist checks if an error is a ErrAccessTokenNotExist.
IsErrAttachmentNotExist checks if an error is a ErrAttachmentNotExist.
IsErrBranchAlreadyExists checks if an error is an ErrBranchAlreadyExists.
IsErrBranchNameConflict checks if an error is an ErrBranchNameConflict.
IsErrBranchNotExist checks if an error is a ErrBranchNotExist.
IsErrCircularDependency checks if an error is a ErrCircularDependency.
IsErrCommentNotExist checks if an error is a ErrCommentNotExist.
IsErrDependenciesLeft checks if an error is a ErrDependenciesLeft.
IsErrDependencyExists checks if an error is a ErrDependencyExists.
IsErrDependencyNotExists checks if an error is a ErrDependencyExists.
IsErrDeployKeyAlreadyExist checks if an error is a ErrDeployKeyAlreadyExist.
IsErrDeployKeyNameAlreadyUsed checks if an error is a ErrDeployKeyNameAlreadyUsed.
IsErrDeployKeyNotExist checks if an error is a ErrDeployKeyNotExist.
IsErrEmailAlreadyUsed checks if an error is a ErrEmailAlreadyUsed.
IsErrExternalLoginUserAlreadyExist checks if an error is a ExternalLoginUserAlreadyExist.
IsErrExternalLoginUserNotExist checks if an error is a ExternalLoginUserNotExist.
IsErrGPGKeyAccessDenied checks if an error is a ErrGPGKeyAccessDenied.
IsErrGPGKeyIDAlreadyUsed checks if an error is a ErrKeyNameAlreadyUsed.
IsErrGPGKeyNotExist checks if an error is a ErrGPGKeyNotExist.
IsErrGPGKeyParsing checks if an error is a ErrGPGKeyParsing.
IsErrGPGNoEmailFound checks if an error is a ErrGPGNoEmailFound.
IsErrInvalidCloneAddr checks if an error is a ErrInvalidCloneAddr.
IsErrInvalidMergeStyle checks if an error is a ErrInvalidMergeStyle.
IsErrInvalidTagName checks if an error is a ErrInvalidTagName.
IsErrIssueNotExist checks if an error is a ErrIssueNotExist.
IsErrKeyAccessDenied checks if an error is a ErrKeyAccessDenied.
IsErrKeyAlreadyExist checks if an error is a ErrKeyAlreadyExist.
IsErrKeyNameAlreadyUsed checks if an error is a ErrKeyNameAlreadyUsed.
IsErrKeyNotExist checks if an error is a ErrKeyNotExist.
IsErrKeyUnableVerify checks if an error is a ErrKeyUnableVerify.
IsErrLabelNotExist checks if an error is a ErrLabelNotExist.
IsErrLastOrgOwner checks if an error is a ErrLastOrgOwner.
IsErrLFSLockAlreadyExist checks if an error is a ErrLFSLockAlreadyExist.
IsErrLFSLockNotExist checks if an error is a ErrLFSLockNotExist.
IsErrLFSUnauthorizedAction checks if an error is a ErrLFSUnauthorizedAction.
IsErrLoginSourceAlreadyExist checks if an error is a ErrLoginSourceAlreadyExist.
IsErrLoginSourceInUse checks if an error is a ErrLoginSourceInUse.
IsErrLoginSourceNotExist checks if an error is a ErrLoginSourceNotExist.
IsErrMilestoneNotExist checks if an error is a ErrMilestoneNotExist.
IsErrNamePatternNotAllowed checks if an error is an ErrNamePatternNotAllowed.
IsErrNameReserved checks if an error is a ErrNameReserved.
IsErrNotAllowedToMerge checks if an error is an ErrNotAllowedToMerge.
IsErrOpenIDAlreadyUsed checks if an error is a ErrOpenIDAlreadyUsed.
IsErrOpenIDConnectInitialize checks if an error is a ExternalLoginUserAlreadyExist.
IsErrOrgNotExist checks if an error is a ErrOrgNotExist.
IsErrPullRequestAlreadyExists checks if an error is a ErrPullRequestAlreadyExists.
IsErrPullRequestNotExist checks if an error is a ErrPullRequestNotExist.
IsErrReachLimitOfRepo checks if an error is a ErrReachLimitOfRepo.
IsErrReleaseAlreadyExist checks if an error is a ErrReleaseAlreadyExist.
IsErrReleaseNotExist checks if an error is a ErrReleaseNotExist.
IsErrRepoAlreadyExist checks if an error is a ErrRepoAlreadyExist.
IsErrRepoFileAlreadyExist checks if an error is a ErrRepoFileAlreadyExist.
IsErrRepoNotExist checks if an error is a ErrRepoNotExist.
IsErrRepoRedirectNotExist check if an error is an ErrRepoRedirectNotExist.
IsErrReviewNotExist checks if an error is a ErrReviewNotExist.
IsErrSSHDisabled checks if an error is a ErrSSHDisabled.
IsErrStopwatchNotExist checks if an error is a ErrStopwatchNotExist.
IsErrTagAlreadyExists checks if an error is an ErrTagAlreadyExists.
IsErrTeamAlreadyExist checks if an error is a ErrTeamAlreadyExist.
IsErrTopicNotExist checks if an error is an ErrTopicNotExist.
IsErrTrackedTimeNotExist checks if an error is a ErrTrackedTimeNotExist.
IsErrTwoFactorNotEnrolled checks if an error is a ErrTwoFactorNotEnrolled.
IsErrU2FRegistrationNotExist checks if an error is a ErrU2FRegistrationNotExist.
IsErrUnknownDependencyType checks if an error is ErrUnknownDependencyType.
IsErrUpdateTaskNotExist checks if an error is a ErrUpdateTaskNotExist.
IsErrUploadNotExist checks if an error is a ErrUploadNotExist.
IsErrUserAlreadyExist checks if an error is a ErrUserAlreadyExists.
IsErrUserDoesNotHaveAccessToRepo checks if an error is a ErrRepoFileAlreadyExist.
IsErrUserHasOrgs checks if an error is a ErrUserHasOrgs.
IsErrUserNotAllowedCreateOrg checks if an error is an ErrUserNotAllowedCreateOrg.
IsErrUserNotExist checks if an error is a ErrUserNotExist.
IsErrUserOwnRepos checks if an error is a ErrUserOwnRepos.
IsErrWebhookNotExist checks if an error is a ErrWebhookNotExist.
IsErrWikiAlreadyExist checks if an error is an ErrWikiAlreadyExist.
IsErrWikiInvalidFileName checks if an error is an ErrWikiInvalidFileName.
IsErrWikiReservedName checks if an error is an ErrWikiReservedName.
IsFollowing returns true if user is following followID.
IsOpenIDUsed returns true if the openid has been used.
IsOrganizationMember returns true if given user is member of organization.
IsOrganizationOwner returns true if given user is in the owner team.
IsPublicMembership returns true if given user public his/her membership.
IsReleaseExist returns true if release with given tag name already exists.
IsRepositoryExist returns true if the repository with given name under user has already existed.
IsStaring checks if user has starred given repository.
IssueNoDependenciesLeft checks if issue can be closed.
Issues returns a list of issues by given conditions.
IsTeamMember returns true if given user is a member of team.
IsUsableRepoName returns true when repository is usable.
IsUsableTeamName tests if a name could be as team name.
IsUsableUsername returns an error when a username is reserved.
IsUserAssignedToIssue returns true when the user is assigned to the issue.
IsUserExist checks if given user name exist, the user name should be noncased unique.
IsUserInTeams returns if a user in some teams.
IsValidHookContentType returns true if given name is a valid hook content type.
IsValidHookTaskType returns true if given name is a valid hook task type.
IsWatching checks if user has watched given repository.
LinkAccountToUser link the gothUser to the user.
ListAccessTokens returns a list of access tokens belongs to given user.
ListAccountLinks returns a map with the ExternalLoginUser and its LoginSource.
ListDeployKeys returns all deploy keys by given repository ID.
ListGPGKeys returns a list of public keys belongs to given user.
ListPublicKeys returns a list of public keys belongs to given user.
ListPublicLdapSSHKeys returns a list of synchronized public ldap ssh keys belongs to given user and login source.
ListToPushCommits transforms a list.List to PushCommits type.
LoadConfigs loads the database settings.
LoadFixtures load fixtures for a test database.
LoadRepoConfig loads the repository config.
LocalCopyPath returns the local repository copy path.
LocalWikiPath returns the local wiki repository copy path.
LoginSources returns a slice of all login sources found in DB.
LoginViaLDAP queries if login/password is valid against the LDAP directory pool, and create a local user if success when enabled.
LoginViaPAM queries if login/password is valid against the PAM, and create a local user if success when enabled.
LoginViaSMTP queries if login/password is valid against the SMTP, and create a local user if success when enabled.
LookupRepoRedirect look up if a repository has a redirect name.
MainTest a reusable TestMain(..) function for unit tests that need to use a test database.
MakeAssigneeList concats a string with all names of the assignees.
MakeEmailPrimary sets primary email address of given user.
MakeIDsFromAPIAssigneesToAdd returns an array with all assignee IDs.
MergePullRequestAction adds new action for merging pull request.
MigrateRepository migrates a existing repository from other project hosting.
MilestoneStats returns number of open and closed milestones of given repository.
MirrorSyncCreateAction adds new action for mirror synchronization of new reference.
MirrorSyncDeleteAction adds new action for mirror synchronization of delete reference.
MirrorSyncPushAction adds new action for mirror synchronization of pushed commits.
MirrorUpdate checks and updates mirror repositories.
NewAccessToken creates new access token.
NewAttachment creates a new attachment object.
NewCommitStatus creates a new CommitStatus given a bunch of parameters NOTE: All text-values will be trimmed from whitespaces.
NewEngine initializes a new xorm.Engine.
NewGhostUser creates and returns a fake user for someone has deleted his/her account.
NewIssue creates new issue with labels for repository.
NewIssueLabel creates a new issue-label relation.
NewIssueLabels creates a list of issue-label relations.
NewLabel creates a new label for a repository.
NewLabels creates new labels for a repository.
NewLFSMetaObject stores a given populated LFSMetaObject structure in the database if it is not already present.
NewMilestone creates new milestone of repository.
NewPullRequest creates new pull request with labels for repository.
NewPushCommits creates a new PushCommits object.
NewRepoAction adds new action for creating repository.
NewRepoContext creates a new repository context.
NewRepoRedirect create a new repo redirect.
NewTeam creates a record of new team.
NewTestEngine sets a new test xorm.Engine.
NewTwoFactor creates a new two-factor authentication token.
NewUpload creates a new upload object.
NormalizeWikiName normalizes a wiki name.
Notices returns notices in given page.
NotificationsForUser returns notifications for a given user and status.
NotifyWatchers creates batch of actions for every watcher.
ParseAccessMode returns corresponding access mode to given permission string.
ParseCommitsWithSignature checks if signaute of commits are corresponding to users gpg keys.
ParseCommitsWithStatus checks commits latest statuses and calculates its worst status state.
ParseCommitWithSignature check if signature is good against keystore.
ParsePatch builds a Diff object from a io.Reader and some parameters.
Ping tests if database is alive.
PrepareTestDatabase load test fixtures into test database.
PrepareTestEnv prepares the environment for unit tests.
PrepareWebhook adds special webhook to task queue for given payload.
PrepareWebhooks adds new webhooks to task queue for given payload.
PullRequests returns all pull requests for a base Repo by the given conditions.
PushUpdate must be called for any push actions in order to generates necessary push action history feeds.
ReinitMissingRepositories reinitializes all repository records that lost Git files.
RemoveAccountLink will remove all external login sources for the given user.
RemoveAllWithNotice removes all directories in given path and creates a system notice when error occurs.
RemoveIssueDependency removes a dependency from an issue.
RemoveOldDeletedBranches removes old deleted branches.
RemoveOrgUser removes user from given organization.
RemoveTeamMember removes member from given team of given organization.
RenameRepoAction adds new action for renaming a repository.
RepoPath returns repository path by given user and repository name.
RepositoryListOfMap make list from values of map.
RewriteAllPublicKeys removes any authorized key and rewrite all keys from database again.
SaveTopics save topics to a repository.
SearchPublicKeyByContent searches content as prefix (leak e-mail part) and returns public key found.
SearchRepositoryByName takes keyword and part of repository name to search, it returns results in given range and number of total results.
SearchUsers takes options i.e.
SecToTime converts an amount of seconds to a human-readable string (example: 66s -> 1min 6s).
SendActivateAccountMail sends an activation mail to the user (new user registration).
SendActivateEmailMail sends confirmation email to confirm new email address.
SendCollaboratorMail sends mail notification to new collaborator.
SendIssueCommentMail composes and sends issue comment emails to target receivers.
SendIssueMentionMail composes and sends issue mention emails to target receivers.
SendRegisterNotifyMail triggers a notify e-mail by admin created a account.
SendResetPasswordMail sends a password reset mail to the user.
SendTestMail sends a test mail.
SendUserMail sends a mail to the user.
SetEngine sets the xorm.Engine.
SetNotificationStatus change the notification status.
SlackLinkFormatter creates a link compatible with slack.
SlackLinkToRef slack-formatter link to a repo ref.
SlackShortTextFormatter replaces &, <, > with HTML characters.
SlackTextFormatter replaces &, <, > with HTML characters see: https://api.slack.com/docs/formatting.
SMTPAuth performs an SMTP authentication.
SortReleases sorts releases by number of commits and created time.
SSHKeyGenParsePublicKey extracts key type and length using ssh-keygen.
SSHNativeParsePublicKey extracts the key type and length using the golang SSH library.
StarRepo or unstar repository.
StopwatchExists returns true if the stopwatch exists.
SyncExternalUsers is used to synchronize users with external authorization source.
SyncMirrors checks and syncs mirrors.
SyncReleasesWithTags synchronizes release table with repository tags.
SyncRepositoryHooks rewrites all repositories' pre-receive, update and post-receive hooks to make sure the binary and custom conf path are up-to-date.
TestPullRequests checks and tests untested patches of pull requests.
ToggleUserOpenIDVisibility toggles visibility of an openid address of given user.
ToHookContentType returns HookContentType by given name.
ToHookTaskType returns HookTaskType by given name.
TotalTimes returns the spent time for each user by an issue.
TransferOwnership transfers all corresponding setting from old user to new one.
TransferRepoAction adds new action for transferring repository, the Owner field of repository is assumed to be new owner.
UnfollowUser unmarks someone as another's follower.
UpdateAccessToken updates information of access token.
UpdateAPIAssignee is a helper function to add or delete one or multiple issue assignee(s) Deleting is done the Github way (quote from their api documentation): https://developer.github.com/v3/issues/#edit-an-issue "assignees" (array): Logins for Users to assign to this issue.
UpdateAssignee deletes or adds an assignee to an issue.
UpdateAttachment updates the given attachment in database.
UpdateComment updates information of comment.
UpdateDeployKey updates deploy key information.
UpdateDeployKeyCols updates deploy key information in the specified columns.
UpdateHookTask updates information of hook task.
UpdateIssue updates all fields of given issue.
UpdateIssueCols only updates values of specific columns for given issue.
UpdateIssueDeadline updates an issue deadline and adds comments.
UpdateIssueIndexer add/update an issue to the issue indexer.
UpdateIssueIndexerCols update an issue in the issue indexer, given changes to the specified columns.
UpdateIssueMentions extracts mentioned people from content and updates issue-user relations for them.
UpdateIssuesCommit checks if issues are manipulated by commit message.
UpdateIssueUserByRead updates issue-user relation for reading.
UpdateIssueUsersByMentions updates issue-user pairs by mentioning.
UpdateLabel updates label information.
UpdateLocalCopyBranch pulls latest changes of given branch from repoPath to localPath.
UpdateMilestone updates information of given milestone.
UpdateMirror updates the mirror.
UpdateNotificationStatuses updates the statuses of all of a user's notifications that are of the currentStatus type to the desiredStatus.
UpdateProtectBranch saves branch protection options of repository.
UpdatePublicKeyUpdated updates public key use time.
UpdateRelease updates information of a release.
UpdateRepoIndexer update a repository's entries in the indexer.
UpdateRepository updates a repository.
UpdateRepositoryUnits updates a repository's units.
UpdateReview will update all cols of the given review in db.
UpdateSource updates a LoginSource record in DB.
UpdateTeam updates information of team.
UpdateTeamUnits updates a teams's units.
UpdateTwoFactor updates a two-factor authentication token.
UpdateUser updates user's information.
UpdateUserCols update user according special columns.
UpdateUserSetting updates user's settings.
UpdateWebhook updates information of webhook.
UpdateWebhookLastStatus updates last status of webhook.
UploadLocalPath returns where uploads is stored in local file system based on given UUID.
UserPath returns the path absolute path of user repositories.
UserSignIn validates user name and password.
ValidateCommitsWithEmails checks if authors' e-mails of commits are corresponding to users.
ValidateCommitWithEmail check if author's e-mail of commit is corresponding to a user.
ValidateTopic checks topics by length and match pattern rules.
VerifyActiveEmailCode verifies active email code when active account.
VerifyUserActiveCode verifies active code when active account.
WatchRepo watch or unwatch repository.
WikiFilenameToName converts a wiki filename to its corresponding page name.
WikiNameToFilename converts a wiki name to its corresponding filename.
WikiNameToSubURL converts a wiki name to its corresponding sub-URL.
WikiPath returns wiki data path by given user and repository name.
# Constants
3.
0.
4.
1.
2.
12.
14.
10.
5.
6.
7.
1.
17.
16.
11.
19.
20.
18.
9.
2.
13.
15.
3.
8.
4.
Enumerate all the comment tag types.
Enumerate all the comment tag types.
Enumerate all the comment tag types.
Enumerate all the comment tag types.
Dependency added.
Added a due date.
Add time manual for time tracking.
Assignees changed.
Cancel a stopwatch for time tracking.
Change Title.
Enumerate all the comment types.
Comment a line of code.
Plain comment, can be associated with a commit (CommitID > 0) and a line (LineNum > 0).
Reference from a comment.
Reference from a commit (not part of a pull request).
Delete Branch.
References.
Labels changed.
Milestone changed.
Modified the due date.
Reference from a pull request.
Removed a due date.
Dependency removed.
Enumerate all the comment types.
Reviews a pull request by giving general feedback.
Start a stopwatch for time tracking.
Stop a stopwatch for time tracking.
define unknown comment type.
CommitStatusError is for when the Status is Error.
CommitStatusFailure is for when the Status is Failure.
CommitStatusPending is for when the Status is Pending.
CommitStatusSuccess is for when the Status is Success.
CommitStatusWarning is for when the Status is Warning.
ContentTypeForm is an url-encoded form payload for web hook.
ContentTypeJSON is a JSON payload for web hooks.
Define Dependency Types.
Define Dependency Types.
DiffFileType possible values.
DiffFileType possible values.
DiffFileType possible values.
DiffFileType possible values.
DiffLineType possible values.
DiffLineType possible values.
DiffLineType possible values.
DiffLineType possible values.
Types of hook tasks.
Types of hook tasks.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
Filter modes.
Filter modes.
Filter modes.
Filter modes.
Types of hook tasks.
Types of hook tasks.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Possible statuses of a web hook.
Possible statuses of a web hook.
Possible statuses of a web hook.
KeyTypeDeploy specifies the deploy key.
KeyTypeUser specifies the user key.
LFSMetaFileIdentifier is the string appearing at the first line of LFS pointer files.
LFSMetaFileOidPrefix appears in LFS pointer files on a line before the sha256 hash.
5.
2.
Note: new type must append to the end of list to maintain compatibility.
6.
4.
1.
3.
MergeStyleMerge create merge commit.
MergeStyleRebase rebase before merging.
MergeStyleSquash squash commits into single commit before merging.
NonexistentID an ID that will never exist.
NoticeRepository type.
NotificationSourceCommit is a notification of a commit.
NotificationSourceIssue is a notification of an issue.
NotificationSourcePullRequest is a notification of a pull request.
NotificationStatusPinned represents a pinned notification.
NotificationStatusRead represents a read notification.
NotificationStatusUnread represents an unread notification.
ProtectedBranchRepoID protected Repo ID.
Enumerate all the pull request types.
Enumerate all the pull request types.
Enumerate all the pull request status.
Enumerate all the pull request status.
Enumerate all the pull request status.
Enumerate all the pull request status.
RawDiffType possible values.
RawDiffType possible values.
RepositoryListDefaultPageSize is the default number of repositories to load in memory when running administrative tasks on all (or almost all) of them.
ReviewTypeApprove approves changes.
ReviewTypeComment gives general feedback.
ReviewTypePending is a review which is not published yet.
ReviewTypeReject gives feedback blocking merge.
ReviewTypeUnknown unknown review type.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Types of hook tasks.
SMTP authentication type names.
SMTP authentication type names.
1 code.
7 ExternalTracker.
6 ExternalWiki.
2 issues.
3 PRs.
4 Releases.
5 Wiki.
Historic reason to make it starts at 0.
UserTypeOrganization defines an organization.
# Variables
DbCfg holds the database settings.
EnableSQLite3 use SQLite3.
EnableTiDB enable TiDB.
ErrEmailAddressNotExist email address not exist.
ErrEmailNotActivated e-mail address has not been activated error.
ErrEmailNotExist e-mail does not exist error.
ErrLFSObjectNotExist is returned from lfs models functions in order to differentiate between database and missing object errors.
ErrLoginSourceNotActived login source is not actived error.
ErrMirrorNotExist mirror does not exist error.
ErrNameEmpty name is empty error.
ErrOpenIDNotExist openid is not known.
ErrTeamNotExist team does not exist.
ErrUnitNotExist organization does not exist.
ErrUnsupportedLoginType login source is unknown error.
ErrUserNameIllegal user name contains illegal characters error.
ErrUserNotKeyOwner user does not own this key error.
Gitignores contains the gitiginore files.
HasEngine specifies if we have a xorm.Engine.
HookQueue is a global queue of web hooks.
ItemsPerPage maximum items per page in forks, watchers and stars of a repo.
LabelTemplates contains the label template files.
Licenses contains the license files.
LoginNames contains the name of LoginType values.
MirrorQueue holds an UniqueQueue object of the mirror.
MustRepoUnits contains the units could not be disabled currently.
OAuth2DefaultCustomURLMappings contains the map of default URL's for OAuth2 providers that are allowed to have custom urls key is used to map the OAuth2Provider value is the mapping as defined for the OAuth2Provider.
OAuth2Providers contains the map of registered OAuth2 providers in Gitea (based on goth) key is used to map the OAuth2Provider with the goth provider type (also in LoginSource.OAuth2Config.Provider) value is used to store display data.
Readmes contains the readme files.
SecurityProtocolNames contains the name of SecurityProtocol values.
SMTPAuths contains available SMTP authentication type names.
Enumerate all the units.
Enumerate all the units.
Enumerate all the units.
Enumerate all the units.
Enumerate all the units.
Enumerate all the units.
Units contains all the units.
Enumerate all the units.
# Structs
Access represents the highest access level of a user to the repository.
AccessToken represents a personal access token.
Action represents user operation type and other information to repository.
ActivityStats represets issue and pull request information.
Attachment represent a attachment of issue/comment/release.
Branch holds the branch information.
CloneLink represents different types of clone URLs of repository.
Collaboration represent the relation between an individual and a repository.
Collaborator represents a user with collaboration details.
Comment represents a comment in commit and issue page.
CommitRepoActionOptions represent options of a new commit action.
CommitStatus holds a single Status of a single Commit.
CommitVerification represents a commit validation of signature.
CreateCommentOptions defines options for creating comment.
CreateRepoOptions contains the create repository options.
CreateReviewOptions represent the options to create a review.
DeletedBranch struct.
DeleteRepoFileOptions holds the repository delete file options.
DeployKey represents deploy key information and its relation with repository.
Diff represents a difference between two git trees.
DiffFile represents a file diff.
DiffLine represents a line difference in a DiffSection.
DiffSection represents a section of a DiffFile.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EmailAddress is the list of all email addresses of a user.
ErrAccessTokenEmpty represents a "AccessTokenEmpty" kind of error.
ErrAccessTokenNotExist represents a "AccessTokenNotExist" kind of error.
ErrAttachmentNotExist represents a "AttachmentNotExist" kind of error.
ErrBranchAlreadyExists represents an error that branch with such name already exists.
ErrBranchNameConflict represents an error that branch name conflicts with other branch.
ErrBranchNotExist represents a "BranchNotExist" kind of error.
ErrCircularDependency represents a "DependencyCircular" kind of error.
ErrCommentNotExist represents a "CommentNotExist" kind of error.
ErrDependenciesLeft represents an error where the issue you're trying to close still has dependencies left.
ErrDependencyExists represents a "DependencyAlreadyExists" kind of error.
ErrDependencyNotExists represents a "DependencyAlreadyExists" kind of error.
ErrDeployKeyAlreadyExist represents a "DeployKeyAlreadyExist" kind of error.
ErrDeployKeyNameAlreadyUsed represents a "DeployKeyNameAlreadyUsed" kind of error.
ErrDeployKeyNotExist represents a "DeployKeyNotExist" kind of error.
ErrEmailAlreadyUsed represents a "EmailAlreadyUsed" kind of error.
ErrExternalLoginUserAlreadyExist represents a "ExternalLoginUserAlreadyExist" kind of error.
ErrExternalLoginUserNotExist represents a "ExternalLoginUserNotExist" kind of error.
ErrGPGKeyAccessDenied represents a "GPGKeyAccessDenied" kind of Error.
ErrGPGKeyIDAlreadyUsed represents a "GPGKeyIDAlreadyUsed" kind of error.
ErrGPGKeyNotExist represents a "GPGKeyNotExist" kind of error.
ErrGPGKeyParsing represents a "ErrGPGKeyParsing" kind of error.
ErrGPGNoEmailFound represents a "ErrGPGNoEmailFound" kind of error.
ErrInvalidCloneAddr represents a "InvalidCloneAddr" kind of error.
ErrInvalidMergeStyle represents an error if merging with disabled merge strategy.
ErrInvalidTagName represents a "InvalidTagName" kind of error.
ErrIssueNotExist represents a "IssueNotExist" kind of error.
ErrKeyAccessDenied represents a "KeyAccessDenied" kind of error.
ErrKeyAlreadyExist represents a "KeyAlreadyExist" kind of error.
ErrKeyNameAlreadyUsed represents a "KeyNameAlreadyUsed" kind of error.
ErrKeyNotExist represents a "KeyNotExist" kind of error.
ErrKeyUnableVerify represents a "KeyUnableVerify" kind of error.
ErrLabelNotExist represents a "LabelNotExist" kind of error.
ErrLastOrgOwner represents a "LastOrgOwner" kind of error.
ErrLFSLockAlreadyExist represents a "LFSLockAlreadyExist" kind of error.
ErrLFSLockNotExist represents a "LFSLockNotExist" kind of error.
ErrLFSUnauthorizedAction represents a "LFSUnauthorizedAction" kind of error.
ErrLoginSourceAlreadyExist represents a "LoginSourceAlreadyExist" kind of error.
ErrLoginSourceInUse represents a "LoginSourceInUse" kind of error.
ErrLoginSourceNotExist represents a "LoginSourceNotExist" kind of error.
ErrMilestoneNotExist represents a "MilestoneNotExist" kind of error.
ErrNamePatternNotAllowed represents a "pattern not allowed" error.
ErrNameReserved represents a "reserved name" error.
ErrNotAllowedToMerge represents an error that a branch is protected and the current user is not allowed to modify it.
ErrOpenIDAlreadyUsed represents a "OpenIDAlreadyUsed" kind of error.
ErrOpenIDConnectInitialize represents a "OpenIDConnectInitialize" kind of error.
ErrOrgNotExist represents a "OrgNotExist" kind of error.
ErrPullRequestAlreadyExists represents a "PullRequestAlreadyExists"-error.
ErrPullRequestNotExist represents a "PullRequestNotExist" kind of error.
ErrReachLimitOfRepo represents a "ReachLimitOfRepo" kind of error.
ErrReleaseAlreadyExist represents a "ReleaseAlreadyExist" kind of error.
ErrReleaseNotExist represents a "ReleaseNotExist" kind of error.
ErrRepoAlreadyExist represents a "RepoAlreadyExist" kind of error.
ErrRepoFileAlreadyExist represents a "RepoFileAlreadyExist" kind of error.
ErrRepoNotExist represents a "RepoNotExist" kind of error.
ErrRepoRedirectNotExist represents a "RepoRedirectNotExist" kind of error.
ErrReviewNotExist represents a "ReviewNotExist" kind of error.
ErrSSHDisabled represents an "SSH disabled" error.
ErrStopwatchNotExist represents a "Stopwatch Not Exist" kind of error.
ErrTagAlreadyExists represents an error that tag with such name already exists.
ErrTeamAlreadyExist represents a "TeamAlreadyExist" kind of error.
ErrTopicNotExist represents an error that a topic is not exist.
ErrTrackedTimeNotExist represents a "TrackedTime Not Exist" kind of error.
ErrTwoFactorNotEnrolled indicates that a user is not enrolled in two-factor authentication.
ErrU2FRegistrationNotExist represents a "ErrU2FRegistrationNotExist" kind of error.
ErrUnknownDependencyType represents an error where an unknown dependency type was passed.
ErrUpdateTaskNotExist represents a "UpdateTaskNotExist" kind of error.
ErrUploadNotExist represents a "UploadNotExist" kind of error.
ErrUserAlreadyExist represents a "user already exists" error.
ErrUserDoesNotHaveAccessToRepo represets an error where the user doesn't has access to a given repo.
ErrUserHasOrgs represents a "UserHasOrgs" kind of error.
ErrUserNotAllowedCreateOrg represents a "UserNotAllowedCreateOrg" kind of error.
ErrUserNotExist represents a "UserNotExist" kind of error.
ErrUserOwnRepos represents a "UserOwnRepos" kind of error.
ErrWebhookNotExist represents a "WebhookNotExist" kind of error.
ErrWikiAlreadyExist represents a "WikiAlreadyExist" kind of error.
ErrWikiInvalidFileName represents an invalid wiki file name.
ErrWikiReservedName represents a reserved name error.
ExternalLoginUser makes the connecting between some existing user and additional external login sources.
ExternalTrackerConfig describes external tracker config.
ExternalWikiConfig describes external wiki config.
FindCommentsOptions describes the conditions to Find comments.
FindReactionsOptions describes the conditions to Find reactions.
FindReleasesOptions describes the conditions to Find releases.
FindReviewOptions represent possible filters to find reviews.
FindTopicOptions represents the options when fdin topics.
FindTrackedTimesOptions represent the filters for tracked times.
Follow represents relations of user and his/her followers.
GetFeedsOptions options for retrieving feeds.
GPGKey represents a GPG key.
GraphItem represent one commit, or one relation in timeline.
HookEvent represents events that will delivery hook.
HookEvents is a set of web hook events.
HookRequest represents hook task request information.
HookResponse represents hook task response information.
HookTask represents a hook task.
Issue represents an issue or pull request of repository.
IssueAssignees saves all issue assignees.
IssueDependency represents an issue dependency.
IssueLabel represents an issue-label relation.
IssuesConfig describes issues config.
IssuesOptions represents options of an issue.
IssueStats represents issue statistic information.
IssueStatsOptions contains parameters accepted by GetIssueStats.
IssueUser represents an issue-user relation.
IssueWatch is connection request for receiving issue notification.
Label represents a label of repository for issues.
LDAPConfig holds configuration for LDAP login source.
LFSLock represents a git lfs lock of repository.
LFSMetaObject stores metadata for LFS tracked files.
LFSTokenResponse defines the JSON structure in which the JWT token is stored.
LoginSource represents an external way for authorizing users.
MigrateRepoOptions contains the repository migrate options.
Milestone represents a milestone of repository.
Mirror represents mirror information of a repository.
MirrorSyncPushActionOptions mirror synchronization action options.
NewCommitStatusOptions holds options for creating a CommitStatus.
NewIssueOptions represents the options of a new issue.
Notice represents a system notice for admin.
Notification represents a notification.
OAuth2Config holds configuration for the OAuth2 login source.
OAuth2Provider describes the display values of a single OAuth2 provider.
OrgUser represents an organization-user relation.
PAMConfig holds configuration for the PAM login source.
ProtectedBranch struct.
PublicKey represents a user or deploy SSH public key.
PullRequest represents relation between pull request and repositories.
PullRequestsConfig describes pull requests config.
PullRequestsOptions holds the options for PRs.
PushCommit represents a commit in a push operation.
PushCommits represents list of commits in a push operation.
PushUpdateOptions defines the push update options.
Reaction represents a reactions on issues and comments.
ReactionOptions defines options for creating or deleting reactions.
Release represents a release of repository.
RepoIndexerStatus status of a repo's entry in the repo indexer For now, implicitly refers to default branch.
RepoRedirect represents that a repo name should be redirected to another.
Repository represents a git repository.
RepoTopic represents associated repositories and topics.
RepoUnit describes all units of a repository.
Review represents collection of code comments giving feedback for a PR.
SearchRepoOptions holds the search options.
SearchUserOptions contains the options for searching.
SignCommit represents a commit with validation of signature.
SignCommitWithStatuses represents a commit with validation of signature and status state.
SlackAttachment contains the slack message.
SlackMeta contains the slack metadata.
SlackPayload contains the information about the slack channel.
SMTPConfig holds configuration for the SMTP login source.
Star represents a starred repo by an user.
Statistic contains the database statistics.
Stopwatch represents a stopwatch for time tracking.
Team represents a organization team.
TeamRepo represents an team-repository relation.
TeamUnit describes all units of a repository.
TeamUser represents an team-user relation.
Topic represents a topic of repositories.
TrackedTime represents a time that was spent for a specific issue.
TwoFactor represents a two-factor authentication token.
U2FRegistration represents the registration data and counter of a security key.
Unit is a section of one repository.
UnitConfig describes common unit config.
UpdateRepoFileOptions holds the repository file update options.
Upload represent a uploaded file to a repo to be deleted when moved.
UploadRepoFileOptions contains the uploaded repository file options.
User represents the object of individual and member of organization.
UserCommit represents a commit with validation of user.
UserIssueStatsOptions contains parameters accepted by GetUserIssueStats.
UserOpenID is the list of all OpenID identities of a user.
Watch is connection request for receiving repository notification.
Webhook represents a web hook object.
# Interfaces
AccessibleReposEnvironment operations involving the repositories that are accessible to a particular user.
Engine represents a xorm engine or session.
# Type aliases
AccessMode specifies the users access mode.
ActionList defines a list of actions.
ActionType represents the type of an action.
CodeComments represents comments on code by using this structure: FILENAME -> LINE (+ == proposed; - == previous) -> COMMENTS.
CommentTag defines comment tag type.
CommentType defines whether a comment is just a simple comment, an action (like close) or a reference.
CommitStatusState holds the state of a Status It can be "pending", "success", "error", "failure", and "warning".
DependencyType Defines Dependency Type Constants.
DiffFileType represents the type of a DiffFile.
DiffLineType represents the type of a DiffLine.
No description provided by the author
GraphItems is a list of commits from all branches.
HookContentType is the content type of a web hook.
HookEventType is the type of an hook event.
HookStatus is the status of a web hook.
HookTaskType is the type of an hook task.
IssueList defines a list of issues.
KeyType specifies the key type.
LoginType represents an login type.
MergeStyle represents the approach to merge commits into base branch.
MilestoneList is a list of milestones offering additional functionality.
MirrorRepositoryList contains the mirror repositories.
NoticeType describes the notice type.
No description provided by the author
No description provided by the author
PullRequestList defines a list of pull requests.
PullRequestStatus defines pull request status.
PullRequestType defines pull request type.
RawDiffType type of a raw diff.
ReactionList represents list of reactions.
RepositoryList contains a list of repositories.
ReviewType defines the sort of feedback a review gives.
SearchOrderBy is used to sort the result.
U2FRegistrationList is a list of *U2FRegistration.
UnitType is Unit's Type.
UserType defines the user type.