package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Packages

# Functions

Action response for actions to a repository.
Activity render the page to show repository latest changes.
ActivityAuthors renders JSON with top commit authors for given time period over all branches.
AddColumnToProjectPost allows a new column to be added to a project.
AddDependency adds new dependencies.
AddTimeManually tracks time manually.
Branches render repository branch page.
CancelAutoMergePullRequest cancels a scheduled pr.
CancelStopwatch cancel the stopwatch.
ChangeCommentReaction create a reaction for comment.
ChangeIssueReaction create a reaction for issue.
ChangeMilestoneStatus response for change a milestone's status.
ChangeProjectStatus updates the status of a project between "open" and "close".
CherryPick handles cherrypick GETs.
CherryPickPost handles cherrypick POSTs.
CleanUpPullRequest responses for delete merged branch when PR has been merged.
CodeFrequency renders the page to show repository code frequency.
CodeFrequencyData returns JSON of code frequency data.
Commits render branch's commits.
CompareAndPullRequestPost response for creating pull request.
CompareDiff show different from one commit to another commit.
Contributors render the page to show repository contributors graph.
ContributorsData renders JSON of contributors along with their weekly commit statistics.
Create render creating repository page.
CreateBranch creates new branch in repository.
CreateCodeComment will create a code comment including an pending review if required.
CreatePost response for creating repository.
DeleteAttachment response for deleting issue's attachment.
DeleteBranchPost responses for delete merged branch.
DeleteComment delete comment of issue.
DeleteFile render delete file page.
DeleteFilePost response for deleting file.
DeleteIssue deletes an issue.
DeleteLabel delete a label.
DeleteMilestone delete a milestone.
DeleteProject delete a project.
DeleteProjectColumn allows for the deletion of a project column.
DeleteRelease deletes a release.
DeleteTag deletes a tag.
DeleteTime deletes tracked time.
DeleteWikiPagePost delete wiki page.
Diff show different from current commit to previous commit.
DiffPreviewPost render preview diff page.
DismissReview dismissing stale review by repo admin.
Download an archive of a repository.
DownloadByID download a file by sha1 ID.
DownloadByIDOrLFS download a file by sha1 ID taking account of LFS.
DownloadPullDiff render a pull's raw diff.
DownloadPullDiffOrPatch render a pull's raw diff or patch.
DownloadPullPatch render a pull's raw patch.
EditFile render edit file page.
EditFilePost response for editing file.
EditMilestone render edting milestone page.
EditMilestonePost response for edting milestone.
EditProjectColumn allows a project column's to be updated.
EditProjectPost response for editing a project.
EditRelease render release edit page.
EditReleasePost response for edit release.
EditWiki render wiki modify page.
EditWikiPost response for wiki modify request.
ExcerptBlob render blob excerpt contents.
FileHistory show a file's reversions.
FindFiles render the page to find repository files.
Fork render repository fork page.
ForkPost response for forking a repository.
Forks render repository's forked users.
GetActionIssue will return the issue which is used in the context.
GetActiveStopwatch is the middleware that sets .ActiveStopwatch on context.
GetAttachment serve attachments.
GetBranchesList get branches for current repo'.
GetClosestParentWithFiles Recursively gets the path of parent in a tree that has files (used when file in a tree is deleted).
GetCommentAttachments returns attachments for the comment.
GetContentHistoryDetail get detail.
GetContentHistoryList get list.
GetContentHistoryOverview get overview.
GetEditorConfig returns a editorconfig JSON string for given treePath or "null".
GetIdxFile implements Git dumb HTTP.
GetInfoPacks implements Git dumb HTTP.
GetInfoRefs implements Git dumb HTTP.
GetIssueAttachments returns attachments for the issue.
GetIssueInfo get an issue of a repository.
GetLooseObject implements Git dumb HTTP.
GetPackFile implements Git dumb HTTP.
GetPullCommits get all commits for given pull request.
GetPullDiffStats get Pull Requests diff stats.
GetTagList get tag list for current repo.
GetTextFile implements Git dumb HTTP.
GetUniquePatchBranchName Gets a unique branch name for a new patch branch It will be in the form of <username>-patch-<num> where <num> is the first branch of this format that doesn't already exist.
Graph render commit graph - show commits from all branches.
Home render repository home page.
InitializeLabels init labels for a repository.
InitiateDownload will enqueue an archival request, as needed.
IssuePinMove moves a pinned Issue.
IssuePinOrUnpin pin or unpin a Issue.
IssuePosters get posters for current repo's issues/pull requests.
Issues render issues page.
IssueStopwatch creates or stops a stopwatch for the given issue.
IssueSuggestions returns a list of issue suggestions.
IssueUnpin unpins a Issue.
IssueWatch sets issue watching.
Labels render issue's labels page.
LastCommit returns lastCommit data for the provided branch/tag/commit and directory (in url) and filenames in body.
LatestRelease redirects to the latest release.
LockIssue locks an issue.
MergePullRequest response for merging pull request.
Migrate render migration of repository page.
MigratePost response for migrating from external git repository.
MigrateStatus returns migrate task's status.
MilestoneIssuesAndPulls lists all the issues and pull requests of the milestone.
Milestones render milestones page.
MoveIssues moves or keeps issues in a column and sorts them inside that column.
MustAllowPulls check if repository enable pull requests and user have right to do that.
MustAllowUserComment checks to make sure if an issue is locked.
MustBeAbleToUpload check that repo can be uploaded to.
MustBeEditable check that repo can be edited.
MustBeNotEmpty render when a repo is a empty git dir.
MustEnableIssues check if repository enable internal issues.
MustEnableRepoProjects check if repo projects are enabled in settings.
MustEnableWiki check if wiki is enabled, if external then redirect.
NewComment create a comment for issue.
NewDiffPatch render create patch page.
NewDiffPatchPost response for sending patch page.
NewFile render create file page.
NewFilePost response for creating file.
NewIssue render creating issue page.
NewIssueChooseTemplate render creating issue from template page.
NewIssuePost response for creating new issue.
NewLabel create new label for repository.
NewMilestone render creating milestone page.
NewMilestonePost response for creating milestone.
NewProjectPost creates a new project.
NewRelease render creating or edit release page.
NewReleasePost response for creating a release.
NewWiki render wiki create page.
NewWikiPost response for wiki create request.
Packages displays a list of all packages in the repository.
ParseCompareInfo parse compare info between two commit for preparing comparing references.
PrepareCompareDiff renders compare diff page.
Projects renders the home page of projects.
RawCommitURL creates a relative URL for the raw commit in the given repository.
RawDiff dumps diff results of repository in given commit ID to io.Writer.
RecentCommits renders the page to show recent commit frequency on repository.
RecentCommitsData returns JSON of recent commits data.
RedirectDownload return a file based on the following infos:.
RefBlame render blame page.
RefCommits render commits page.
Releases render releases list page.
ReleasesFeedAtom get feeds for releases in Atom format.
ReleasesFeedRSS get feeds for releases in RSS format.
RemoveDependency removes the dependency.
RemoveUploadFileFromServer remove file from server file dir.
RenderEditProject allows a project to be edited.
RenderFile renders a file by repos path.
RenderNewCodeCommentForm will render the form for creating a new review comment.
RenderNewProject render creating a project page.
RenderUserCards render a page show users according the input template.
RestoreBranchPost responses for delete merged branch.
RetrieveLabelsForList find all the labels of a repository and organization, it is only used by "/labels" page to list all labels.
Search render repository search page.
SearchCommits render commits filtered by keyword.
SearchIssues searches for issues across the repositories that the user has access to.
SearchRepo repositories via options.
SearchRepoIssuesJSON lists the issues of a repository This function was copied from API (decouple the web and API routes), it is only used by frontend to search some dependency or related issues.
GetAttachment serve attachments with the given UUID.
ServeBlobOrLFS download a git.Blob redirecting to LFS if necessary.
ServiceReceivePack implements Git Smart HTTP protocol.
ServiceUploadPack implements Git Smart HTTP protocol.
SetAllowEdits allow edits from maintainers to PRs.
SetDefaultProjectColumn set default column for uncategorized issues/pulls.
SetDiffViewStyle set diff style as render variable.
SetEditorconfigIfExists set editor config as render variable.
SetShowOutdatedComments set the show outdated comments option as context variable.
SetWhitespaceBehavior set whitespace behavior as render variable.
SingleDownload download a file by repos path.
SingleDownloadOrLFS download a file by repos path redirecting to LFS if necessary.
SingleRelease renders a single release's page.
SoftDeleteContentHistory soft delete.
SourceCommitURL creates a relative URL for a commit in the given repository.
Stars render repository's starred users.
SubmitReview creates a review out of the existing pending review or creates a new one if no pending review exist.
TagsList render tags list page.
TagsListFeedAtom get feeds for tags in RSS format.
TagsListFeedRSS get feeds for tags in RSS format.
TopicsPost response for creating repository.
TreeList get all files' entries of a repository.
UnlockIssue unlocks a previously locked issue.
UpdateCommentContent change comment of issue's content.
UpdateIssueAssignee change issue's or pull's assignee.
UpdateIssueContent change issue's content.
UpdateIssueDeadline updates an issue deadline.
UpdateIssueLabel change issue's labels.
UpdateIssueMilestone change issue's milestone.
UpdateIssueProject change an issue's project.
UpdateIssueRef change issue's ref (branch).
UpdateIssueStatus change issue's status.
UpdateIssueTitle change issue's title.
UpdateLabel update a label's name and color.
UpdatePullRequest merge PR's baseBranch into headBranch.
UpdatePullRequestTarget change pull request's target branch.
UpdatePullReviewRequest add or remove review request.
UpdateResolveConversation add or remove an Conversation resolved mark.
UploadFile render upload file page.
UploadFilePost response for uploading file.
UploadFileToServer upload file to server file dir not git.
UploadIssueAttachment response for Issue/PR attachments.
UploadReleaseAttachment response for uploading release attachments.
ValidateRepoMetasForNewIssue check and returns repository's meta information.
ViewIssue render issue view page.
ViewProject renders the project with board view.
ViewPullCommits show commits for a pull request.
Watchers render repository's watch users.
Wiki renders single wiki page.
WikiPages render wiki pages list page.
WikiPost renders post of wiki page.
WikiRaw outputs raw blob requested by user (image for example).
WikiRevision renders file revision list of wiki page.

# Variables

IssueTemplateCandidates issue templates.

# Structs

PageMeta wiki page meta information.
StopwatchTmplInfo is a view on a stopwatch specifically for template rendering.