repo

package
v1.20.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 67 Imported by: 192

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptTransfer added in v1.16.0

func AcceptTransfer(ctx *context.APIContext)

AcceptTransfer accept a repo transfer

func AddCollaborator

func AddCollaborator(ctx *context.APIContext)

AddCollaborator add a collaborator to a repository

func AddIssueLabels

func AddIssueLabels(ctx *context.APIContext)

AddIssueLabels add labels for an issue

func AddIssueSubscription added in v1.11.0

func AddIssueSubscription(ctx *context.APIContext)

AddIssueSubscription Subscribe user to issue

func AddPushMirror added in v1.17.4

func AddPushMirror(ctx *context.APIContext)

AddPushMirror adds a push mirror to a repository

func AddTeam added in v1.14.0

func AddTeam(ctx *context.APIContext)

AddTeam add a team to a repository

func AddTime added in v1.3.0

func AddTime(ctx *context.APIContext)

AddTime add time manual to the given issue

func AddTopic added in v1.10.0

func AddTopic(ctx *context.APIContext)

AddTopic adds a topic name to a repo

func ApplyDiffPatch added in v1.17.0

func ApplyDiffPatch(ctx *context.APIContext)

ApplyDiffPatch handles API call for applying a patch

func AreNewIssuePinsAllowed added in v1.20.0

func AreNewIssuePinsAllowed(ctx *context.APIContext)

AreNewIssuePinsAllowed returns if new issues pins are allowed

func CancelScheduledAutoMerge added in v1.17.0

func CancelScheduledAutoMerge(ctx *context.APIContext)

MergePullRequest cancel an auto merge scheduled for a given PullRequest by index

func ChangeFiles added in v1.20.0

func ChangeFiles(ctx *context.APIContext)

ChangeFiles handles API call for modifying multiple files

func CheckIssueSubscription added in v1.12.0

func CheckIssueSubscription(ctx *context.APIContext)

CheckIssueSubscription check if user is subscribed to an issue

func ClearIssueLabels

func ClearIssueLabels(ctx *context.APIContext)

ClearIssueLabels delete all the labels for an issue

func Create

func Create(ctx *context.APIContext)

Create one repository of mine

func CreateBranch added in v1.13.0

func CreateBranch(ctx *context.APIContext)

CreateBranch creates a branch for a user's repository

func CreateBranchProtection added in v1.12.0

func CreateBranchProtection(ctx *context.APIContext)

CreateBranchProtection creates a branch protection for a repo

func CreateDeployKey

func CreateDeployKey(ctx *context.APIContext)

CreateDeployKey create deploy key for a repository

func CreateFile added in v1.9.0

func CreateFile(ctx *context.APIContext)

CreateFile handles API call for creating a file

func CreateFork added in v1.1.0

func CreateFork(ctx *context.APIContext)

CreateFork create a fork of a repo

func CreateHook

func CreateHook(ctx *context.APIContext)

CreateHook create a hook for a repository

func CreateIssue

func CreateIssue(ctx *context.APIContext)

CreateIssue create an issue of a repository

func CreateIssueAttachment added in v1.17.4

func CreateIssueAttachment(ctx *context.APIContext)

CreateIssueAttachment creates an attachment and saves the given file

func CreateIssueBlocking added in v1.20.0

func CreateIssueBlocking(ctx *context.APIContext)

CreateIssueBlocking block the issue given in the body by the issue in path

func CreateIssueComment

func CreateIssueComment(ctx *context.APIContext)

CreateIssueComment create a comment for an issue

func CreateIssueCommentAttachment added in v1.17.4

func CreateIssueCommentAttachment(ctx *context.APIContext)

CreateIssueCommentAttachment creates an attachment and saves the given file

func CreateIssueDependency added in v1.20.0

func CreateIssueDependency(ctx *context.APIContext)

CreateIssueDependency create a new issue dependencies

func CreateLabel

func CreateLabel(ctx *context.APIContext)

CreateLabel create a label for a repository

func CreateMilestone

func CreateMilestone(ctx *context.APIContext)

CreateMilestone create a milestone for a repository

func CreateOrgRepo

func CreateOrgRepo(ctx *context.APIContext)

CreateOrgRepo create one repository of the organization

func CreateOrgRepoDeprecated added in v1.12.0

func CreateOrgRepoDeprecated(ctx *context.APIContext)

CreateOrgRepoDeprecated create one repository of the organization

func CreatePullRequest added in v1.0.0

func CreatePullRequest(ctx *context.APIContext)

CreatePullRequest does what it says

func CreatePullReview added in v1.12.0

func CreatePullReview(ctx *context.APIContext)

CreatePullReview create a review to a pull request

func CreatePushMirror added in v1.17.4

func CreatePushMirror(ctx *context.APIContext, mirrorOption *api.CreatePushMirrorOption)

func CreateRelease added in v1.1.0

func CreateRelease(ctx *context.APIContext)

CreateRelease create a release

func CreateReleaseAttachment added in v1.5.0

func CreateReleaseAttachment(ctx *context.APIContext)

CreateReleaseAttachment creates an attachment and saves the given file

func CreateReviewRequests added in v1.14.0

func CreateReviewRequests(ctx *context.APIContext)

CreateReviewRequests create review requests to an pull request

func CreateTag added in v1.15.0

func CreateTag(ctx *context.APIContext)

CreateTag create a new git tag in a repository

func CreateUserRepo

func CreateUserRepo(ctx *context.APIContext, owner *user_model.User, opt api.CreateRepoOption)

CreateUserRepo create a repository for a user

func DelIssueSubscription added in v1.11.0

func DelIssueSubscription(ctx *context.APIContext)

DelIssueSubscription Unsubscribe user from issue

func Delete

func Delete(ctx *context.APIContext)

Delete one repository

func DeleteBranch added in v1.12.0

func DeleteBranch(ctx *context.APIContext)

DeleteBranch get a branch of a repository

func DeleteBranchProtection added in v1.12.0

func DeleteBranchProtection(ctx *context.APIContext)

DeleteBranchProtection deletes a branch protection for a repo

func DeleteCollaborator added in v1.1.0

func DeleteCollaborator(ctx *context.APIContext)

DeleteCollaborator delete a collaborator from a repository

func DeleteDeploykey

func DeleteDeploykey(ctx *context.APIContext)

DeleteDeploykey delete deploy key for a repository

func DeleteFile added in v1.9.0

func DeleteFile(ctx *context.APIContext)

DeleteFile Delete a file in a repository

func DeleteGitHook added in v1.9.0

func DeleteGitHook(ctx *context.APIContext)

DeleteGitHook delete a Git hook of a repository

func DeleteHook

func DeleteHook(ctx *context.APIContext)

DeleteHook delete a hook of a repository

func DeleteIssue added in v1.17.0

func DeleteIssue(ctx *context.APIContext)

func DeleteIssueAttachment added in v1.17.4

func DeleteIssueAttachment(ctx *context.APIContext)

DeleteIssueAttachment delete a given attachment

func DeleteIssueComment added in v1.0.0

func DeleteIssueComment(ctx *context.APIContext)

DeleteIssueComment delete a comment from an issue

func DeleteIssueCommentAttachment added in v1.17.4

func DeleteIssueCommentAttachment(ctx *context.APIContext)

DeleteIssueCommentAttachment delete a given attachment

func DeleteIssueCommentDeprecated added in v1.4.0

func DeleteIssueCommentDeprecated(ctx *context.APIContext)

DeleteIssueCommentDeprecated delete a comment from an issue

func DeleteIssueCommentReaction added in v1.11.0

func DeleteIssueCommentReaction(ctx *context.APIContext)

DeleteIssueCommentReaction remove a reaction from a comment of an issue

func DeleteIssueLabel

func DeleteIssueLabel(ctx *context.APIContext)

DeleteIssueLabel delete a label for an issue

func DeleteIssueReaction added in v1.11.0

func DeleteIssueReaction(ctx *context.APIContext)

DeleteIssueReaction remove a reaction from an issue

func DeleteIssueStopwatch added in v1.11.0

func DeleteIssueStopwatch(ctx *context.APIContext)

DeleteIssueStopwatch delete a specific stopwatch

func DeleteLabel

func DeleteLabel(ctx *context.APIContext)

DeleteLabel delete a label for a repository

func DeleteMilestone

func DeleteMilestone(ctx *context.APIContext)

DeleteMilestone delete a milestone for a repository by ID and if not available by name

func DeletePullReview added in v1.12.0

func DeletePullReview(ctx *context.APIContext)

DeletePullReview delete a specific review from a pull request

func DeletePushMirrorByRemoteName added in v1.17.4

func DeletePushMirrorByRemoteName(ctx *context.APIContext)

DeletePushMirrorByRemoteName deletes a push mirror from a repository by remoteName

func DeleteRelease added in v1.1.0

func DeleteRelease(ctx *context.APIContext)

DeleteRelease delete a release from a repository

func DeleteReleaseAttachment added in v1.5.0

func DeleteReleaseAttachment(ctx *context.APIContext)

DeleteReleaseAttachment delete a given attachment

func DeleteReleaseByTag added in v1.14.0

func DeleteReleaseByTag(ctx *context.APIContext)

DeleteReleaseByTag delete a release from a repository by tag name

func DeleteReviewRequests added in v1.14.0

func DeleteReviewRequests(ctx *context.APIContext)

DeleteReviewRequests delete review requests to an pull request

func DeleteTag added in v1.14.0

func DeleteTag(ctx *context.APIContext)

DeleteTag delete a specific tag of in a repository by name

func DeleteTeam added in v1.14.0

func DeleteTeam(ctx *context.APIContext)

DeleteTeam delete a team from a repository

func DeleteTime added in v1.11.0

func DeleteTime(ctx *context.APIContext)

DeleteTime delete a specific time by id

func DeleteTopic added in v1.10.0

func DeleteTopic(ctx *context.APIContext)

DeleteTopic removes topic name from repo

func DeleteWikiPage added in v1.16.0

func DeleteWikiPage(ctx *context.APIContext)

DeleteWikiPage delete wiki page

func DismissPullReview added in v1.14.0

func DismissPullReview(ctx *context.APIContext)

DismissPullReview dismiss a review for a pull request

func DownloadCommitDiffOrPatch added in v1.16.0

func DownloadCommitDiffOrPatch(ctx *context.APIContext)

DownloadCommitDiffOrPatch render a commit's raw diff or patch

func DownloadPullDiffOrPatch added in v1.13.0

func DownloadPullDiffOrPatch(ctx *context.APIContext)

DownloadPullDiffOrPatch render a pull's raw diff or patch

func Edit added in v1.9.0

func Edit(ctx *context.APIContext)

Edit edit repository properties

func EditBranchProtection added in v1.12.0

func EditBranchProtection(ctx *context.APIContext)

EditBranchProtection edits a branch protection for a repo

func EditGitHook added in v1.9.0

func EditGitHook(ctx *context.APIContext)

EditGitHook modify a Git hook of a repository

func EditHook

func EditHook(ctx *context.APIContext)

EditHook modify a hook of a repository

func EditIssue

func EditIssue(ctx *context.APIContext)

EditIssue modify an issue of a repository

func EditIssueAttachment added in v1.17.4

func EditIssueAttachment(ctx *context.APIContext)

EditIssueAttachment updates the given attachment

func EditIssueComment

func EditIssueComment(ctx *context.APIContext)

EditIssueComment modify a comment of an issue

func EditIssueCommentAttachment added in v1.17.4

func EditIssueCommentAttachment(ctx *context.APIContext)

EditIssueCommentAttachment updates the given attachment

func EditIssueCommentDeprecated added in v1.4.0

func EditIssueCommentDeprecated(ctx *context.APIContext)

EditIssueCommentDeprecated modify a comment of an issue

func EditLabel

func EditLabel(ctx *context.APIContext)

EditLabel modify a label for a repository

func EditMilestone

func EditMilestone(ctx *context.APIContext)

EditMilestone modify a milestone for a repository by ID and if not available by name

func EditPullRequest added in v1.0.0

func EditPullRequest(ctx *context.APIContext)

EditPullRequest does what it says

func EditRelease added in v1.1.0

func EditRelease(ctx *context.APIContext)

EditRelease edit a release

func EditReleaseAttachment added in v1.5.0

func EditReleaseAttachment(ctx *context.APIContext)

EditReleaseAttachment updates the given attachment

func EditWikiPage added in v1.16.0

func EditWikiPage(ctx *context.APIContext)

EditWikiPage response for wiki modify request

func Generate added in v1.15.0

func Generate(ctx *context.APIContext)

Generate Create a repository using a template

func Get

func Get(ctx *context.APIContext)

Get one repository

func GetAllCommits added in v1.10.0

func GetAllCommits(ctx *context.APIContext)

GetAllCommits get all commits via

func GetAnnotatedTag added in v1.15.0

func GetAnnotatedTag(ctx *context.APIContext)

GetAnnotatedTag get the tag of a repository.

func GetArchive

func GetArchive(ctx *context.APIContext)

GetArchive get archive of a repository

func GetAssignees added in v1.15.0

func GetAssignees(ctx *context.APIContext)

GetAssignees return all users that have write access and can be assigned to issues

func GetBlob added in v1.9.0

func GetBlob(ctx *context.APIContext)

GetBlob get the blob of a repository file.

func GetBranch

func GetBranch(ctx *context.APIContext)

GetBranch get a branch of a repository

func GetBranchProtection added in v1.12.0

func GetBranchProtection(ctx *context.APIContext)

GetBranchProtection gets a branch protection

func GetByID added in v1.0.0

func GetByID(ctx *context.APIContext)

GetByID returns a single Repository

func GetCombinedCommitStatusByRef added in v1.3.0

func GetCombinedCommitStatusByRef(ctx *context.APIContext)

GetCombinedCommitStatusByRef returns the combined status for any given commit hash

func GetCommitStatuses added in v1.2.0

func GetCommitStatuses(ctx *context.APIContext)

GetCommitStatuses returns all statuses for any given commit hash

func GetCommitStatusesByRef added in v1.3.0

func GetCommitStatusesByRef(ctx *context.APIContext)

GetCommitStatusesByRef returns all statuses for any given commit ref

func GetContents added in v1.9.0

func GetContents(ctx *context.APIContext)

GetContents Get the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir

func GetContentsList added in v1.9.0

func GetContentsList(ctx *context.APIContext)

GetContentsList Get the metadata of all the entries of the root dir

func GetDeployKey

func GetDeployKey(ctx *context.APIContext)

GetDeployKey get a deploy key by id

func GetEditorconfig

func GetEditorconfig(ctx *context.APIContext)

GetEditorconfig get editor config of a repository

func GetGitAllRefs added in v1.7.0

func GetGitAllRefs(ctx *context.APIContext)

GetGitAllRefs get ref or an list all the refs of a repository

func GetGitHook added in v1.9.0

func GetGitHook(ctx *context.APIContext)

GetGitHook get a repo's Git hook by id

func GetGitRefs added in v1.7.0

func GetGitRefs(ctx *context.APIContext)

GetGitRefs get ref or an filteresd list of refs of a repository

func GetHook added in v1.1.0

func GetHook(ctx *context.APIContext)

GetHook get a repo's hook by id

func GetIssue

func GetIssue(ctx *context.APIContext)

GetIssue get an issue of a repository

func GetIssueAttachment added in v1.17.4

func GetIssueAttachment(ctx *context.APIContext)

GetIssueAttachment gets a single attachment of the issue

func GetIssueBlocks added in v1.20.0

func GetIssueBlocks(ctx *context.APIContext)

GetIssueBlocks list issues that are blocked by this issue

func GetIssueComment added in v1.12.0

func GetIssueComment(ctx *context.APIContext)

GetIssueComment Get a comment by ID

func GetIssueCommentAttachment added in v1.17.4

func GetIssueCommentAttachment(ctx *context.APIContext)

GetIssueCommentAttachment gets a single attachment of the comment

func GetIssueCommentReactions added in v1.11.0

func GetIssueCommentReactions(ctx *context.APIContext)

GetIssueCommentReactions list reactions of a comment from an issue

func GetIssueConfig added in v1.20.0

func GetIssueConfig(ctx *context.APIContext)

GetIssueConfig returns the issue config for a repo

func GetIssueDependencies added in v1.20.0

func GetIssueDependencies(ctx *context.APIContext)

GetIssueDependencies list an issue's dependencies

func GetIssueReactions added in v1.11.0

func GetIssueReactions(ctx *context.APIContext)

GetIssueReactions list reactions of an issue

func GetIssueSubscribers added in v1.11.0

func GetIssueSubscribers(ctx *context.APIContext)

GetIssueSubscribers return subscribers of an issue

func GetIssueTemplates added in v1.13.0

func GetIssueTemplates(ctx *context.APIContext)

GetIssueTemplates returns the issue templates for a repository

func GetLabel

func GetLabel(ctx *context.APIContext)

GetLabel get label by repository and label id

func GetLanguages added in v1.13.0

func GetLanguages(ctx *context.APIContext)

GetLanguages returns languages and number of bytes of code written

func GetLatestRelease added in v1.19.0

func GetLatestRelease(ctx *context.APIContext)

GetLatestRelease gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at

func GetMilestone

func GetMilestone(ctx *context.APIContext)

GetMilestone get a milestone for a repository by ID and if not available by name

func GetNote added in v1.16.0

func GetNote(ctx *context.APIContext)

GetNote Get a note corresponding to a single commit from a repository

func GetPullRequest added in v1.0.0

func GetPullRequest(ctx *context.APIContext)

GetPullRequest returns a single PR based on index

func GetPullRequestCommits added in v1.15.0

func GetPullRequestCommits(ctx *context.APIContext)

GetPullRequestCommits gets all commits associated with a given PR

func GetPullRequestFiles added in v1.17.4

func GetPullRequestFiles(ctx *context.APIContext)

GetPullRequestFiles gets all changed files associated with a given PR

func GetPullReview added in v1.12.0

func GetPullReview(ctx *context.APIContext)

GetPullReview gets a specific review of a pull request

func GetPullReviewComments added in v1.12.0

func GetPullReviewComments(ctx *context.APIContext)

GetPullReviewComments lists all comments of a pull request review

func GetPushMirrorByName added in v1.17.4

func GetPushMirrorByName(ctx *context.APIContext)

GetPushMirrorByName get push mirror of a repository by name

func GetRawFile

func GetRawFile(ctx *context.APIContext)

GetRawFile get a file by path on a repository

func GetRawFileOrLFS added in v1.17.0

func GetRawFileOrLFS(ctx *context.APIContext)

GetRawFileOrLFS get a file by repo's path, redirecting to LFS if necessary.

func GetRelease added in v1.1.0

func GetRelease(ctx *context.APIContext)

GetRelease get a single release of a repository

func GetReleaseAttachment added in v1.5.0

func GetReleaseAttachment(ctx *context.APIContext)

GetReleaseAttachment gets a single attachment of the release

func GetReleaseByTag added in v1.14.0

func GetReleaseByTag(ctx *context.APIContext)

GetReleaseByTag get a single release of a repository by tag name

func GetRepoPermissions added in v1.17.0

func GetRepoPermissions(ctx *context.APIContext)

GetRepoPermissions gets repository permissions for a user

func GetReviewers added in v1.15.0

func GetReviewers(ctx *context.APIContext)

GetReviewers return all users that can be requested to review in this repo

func GetSingleCommit added in v1.8.0

func GetSingleCommit(ctx *context.APIContext)

GetSingleCommit get a commit via sha

func GetStopwatches added in v1.11.0

func GetStopwatches(ctx *context.APIContext)

GetStopwatches get all stopwatches

func GetTag added in v1.9.0

func GetTag(ctx *context.APIContext)

GetTag get the tag of a repository

func GetTree added in v1.7.0

func GetTree(ctx *context.APIContext)

GetTree get the tree of a repository.

func GetWikiPage added in v1.16.0

func GetWikiPage(ctx *context.APIContext)

GetWikiPage get single wiki page

func HandleAddKeyError

func HandleAddKeyError(ctx *context.APIContext, err error)

HandleAddKeyError handle add key error

func HandleCheckKeyStringError

func HandleCheckKeyStringError(ctx *context.APIContext, err error)

HandleCheckKeyStringError handle check key error

func HandleRemoteAddressError added in v1.17.4

func HandleRemoteAddressError(ctx *context.APIContext, err error)

func IsCollaborator added in v1.1.0

func IsCollaborator(ctx *context.APIContext)

IsCollaborator check if a user is a collaborator of a repository

func IsPullRequestMerged added in v1.0.0

func IsPullRequestMerged(ctx *context.APIContext)

IsPullRequestMerged checks if a PR exists given an index

func IsTeam added in v1.14.0

func IsTeam(ctx *context.APIContext)

IsTeam check if a team is assigned to a repository

func ListBranchProtections added in v1.12.0

func ListBranchProtections(ctx *context.APIContext)

ListBranchProtections list branch protections for a repo

func ListBranches

func ListBranches(ctx *context.APIContext)

ListBranches list all the branches of a repository

func ListCollaborators added in v1.1.0

func ListCollaborators(ctx *context.APIContext)

ListCollaborators list a repository's collaborators

func ListDeployKeys

func ListDeployKeys(ctx *context.APIContext)

ListDeployKeys list all the deploy keys of a repository

func ListForks added in v1.1.0

func ListForks(ctx *context.APIContext)

ListForks list a repository's forks

func ListGitHooks added in v1.9.0

func ListGitHooks(ctx *context.APIContext)

ListGitHooks list all Git hooks of a repository

func ListHooks

func ListHooks(ctx *context.APIContext)

ListHooks list all hooks of a repository

func ListIssueAttachments added in v1.17.4

func ListIssueAttachments(ctx *context.APIContext)

ListIssueAttachments lists all attachments of the issue

func ListIssueCommentAttachments added in v1.17.4

func ListIssueCommentAttachments(ctx *context.APIContext)

ListIssueCommentAttachments lists all attachments of the comment

func ListIssueComments

func ListIssueComments(ctx *context.APIContext)

ListIssueComments list all the comments of an issue

func ListIssueCommentsAndTimeline added in v1.16.0

func ListIssueCommentsAndTimeline(ctx *context.APIContext)

ListIssueCommentsAndTimeline list all the comments and events of an issue

func ListIssueLabels

func ListIssueLabels(ctx *context.APIContext)

ListIssueLabels list all the labels of an issue

func ListIssues

func ListIssues(ctx *context.APIContext)

ListIssues list the issues of a repository

func ListLabels

func ListLabels(ctx *context.APIContext)

ListLabels list all the labels of a repository

func ListMilestones

func ListMilestones(ctx *context.APIContext)

ListMilestones list milestones for a repository

func ListMyTrackedTimes added in v1.3.0

func ListMyTrackedTimes(ctx *context.APIContext)

ListMyTrackedTimes lists all tracked times of the current user

func ListPageRevisions added in v1.16.0

func ListPageRevisions(ctx *context.APIContext)

ListPageRevisions renders file revision list of wiki page

func ListPinnedIssues added in v1.20.0

func ListPinnedIssues(ctx *context.APIContext)

ListPinnedIssues returns a list of all pinned Issues

func ListPinnedPullRequests added in v1.20.0

func ListPinnedPullRequests(ctx *context.APIContext)

ListPinnedPullRequests returns a list of all pinned PRs

func ListPullRequests added in v1.0.0

func ListPullRequests(ctx *context.APIContext)

ListPullRequests returns a list of all PRs

func ListPullReviews added in v1.12.0

func ListPullReviews(ctx *context.APIContext)

ListPullReviews lists all reviews of a pull request

func ListPushMirrors added in v1.17.4

func ListPushMirrors(ctx *context.APIContext)

ListPushMirrors get list of push mirrors of a repository

func ListReleaseAttachments added in v1.5.0

func ListReleaseAttachments(ctx *context.APIContext)

ListReleaseAttachments lists all attachments of the release

func ListReleases added in v1.1.0

func ListReleases(ctx *context.APIContext)

ListReleases list a repository's releases

func ListRepoActivityFeeds added in v1.20.0

func ListRepoActivityFeeds(ctx *context.APIContext)

func ListRepoIssueComments added in v1.0.0

func ListRepoIssueComments(ctx *context.APIContext)

ListRepoIssueComments returns all issue-comments for a repo

func ListStargazers added in v1.1.0

func ListStargazers(ctx *context.APIContext)

ListStargazers list a repository's stargazers

func ListSubscribers added in v1.1.0

func ListSubscribers(ctx *context.APIContext)

ListSubscribers list a repo's subscribers (i.e. watchers)

func ListTags added in v1.8.0

func ListTags(ctx *context.APIContext)

ListTags list all the tags of a repository

func ListTeams added in v1.14.0

func ListTeams(ctx *context.APIContext)

ListTeams list a repository's teams

func ListTopics added in v1.10.0

func ListTopics(ctx *context.APIContext)

ListTopics returns list of current topics for repo

func ListTrackedTimes added in v1.3.0

func ListTrackedTimes(ctx *context.APIContext)

ListTrackedTimes list all the tracked times of an issue

func ListTrackedTimesByRepository added in v1.3.0

func ListTrackedTimesByRepository(ctx *context.APIContext)

ListTrackedTimesByRepository lists all tracked times of the repository

func ListTrackedTimesByUser added in v1.3.0

func ListTrackedTimesByUser(ctx *context.APIContext)

ListTrackedTimesByUser lists all tracked times of the user

func ListWikiPages added in v1.16.0

func ListWikiPages(ctx *context.APIContext)

ListWikiPages get wiki pages list

func MergePullRequest added in v1.0.0

func MergePullRequest(ctx *context.APIContext)

MergePullRequest merges a PR given an index

func Migrate

func Migrate(ctx *context.APIContext)

Migrate migrate remote git repository to gitea

func MirrorSync added in v1.2.0

func MirrorSync(ctx *context.APIContext)

MirrorSync adds a mirrored repository to the sync queue

func MoveIssuePin added in v1.20.0

func MoveIssuePin(ctx *context.APIContext)

MoveIssuePin moves a pinned Issue to a new Position

func NewCommitStatus added in v1.2.0

func NewCommitStatus(ctx *context.APIContext)

NewCommitStatus creates a new CommitStatus

func NewWikiPage added in v1.16.0

func NewWikiPage(ctx *context.APIContext)

NewWikiPage response for wiki create request

func PinIssue added in v1.20.0

func PinIssue(ctx *context.APIContext)

PinIssue pins a issue

func PostIssueCommentReaction added in v1.11.0

func PostIssueCommentReaction(ctx *context.APIContext)

PostIssueCommentReaction add a reaction to a comment of an issue

func PostIssueReaction added in v1.11.0

func PostIssueReaction(ctx *context.APIContext)

PostIssueReaction add a reaction to an issue

func PushMirrorSync added in v1.17.4

func PushMirrorSync(ctx *context.APIContext)

PushMirrorSync adds all push mirrored repositories to the sync queue

func RejectTransfer added in v1.16.0

func RejectTransfer(ctx *context.APIContext)

RejectTransfer reject a repo transfer

func RemoveIssueBlocking added in v1.20.0

func RemoveIssueBlocking(ctx *context.APIContext)

RemoveIssueBlocking unblock the issue given in the body by the issue in path

func RemoveIssueDependency added in v1.20.0

func RemoveIssueDependency(ctx *context.APIContext)

RemoveIssueDependency remove an issue dependency

func ReplaceIssueLabels

func ReplaceIssueLabels(ctx *context.APIContext)

ReplaceIssueLabels replace labels for an issue

func ResetIssueTime added in v1.11.0

func ResetIssueTime(ctx *context.APIContext)

ResetIssueTime reset time manual to the given issue

func Search(ctx *context.APIContext)

Search repositories via options

func SearchIssues added in v1.11.0

func SearchIssues(ctx *context.APIContext)

SearchIssues searches for issues across the repositories that the user has access to

func StartIssueStopwatch added in v1.8.0

func StartIssueStopwatch(ctx *context.APIContext)

StartIssueStopwatch creates a stopwatch for the given issue.

func StopIssueStopwatch added in v1.8.0

func StopIssueStopwatch(ctx *context.APIContext)

StopIssueStopwatch stops a stopwatch for the given issue.

func SubmitPullReview added in v1.12.0

func SubmitPullReview(ctx *context.APIContext)

SubmitPullReview submit a pending review to an pull request

func TestHook added in v1.5.0

func TestHook(ctx *context.APIContext)

TestHook tests a hook

func TopicSearch added in v1.5.0

func TopicSearch(ctx *context.APIContext)

TopicSearch search for creating topic

func Transfer added in v1.12.0

func Transfer(ctx *context.APIContext)

Transfer transfers the ownership of a repository

func UnDismissPullReview added in v1.14.0

func UnDismissPullReview(ctx *context.APIContext)

UnDismissPullReview cancel to dismiss a review for a pull request

func UnpinIssue added in v1.20.0

func UnpinIssue(ctx *context.APIContext)

UnpinIssue unpins a Issue

func UpdateFile added in v1.9.0

func UpdateFile(ctx *context.APIContext)

UpdateFile handles API call for updating a file

func UpdateIssueDeadline added in v1.6.0

func UpdateIssueDeadline(ctx *context.APIContext)

UpdateIssueDeadline updates an issue deadline

func UpdatePullRequest added in v1.13.0

func UpdatePullRequest(ctx *context.APIContext)

UpdatePullRequest merge PR's baseBranch into headBranch

func UpdateTopics added in v1.10.0

func UpdateTopics(ctx *context.APIContext)

UpdateTopics updates repo with a new set of topics

func ValidateIssueConfig added in v1.20.0

func ValidateIssueConfig(ctx *context.APIContext)

ValidateIssueConfig returns validation errors for the issue config

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL