# Functions
ExtractKeysFromMapString provides a slice of keys from map.
ParseCreateHook parses create event hook content.
ParsePushHook parses push event hook content.
# Constants
8 codebase service.
9 codecommit service.
CommitStatusError is for when the CommitStatus is Error.
CommitStatusFailure is for when the CommitStatus is Failure.
CommitStatusPending is for when the CommitStatus is Pending.
CommitStatusSuccess is for when the CommitStatus is Success.
CommitStatusWarning is for when the CommitStatus is Warning.
7 gitbucket service.
3 gitea service.
2 github.com.
4 gitlab service.
5 gogs service.
HookIssueAssigned assigned.
HookIssueClosed closed.
all issue comment actions.
all issue comment actions.
all issue comment actions.
HookIssueDemilestoned is an issue action for when a milestone is cleared on an issue.
HookIssueEdited edited.
HookIssueLabelCleared label_cleared.
HookIssueLabelUpdated label_updated.
HookIssueMilestoned is an issue action for when a milestone is set on an issue.
HookIssueOpened opened.
HookIssueReOpened reopened.
HookIssueReviewed is an issue action for when a pull request is reviewed.
HookIssueReviewRequested is an issue action for when a reviewer is requested for a pull request.
HookIssueReviewRequestRemoved is an issue action for removing a review request to someone on a pull request.
HookIssueSynchronized synchronized.
HookIssueUnassigned unassigned.
HookPackageCreated created.
HookPackageDeleted deleted.
all release actions.
all release actions.
all release actions.
HookRepoCreated created.
HookRepoDeleted deleted.
HookWikiCreated created.
HookWikiDeleted deleted.
HookWikiEdited edited.
NotifySubjectCommit an commit is subject of an notification.
NotifySubjectIssue an issue is subject of an notification.
NotifySubjectPull an pull is subject of an notification.
NotifySubjectRepository an repository is subject of an notification.
0 not migrated from external sites.
6 onedev service.
1 plain git service.
describe all the PusherTypes.
ReviewStateApproved pr is approved.
ReviewStateComment is a comment review.
ReviewStatePending pr state is pending.
ReviewStateRequestChanges changes for pr are requested.
ReviewStateRequestReview review is requested from user.
ReviewStateUnknown state of pr is unknown.
StateAll is all.
StateClosed pr is closed.
StateOpen pr is opend.
3 task is failed.
4 task is finished.
0 task is queued.
1 task is running.
2 task is stopped (never used).
migrate repository from external or local disk.
VisibleTypeLimited Visible for every connected user.
VisibleTypePrivate Visible only for self or admin user.
VisibleTypePublic Visible for everyone.
# Variables
ErrInvalidReceiveHook FIXME.
SupportedFullGitService represents all git services supported to migrate issues/labels/prs and etc.
VisibilityModes is a map of Visibility types.
# Structs
AccessToken represents an API access token.
ActionTask represents a ActionTask.
ActionTaskResponse returns a ActionTask.
ActionVariable return value of the query API swagger:model.
ActivityPub type.
AddCollaboratorOption options when adding a user as a collaborator of a repository.
AddOrgMembershipOption add user to organization options.
AddTimeOption options for adding time to an issue.
AnnotatedTag represents an annotated tag.
AnnotatedTagObject contains meta information of the tag object.
APIError is an api error with a message.
ApplyDiffPatchFileOptions options for applying a diff patch Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used).
Attachment a generic attachment swagger:model.
Badge represents a user badge swagger:model.
Branch represents a repository branch.
BranchProtection represents a branch protection for a repository.
ChangedFile store information about files affected by the pull request.
ChangeFileOperation for creating, updating or deleting a file.
ChangeFilesOptions options for creating, updating or deleting multiple files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used).
ChangesFromPayload FIXME.
ChangesPayload represents the payload information of issue change.
CombinedStatus holds the combined state of several statuses for a single commit.
Comment represents a comment on a commit or issue.
Commit contains information generated from a Git commit.
CommitAffectedFiles store information about files affected by the commit.
CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE.
CommitMeta contains meta information of a commit in terms of API.
CommitStats is statistics for a RepoCommit.
CommitStatus holds a single status of a single Commit.
CommitStatusPayload represents a payload information of commit status event.
CommitUser contains information of a user in the context of a commit.
Compare represents a comparison between two commits.
ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content.
CreateAccessTokenOption options when create access token.
CreateBranchProtectionOption options for creating a branch protection.
CreateBranchRepoOption options when creating a branch in a repository swagger:model.
CreateEmailOption options when creating email addresses.
CreateFileOptions options for creating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used).
CreateForkOption options for creating a fork.
CreateGPGKeyOption options create user GPG key.
CreateHookOption options when create a hook.
CreateIssueCommentOption options for creating a comment on an issue.
CreateIssueOption options to create one issue.
CreateKeyOption options when creating a key.
CreateLabelOption options for creating a label.
CreateMilestoneOption options for creating a milestone.
CreateOAuth2ApplicationOptions holds options to create an oauth2 application.
CreateOrgOption options for creating an organization.
CreateOrUpdateSecretOption options when creating or updating secret swagger:model.
CreatePayload FIXME.
CreatePullRequestOption options when creating a pull request.
CreatePullReviewComment represent a review comment for creation api.
CreatePullReviewOptions are options to create a pull review.
CreatePushMirrorOption represents need information to create a push mirror of a repository.
CreateReleaseOption options when creating a release.
CreateRepoOption options when creating repository swagger:model.
CreateStatusOption holds the information needed to create a new CommitStatus for a Commit.
CreateTagOption options when creating a tag.
CreateTagProtectionOption options for creating a tag protection.
CreateTeamOption options for creating a team.
CreateUserOption create user options.
CreateVariableOption the option when creating variable swagger:model.
CreateWikiPageOptions form for creating wiki.
Cron represents a Cron task.
DeleteEmailOption options when deleting email addresses.
DeleteFileOptions options for deleting files (used for other File structs below) Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used).
DeletePayload represents delete payload.
DeployKey a deploy key.
DismissPullReviewOptions are options to dismiss a pull review.
EditAttachmentOptions options for editing attachments swagger:model.
EditBranchProtectionOption options for editing a branch protection.
EditDeadlineOption options for creating a deadline.
EditGitHookOption options when modifying one Git hook.
EditHookOption options when modify one hook.
EditIssueCommentOption options for editing a comment.
EditIssueOption options for editing an issue.
EditLabelOption options for editing a label.
EditMilestoneOption options for editing a milestone.
EditOrgOption options for editing an organization.
EditPullRequestOption options when modify pull request.
EditReactionOption contain the reaction type.
EditReleaseOption options when editing a release.
EditRepoOption options when editing a repository's properties swagger:model.
EditTagProtectionOption options for editing a tag protection.
EditTeamOption options for editing a team.
EditUserOption edit user options.
Email an email address belonging to a user.
ExternalTracker represents settings for external tracker swagger:model.
ExternalWiki represents setting for external wiki swagger:model.
FileCommitResponse contains information generated from a Git commit for a repo's file.
FileDeleteResponse contains information about a repo's file that was deleted.
FileLinksResponse contains the links for a repo's file.
FileOptions options for all file APIs.
FileResponse contains information about a repo's file.
FilesResponse contains information about multiple files from a repo.
ForkPayload represents fork payload.
GeneralAPISettings contains global api settings exposed by it.
GeneralAttachmentSettings contains global Attachment settings exposed by API.
GeneralRepoSettings contains global repository settings exposed by API.
GeneralUISettings contains global ui settings exposed by API.
GenerateRepoOption options when creating repository using a template swagger:model.
GitBlobResponse represents a git blob.
GitEntry represents a git tree.
GitHook represents a Git repository hook.
GitignoreTemplateInfo name and text of a gitignore template.
GitObject represents a Git object.
GitTreeResponse returns a git tree.
GPGKey a user GPG key to sign commit and tag in repository.
GPGKeyEmail an email attached to a GPGKey swagger:model GPGKeyEmail.
Hook a hook is a web hook when one repository changed.
Identity for a person's identity like an author or committer.
InternalTracker represents settings for internal tracker swagger:model.
Issue represents an issue in a repository swagger:model.
IssueCommentPayload represents a payload information of issue comment event.
IssueDeadline represents an issue deadline swagger:model.
IssueFormField represents a form field swagger:model.
IssueLabelsOption a collection of labels.
IssueMeta basic issue information swagger:model.
IssuePayload represents the payload information that is sent along with an issue event.
IssueTemplate represents an issue template for a repository swagger:model.
Label a label to an issue or a pr swagger:model.
LabelTemplate info of a Label template.
LFSLock represent a lock for use with the locks API.
LFSLockDeleteRequest contains params of a delete request https://github.com/git-lfs/git-lfs/blob/master/docs/api/locking.md#delete-lock.
LFSLockError contains information on the error that occurs.
LFSLockList represent a list of lock requested https://github.com/git-lfs/git-lfs/blob/master/docs/api/locking.md#list-locks.
LFSLockListVerify represent a list of lock verification requested https://github.com/git-lfs/git-lfs/blob/master/docs/api/locking.md#list-locks-for-verification.
LFSLockOwner represent a lock owner for use with the locks API.
LFSLockRequest contains the path of the lock to create https://github.com/git-lfs/git-lfs/blob/master/docs/api/locking.md#create-lock.
LFSLockResponse represent a lock created https://github.com/git-lfs/git-lfs/blob/master/docs/api/locking.md#create-lock.
LicensesListEntry is used for the API.
LicensesInfo contains information about a License.
ListPullRequestsOptions options for listing pull requests.
MarkdownOption markdown options.
MarkupOption markup options.
MigrateRepoOptions options for migrating repository's this is used to interact with api v1.
Milestone milestone is a collection of issues on one repository.
NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed.
NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks.
NodeInfoServices contains the third party sites this server can connect to via their application API.
NodeInfoSoftware contains Metadata about server software in use.
NodeInfoUsage contains usage statistics for this server.
NodeInfoUsageUsers contains statistics about the users of this server.
Note contains information related to a git note.
NotificationCount number of unread notifications.
NotificationSubject contains the notification subject (Issue/Pull/Commit).
NotificationThread expose Notification on API.
OAuth2Application represents an OAuth2 application.
Organization represents an organization.
OrganizationPermissions list different users permissions on an organization.
Package represents a package.
PackageFile represents a package file.
PackagePayload represents a package payload.
PayloadCommit represents a commit.
PayloadCommitVerification represents the GPG verification of a commit.
PayloadUser represents the author or committer of a commit.
Permission represents a set of permissions.
PRBranchInfo information about a branch.
PublicKey publickey is a user key to push code to repository.
PullRequest represents a pull request.
PullRequestMeta PR info if an issue is a PR.
PullRequestPayload represents a payload information of pull request event.
PullReview represents a pull request review.
PullReviewComment represents a comment on a pull request review.
PullReviewRequestOptions are options to add or remove pull review requests.
PushMirror represents information of a push mirror swagger:model.
PushPayload represents a payload information of push event.
Reaction contain one reaction.
Reference represents a Git reference.
Release represents a repository release.
ReleasePayload represents a payload information of release event.
RenameUserOption options when renaming a user.
RepoCollaboratorPermission to get repository permission for a collaborator.
RepoCommit contains information of a commit in the context of a repository.
Repository represents a repository.
RepositoryMeta basic repository information.
RepositoryPayload payload for repository webhooks.
RepoTopicOptions a collection of repo topic names.
RepoTransfer represents a pending repo transfer.
ReviewPayload FIXME.
SearchError error of a failed search.
SearchResults results of a successful search.
Secret represents a secret swagger:model.
ServerVersion wraps the version of the server.
StopWatch represent a running stopwatch.
SubmitPullReviewOptions are options to submit a pending pull review.
Tag represents a repository tag.
TagProtection represents a tag protection.
Team represents a team in an organization.
TimelineComment represents a timeline comment (comment of any type) on a commit or issue.
TopicName a list of repo topic names.
TopicResponse for returning topics.
TrackedTime worked time for an issue / pr.
TransferRepoOption options when transfer a repository's ownership swagger:model.
UpdateBranchProtectionPriories a list to update the branch protection rule priorities.
UpdateBranchRepoOption options when updating a branch in a repository swagger:model.
UpdateFileOptions options for updating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used).
UpdateRepoAvatarUserOption options when updating the repo avatar.
UpdateUserAvatarUserOption options when updating the user avatar.
UpdateVariableOption the option when updating variable swagger:model.
User represents a user swagger:model.
UserBadge represents a user badge swagger:model.
UserBadgeOption options for link between users and badges.
UserSettings represents user settings swagger:model.
UserSettingsOptions represents options to change user settings swagger:model.
VerifyGPGKeyOption options verifies user GPG key.
WatchInfo represents an API watch status of one repository.
WikiCommit page commit/revision.
WikiCommitList commit/revision list.
WikiPage a wiki page.
WikiPageMetaData wiki page meta information.
WikiPayload payload for repository webhooks.
WorkflowDispatchPayload represents a workflow dispatch payload.
# Interfaces
FileOptionInterface provides a unified interface for the different file options.
Payloader payload is some part of one hook.
# Type aliases
AccessTokenList represents a list of API access token.
CommitStatusState holds the state of a CommitStatus It can be "pending", "success", "error" and "failure".
CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required.
GitHookList represents a list of Git hooks.
GitServiceType represents a git service.
HookIssueAction FIXME.
HookIssueCommentAction defines hook issue comment action.
HookList represents a list of API hook.
HookPackageAction an action that happens to a package.
HookReleaseAction defines hook release action type.
HookRepoAction an action that happens to a repo.
HookWikiAction an action that happens to a wiki page.
IssueFormFieldType defines issue form field type, can be "markdown", "textarea", "input", "dropdown" or "checkboxes".
IssueFormFieldVisible defines issue form field visible swagger:model.
IssueTemplateType defines issue template type.
MarkdownRender is a rendered markdown document swagger:response MarkdownRender.
MarkupRender is a rendered markup document swagger:response MarkupRender.
NotifySubjectType represent type of notification subject.
OAuth2ApplicationList represents a list of OAuth2 applications.
PusherType define the type to push.
ReviewStateType review state type.
StateType issue state type.
StopWatches represent a list of stopwatches.
TaskStatus defines task status.
TaskType defines task type.
TrackedTimeList represents a list of tracked times.
VisibleType defines the visibility of user and org.