# Functions
Action response for actions to a repository.
Activity render the page to show repository latest changes.
AddDependency adds new dependencies.
AddTimeManually tracks time manually.
Branches render repository branch page.
CancelStopwatch cancel the stopwatch.
ChangeCollaborationAccessMode response for changing access of a collaboration.
ChangeCommentReaction create a reaction for comment.
ChangeIssueReaction create a reaction for issue.
ChangeMilestonStatus response for change a milestone's status.
CleanUpPullRequest responses for delete merged branch when PR has been merged.
Collaboration render a repository's collaboration page.
CollaborationPost response for actions for a collaboration of a repository.
Commits render branch's commits.
CompareAndPullRequest render pull request preview page.
CompareAndPullRequestPost response for creating pull request.
CompareDiff show different from one commit to another commit.
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.
DeleteBranchPost responses for delete merged branch.
DeleteCollaboration delete a collaboration for a repository.
DeleteComment delete comment of issue.
DeleteDeployKey response for deleting a deploy key.
DeleteFile render delete file page.
DeleteFilePost response for deleting file.
DeleteLabel delete a label.
DeleteMilestone delete a milestone.
DeleteRelease delete a release.
DeleteWebhook delete a webhook.
DeleteWikiPagePost delete wiki page.
DeployKeys render the deploy keys list of a repository page.
DeployKeysPost response for adding a deploy key of a repository.
Diff show different from current commit to previous commit.
DiffPreviewPost render preview diff page.
DingtalkHooksEditPost response for editing discord hook.
DingtalkHooksNewPost response for creating dingtalk hook.
DiscordHooksEditPost response for editing discord hook.
DiscordHooksNewPost response for creating discord hook.
Download download an archive of a repository.
DownloadPullDiff render a pull's raw diff.
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.
EditRelease render release edit page.
EditReleasePost response for edit release.
EditWiki render wiki modify page.
EditWikiPost response for wiki modify request.
FileHistory show a file's reversions.
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.
GitHooks hooks of a repository.
GitHooksEdit render for editing a hook of repository page.
GitHooksEditPost response for editing a git hook of a repository.
GogsHooksEditPost response for editing gogs hook.
GogsHooksNewPost response for creating webhook.
Graph render commit graph - show commits from all branches.
Home render repository home page.
HTTP implmentation git smart HTTP protocol.
HTTPBackend middleware for git smart HTTP protocol.
InitializeLabels init labels for a repository.
Issues render issues page.
IssueStopwatch creates or stops a stopwatch for the given issue.
IssueWatch sets issue watching.
Labels render issue's labels page.
MergePullRequest response for merging pull request.
Migrate render migration of repository page.
MigratePost response for migrating from external git repository.
Milestones render milestones page.
MustAllowPulls check if repository enable pull requests.
MustBeAbleToUpload check that repo can be uploaded to.
MustBeEditable check that repo can be edited.
MustBeNotBare render when a repo is a bare git dir.
MustEnableIssues check if repository enable internal issues.
MustEnableWiki check if wiki is enabled, if external then redirect.
NewComment create a comment for issue.
NewFile render create file page.
NewFilePost response for creating file.
NewIssue render createing issue page.
NewIssuePost response for creating new issue.
NewLabel create new label for repository.
NewMilestone render creating milestone page.
NewMilestonePost response for creating milestone.
NewRelease render creating release page.
NewReleasePost response for creating a release.
NewWiki render wiki create page.
NewWikiPost response for wiki create request.
ParseCompareInfo parse compare info between two commit for preparing pull request.
ParseHookEvent convert web form content to models.HookEvent.
PrepareCompareDiff render pull request preview diff page.
PrepareMergedViewPullInfo show meta information for a merged pull request view page.
PrepareViewPullInfo show meta information for a pull request preview page.
ProtectedBranch render the page to protect the repository.
ProtectedBranchPost response for protect for a branch of a repository.
RawDiff dumps diff results of repository in given commit ID to io.Writer.
RefCommits render commits page.
Releases render releases list page.
RemoveDependency removes the dependency.
RemoveUploadFileFromServer remove file from server file dir.
RenderUserCards render a page show users according the input templaet.
RestoreBranchPost responses for delete merged branch.
RetrieveLabels find all the labels of a repository.
RetrieveRepoMetas find all the meta information of a repository.
RetrieveRepoMilestonesAndAssignees find all the milestones and assignees of a repository.
Search render repository search page.
SearchCommits render commits filtered by keyword.
ServeBlob download a git.Blob.
ServeData download file from io.Reader.
SetDiffViewStyle set diff style as render variable.
SetEditorconfigIfExists set editor config as render variable.
Settings show a repository's settings page.
SettingsPost response for changes of a repository.
SettingsProtectedBranch renders the protected branch setting page.
SettingsProtectedBranchPost updates the protected branch settings.
SetWhitespaceBehavior set whitespace behavior as render variable.
SingleDownload download a file by repos path.
SlackHooksEditPost response for editing slack hook.
SlackHooksNewPost response for creating slack hook.
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.
TestWebhook test if web hook is work fine.
TopicsPost response for creating repository.
TriggerTask response for a trigger task request.
UpdateCommentContent change comment of issue's content.
UpdateIssueAssignee change issue's assignee.
UpdateIssueContent change issue's content.
UpdateIssueLabel change issue's labels.
UpdateIssueMilestone change issue's milestone.
UpdateIssueStatus change issue's status.
UpdateIssueTitle change issue's title.
UpdateLabel update a label's name and color.
UploadAttachment response for uploading issue's attachment.
UploadFile render upload file page.
UploadFilePost response for uploading file.
UploadFileToServer upload file to server file dir not git.
ValidateRepoMetas check and returns repository's meta informations.
ViewIssue render issue view page.
ViewPullCommits show commits for a pull request.
ViewPullFiles render pull request changed files list page.
Watchers render repository's watch users.
Webhooks render web hooks list page.
WebHooksEdit render editing web hook page.
WebHooksEditPost response for editing web hook.
WebhooksNew render creating webhook page.
WebHooksNewPost response for creating webhook.
Wiki renders single wiki page.
WikiPages render wiki pages list page.
WikiRaw outputs raw blob requested by user (image for example).
# Variables
ErrFileTypeForbidden not allowed file type error.
ErrTooManyFiles upload too many files.
IssueTemplateCandidates issue templates.