# Functions
BasicAuthEncode generate base64 of basic auth head.
Bool return address of bool value.
ExtractKeysFromMapString provides a slice of keys from map.
Int64 return address of int64 value.
ParseCreateHook parses create event hook content.
ParsePushHook parses push event hook content.
String return address of string value.
# Constants
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.
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.
HookIssueSynchronized synchronized.
HookIssueUnassigned unassigned.
all release actions.
all release actions.
all release actions.
HookRepoCreated created.
HookRepoDeleted deleted.
0 not migrated from external sites.
1 plain git service.
describe all the PusherTypes.
StateAll is all.
StateClosed pr is closed.
StateOpen pr is opend.
StatusError is for when the Status is Error.
StatusFailure is for when the Status is Failure.
StatusPending is for when the Status is Pending.
StatusSuccess is for when the Status is Success.
StatusWarning is for when the Status is Warning.
3 task is failed.
4 task is finished.
0 task is queue.
1 task is running.
2 task is stopped.
migrate repository from external or local disk.
VisibleTypeLimited Visible for every connected user.
VisibleTypePrivate Visible only for organization's members.
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 org Visibility types.
# Structs
AccessToken represents an API access token.
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.
Attachment a generic attachment swagger:model.
Branch represents a repository branch.
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.
CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE.
CommitMeta contains meta information of a commit in terms of API.
CommitUser contains information of a user in the context of a commit.
ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content.
CreateAccessTokenOption options when create access token swagger:parameters userCreateToken.
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.
CreateOrgOption options for creating an organization.
CreatePayload FIXME.
CreatePullRequestOption options when creating a pull request.
CreateReleaseOption options when creating a release.
CreateRepoOption options when creating repository swagger:model.
CreateStatusOption holds the information needed to create a new Status for a Commit.
CreateTeamOption options for creating a team.
CreateUserOptions create user options.
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.
EditAttachmentOptions options for editing attachments swagger:model.
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.
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.
ForkPayload represents fork payload.
GitBlobResponse represents a git blob.
GitEntry represents a git tree.
GitHook represents a Git repository hook.
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.
IssueLabelsOption a collection of labels.
IssuePayload represents the payload information that is sent along with an issue event.
Label a label to an issue or a pr swagger:model.
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.
ListIssueOption list issue options.
ListPullRequestsOptions options for listing pull requests.
ListStatusesOption holds pagination information.
MarkdownOption markdown options.
MigrateRepoOption options for migrating a repository from an external service.
Milestone milestone is a collection of issues on one repository.
NotificationCount number of unread notifications.
NotificationSubject contains the notification subject (Issue/Pull/Commit).
NotificationThread expose Notification on API.
Organization represents an organization.
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.
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.
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.
ReviewPayload FIXME.
SearchError error of a failed search.
SearchResults results of a successful search.
ServerVersion wraps the version of the server.
Status holds a single Status of a single Commit.
StopWatch represent a running stopwatch.
Tag represents a repository tag.
Team represents a team in an organization.
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.
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).
User represents a user swagger:model.
WatchInfo represents an API watch status of one repository.
# Interfaces
Payloader payload is some part of one hook.
# Type aliases
AccessTokenList represents a list of API access token.
CommitStatusState holds the state of a Status It can be "pending", "success", "error", "failure", and "warning".
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.
HookReleaseAction defines hook release action type.
HookRepoAction an action that happens to a repo.
MarkdownRender is a rendered markdown document swagger:response MarkdownRender.
PusherType define the type to push.
StateType issue state type.
StatusState holds the state of a Status It can be "pending", "success", "error", "failure", and "warning".
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 (Organization only).