Documentation ¶
Index ¶
- type ActionsBillingUsage
- type ActionsBillingUsageMinutesUsedBreakdown
- type ActionsPublicKey
- type ActionsSecret
- type Actor
- type ApiOverview
- type ApiOverviewSshKeyFingerprints
- type ApplicationGrant
- type ApplicationGrantApp
- type ApplicationGrantUser
- type Artifact
- type AuthenticationToken
- type AuthenticationTokenPermissions
- type Authorization
- type AuthorizationApp
- type AuthorizationInstallation
- type AuthorizationUser
- type BaseGist
- type BaseGistForksItem
- type BaseGistHistoryItem
- type BaseGistOwner
- type BaseGistUser
- type BasicError
- type Blob
- type BranchProtection
- type BranchProtectionAllowDeletions
- type BranchProtectionAllowForcePushes
- type BranchProtectionRequiredLinearHistory
- type BranchProtectionRequiredStatusChecks
- type BranchRestrictionPolicy
- type BranchRestrictionPolicyAppsItem
- type BranchRestrictionPolicyAppsItemOwner
- type BranchRestrictionPolicyAppsItemPermissions
- type BranchRestrictionPolicyTeamsItem
- type BranchRestrictionPolicyUsersItem
- type BranchShort
- type BranchShortCommit
- type BranchWithProtection
- type BranchWithProtectionLinks
- type CheckAnnotation
- type CheckRun
- type CheckRunApp
- type CheckRunCheckSuite
- type CheckRunOutput
- type CheckRunPullRequests
- type CheckSuite
- type CheckSuiteApp
- type CheckSuitePreference
- type CheckSuitePreferencePreferences
- type CheckSuitePreferencePreferencesAutoTriggerChecksItem
- type CloneTraffic
- type CodeFrequencyStat
- type CodeOfConduct
- type CodeOfConductSimple
- type CodeScanningAlert
- type CodeScanningAlertClosedBy
- type CodeSearchResultItem
- type Collaborator
- type CollaboratorPermissions
- type CombinedBillingUsage
- type CombinedCommitStatus
- type Commit
- type CommitActivity
- type CommitAuthor
- type CommitComment
- type CommitCommentUser
- type CommitCommit
- type CommitCommitAuthor
- type CommitCommitCommitter
- type CommitCommitTree
- type CommitCommitter
- type CommitComparison
- type CommitFilesItem
- type CommitParentsItem
- type CommitSearchResultItem
- type CommitSearchResultItemAuthor
- type CommitSearchResultItemCommit
- type CommitSearchResultItemCommitAuthor
- type CommitSearchResultItemCommitCommitter
- type CommitSearchResultItemCommitTree
- type CommitSearchResultItemCommitter
- type CommitSearchResultItemParentsItem
- type CommitStats
- type CommunityHealthFile
- type CommunityProfile
- type CommunityProfileFiles
- type CommunityProfileFilesCodeOfConduct
- type CommunityProfileFilesContributing
- type CommunityProfileFilesIssueTemplate
- type CommunityProfileFilesLicense
- type CommunityProfileFilesPullRequestTemplate
- type CommunityProfileFilesReadme
- type ContentDirectory
- type ContentFile
- type ContentFileLinks
- type ContentReferenceAttachment
- type ContentSubmodule
- type ContentSubmoduleLinks
- type ContentSymlink
- type ContentSymlinkLinks
- type ContentTraffic
- type ContentTree
- type ContentTreeEntriesItem
- type ContentTreeEntriesItemLinks
- type ContentTreeLinks
- type Contributor
- type ContributorActivity
- type ContributorActivityAuthor
- type ContributorActivityWeeksItem
- type CredentialAuthorization
- type DeployKey
- type Deployment
- type DeploymentCreator
- type DeploymentPayload
- type DeploymentPerformedViaGithubApp
- type DeploymentStatus
- type DeploymentStatusCreator
- type DeploymentStatusPerformedViaGithubApp
- type DiffEntry
- type Email
- type EmailAsObject
- type Enterprise
- type Event
- type EventPayload
- type EventPayloadPagesItem
- type EventRepo
- type Feed
- type FeedLinks
- type FileCommit
- type FileCommitCommit
- type FileCommitCommitAuthor
- type FileCommitCommitCommitter
- type FileCommitCommitParentsItem
- type FileCommitCommitTree
- type FileCommitCommitVerification
- type FileCommitContent
- type FileCommitContentLinks
- type FullRepository
- type FullRepositoryLicense
- type FullRepositoryOrganization
- type FullRepositoryOwner
- type FullRepositoryPermissions
- type FullRepositoryTemplateRepository
- type GistComment
- type GistCommentUser
- type GistCommit
- type GistCommitChangeStatus
- type GistCommitUser
- type GistFull
- type GistSimple
- type GitCommit
- type GitCommitAuthor
- type GitCommitCommitter
- type GitCommitParentsItem
- type GitCommitTree
- type GitCommitVerification
- type GitRef
- type GitRefObject
- type GitTag
- type GitTagObject
- type GitTagTagger
- type GitTree
- type GitTreeTreeItem
- type GitUser
- type GitignoreTemplate
- type GpgKey
- type GpgKeyEmailsItem
- type GpgKeySubkeysItem
- type GpgKeySubkeysItemEmailsItem
- type GpgKeySubkeysItemSubkeysItem
- type GroupMapping
- type GroupMappingGroupsItem
- type Hook
- type HookConfig
- type HookResponse
- type Hovercard
- type HovercardContextsItem
- type Import
- type ImportProjectChoicesItem
- type Installation
- type InstallationAccount
- type InstallationPermissions
- type InstallationSuspendedBy
- type InstallationToken
- type InstallationTokenPermissions
- type Integration
- type IntegrationOwner
- type InteractionLimit
- type Issue
- type IssueAssignee
- type IssueClosedBy
- type IssueComment
- type IssueCommentPerformedViaGithubApp
- type IssueCommentUser
- type IssueEvent
- type IssueEventActor
- type IssueEventAssignee
- type IssueEventAssigner
- type IssueEventDismissedReview
- type IssueEventForIssue
- type IssueEventLabel
- type IssueEventMilestone
- type IssueEventProjectCard
- type IssueEventRename
- type IssueEventRequestedReviewer
- type IssueEventReviewRequester
- type IssueLabelsItem
- type IssueLabelsItemAsObject
- type IssueMilestone
- type IssuePerformedViaGithubApp
- type IssuePullRequest
- type IssueSearchResultItem
- type IssueSearchResultItemAssignee
- type IssueSearchResultItemLabelsItem
- type IssueSearchResultItemMilestone
- type IssueSearchResultItemPerformedViaGithubApp
- type IssueSearchResultItemPullRequest
- type IssueSearchResultItemUser
- type IssueSimple
- type IssueSimpleAssignee
- type IssueSimpleLabelsItem
- type IssueSimpleMilestone
- type IssueSimplePerformedViaGithubApp
- type IssueSimplePullRequest
- type IssueSimpleUser
- type IssueUser
- type Job
- type JobStepsItem
- type Key
- type KeySimple
- type Label
- type LabelSearchResultItem
- type Language
- type License
- type LicenseContent
- type LicenseContentLicense
- type LicenseContentLinks
- type LicenseSimple
- type Link
- type LinkWithType
- type MarketplaceAccount
- type MarketplaceListingPlan
- type MarketplacePurchase
- type MarketplacePurchaseMarketplacePendingChange
- type MarketplacePurchaseMarketplacePurchase
- type Migration
- type MigrationExcludeItem
- type MigrationOwner
- type Milestone
- type MilestoneCreator
- type MinimalRepository
- type MinimalRepositoryLicense
- type MinimalRepositoryOwner
- type MinimalRepositoryPermissions
- type OrgHook
- type OrgHookConfig
- type OrgMembership
- type OrgMembershipPermissions
- type OrgMembershipUser
- type Organization
- type OrganizationActionsSecret
- type OrganizationFull
- type OrganizationFullPlan
- type OrganizationInvitation
- type OrganizationPlan
- type OrganizationSimple
- type PackagesBillingUsage
- type Page
- type PageBuild
- type PageBuildError
- type PageBuildPusher
- type PageBuildStatus
- type PagesSourceHash
- type ParticipationStats
- type PorterAuthor
- type PorterLargeFile
- type PrivateUser
- type PrivateUserPlan
- type Project
- type ProjectCard
- type ProjectCardCreator
- type ProjectColumn
- type ProjectCreator
- type ProjectPermissions
- type ProtectedBranch
- type ProtectedBranchAdminEnforced
- type ProtectedBranchAllowDeletions
- type ProtectedBranchAllowForcePushes
- type ProtectedBranchEnforceAdmins
- type ProtectedBranchPullRequestReview
- type ProtectedBranchPullRequestReviewDismissalRestrictions
- type ProtectedBranchRequiredLinearHistory
- type ProtectedBranchRequiredPullRequestReviews
- type ProtectedBranchRequiredPullRequestReviewsDismissalRestrictions
- type ProtectedBranchRequiredSignatures
- type PublicUser
- type PublicUserPlan
- type PullRequest
- type PullRequestAssignee
- type PullRequestBase
- type PullRequestBaseRepo
- type PullRequestBaseRepoLicense
- type PullRequestBaseRepoOwner
- type PullRequestBaseRepoPermissions
- type PullRequestBaseUser
- type PullRequestHead
- type PullRequestHeadRepo
- type PullRequestHeadRepoLicense
- type PullRequestHeadRepoOwner
- type PullRequestHeadRepoPermissions
- type PullRequestHeadUser
- type PullRequestLabelsItem
- type PullRequestLinks
- type PullRequestMergeResult
- type PullRequestMergedBy
- type PullRequestMilestone
- type PullRequestMinimal
- type PullRequestMinimalBase
- type PullRequestMinimalBaseRepo
- type PullRequestMinimalHead
- type PullRequestMinimalHeadRepo
- type PullRequestReview
- type PullRequestReviewComment
- type PullRequestReviewCommentLinks
- type PullRequestReviewCommentLinksHtml
- type PullRequestReviewCommentLinksPullRequest
- type PullRequestReviewCommentLinksSelf
- type PullRequestReviewLinks
- type PullRequestReviewLinksHtml
- type PullRequestReviewLinksPullRequest
- type PullRequestReviewRequest
- type PullRequestReviewRequestTeamsItem
- type PullRequestReviewRequestUsersItem
- type PullRequestReviewUser
- type PullRequestSimple
- type PullRequestSimpleAssignee
- type PullRequestSimpleBase
- type PullRequestSimpleBaseUser
- type PullRequestSimpleHead
- type PullRequestSimpleHeadUser
- type PullRequestSimpleLabelsItem
- type PullRequestSimpleLinks
- type PullRequestSimpleMilestone
- type PullRequestSimpleUser
- type PullRequestUser
- type RateLimit
- type RateLimitOverview
- type RateLimitOverviewResources
- type Reaction
- type ReactionRollup
- type ReactionUser
- type ReferrerTraffic
- type Release
- type ReleaseAsset
- type ReleaseAssetUploader
- type RepoSearchResultItem
- type RepoSearchResultItemLicense
- type RepoSearchResultItemOwner
- type RepoSearchResultItemPermissions
- type Repository
- type RepositoryCollaboratorPermission
- type RepositoryCollaboratorPermissionUser
- type RepositoryInvitation
- type RepositoryInvitationInvitee
- type RepositoryInvitationInviter
- type RepositoryLicense
- type RepositoryOwner
- type RepositoryPermissions
- type RepositorySubscription
- type RepositoryTemplateRepository
- type RepositoryTemplateRepositoryOwner
- type RepositoryTemplateRepositoryPermissions
- type ResponseErrorData
- type ReviewComment
- type ReviewCommentLinks
- type ReviewCommentUser
- type Runner
- type RunnerApplication
- type ScimError
- type ScimUser
- type ScimUserEmailsItem
- type ScimUserGroupsItem
- type ScimUserList
- type ScimUserMeta
- type ScimUserName
- type ScimUserOperationsItem
- type ScimUserOperationsItemValue
- type ScimUserOperationsItemValueAsObject
- type ScopedInstallation
- type ScopedInstallationPermissions
- type SearchResultTextMatches
- type ShortBlob
- type ShortBranch
- type ShortBranchCommit
- type SimpleCommit
- type SimpleCommitAuthor
- type SimpleCommitCommitter
- type SimpleCommitStatus
- type SimpleUser
- type Stargazer
- type StargazerUser
- type StarredRepository
- type Status
- type StatusCheckPolicy
- type Tag
- type TagCommit
- type Team
- type TeamDiscussion
- type TeamDiscussionAuthor
- type TeamDiscussionComment
- type TeamDiscussionCommentAuthor
- type TeamFull
- type TeamFullParent
- type TeamMembership
- type TeamParent
- type TeamProject
- type TeamProjectPermissions
- type TeamRepository
- type TeamRepositoryLicense
- type TeamRepositoryOwner
- type TeamRepositoryPermissions
- type TeamRepositoryTemplateRepository
- type TeamRepositoryTemplateRepositoryOwner
- type TeamRepositoryTemplateRepositoryPermissions
- type TeamSimple
- type Thread
- type ThreadSubject
- type ThreadSubscription
- type Topic
- type TopicSearchResultItem
- type TopicSearchResultItemAliasesItem
- type TopicSearchResultItemAliasesItemTopicRelation
- type TopicSearchResultItemRelatedItem
- type TopicSearchResultItemRelatedItemTopicRelation
- type Traffic
- type UserMarketplacePurchase
- type UserSearchResultItem
- type ValidationError
- type ValidationErrorErrorsItem
- type ValidationErrorErrorsItemValue
- type ValidationErrorSimple
- type Verification
- type ViewTraffic
- type Workflow
- type WorkflowRun
- type WorkflowRunUsage
- type WorkflowRunUsageBillable
- type WorkflowRunUsageBillableMACOS
- type WorkflowRunUsageBillableUBUNTU
- type WorkflowRunUsageBillableWINDOWS
- type WorkflowUsage
- type WorkflowUsageBillable
- type WorkflowUsageBillableMACOS
- type WorkflowUsageBillableUBUNTU
- type WorkflowUsageBillableWINDOWS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionsBillingUsage ¶
type ActionsBillingUsage struct { // The amount of free GitHub Actions minutes available. IncludedMinutes int64 `json:"included_minutes,omitempty"` MinutesUsedBreakdown ActionsBillingUsageMinutesUsedBreakdown `json:"minutes_used_breakdown,omitempty"` // The sum of the free and paid GitHub Actions minutes used. TotalMinutesUsed int64 `json:"total_minutes_used,omitempty"` // The total paid GitHub Actions minutes used. TotalPaidMinutesUsed int64 `json:"total_paid_minutes_used,omitempty"` }
type ActionsBillingUsageMinutesUsedBreakdown ¶ added in v0.1.0
type ActionsBillingUsageMinutesUsedBreakdown struct { // Total minutes used on macOS runner machines. MACOS int64 `json:"MACOS,omitempty"` // Total minutes used on Ubuntu runner machines. UBUNTU int64 `json:"UBUNTU,omitempty"` // Total minutes used on Windows runner machines. WINDOWS int64 `json:"WINDOWS,omitempty"` }
type ActionsPublicKey ¶
type ActionsPublicKey struct { CreatedAt string `json:"created_at,omitempty"` Id int64 `json:"id,omitempty"` // The Base64 encoded public key. Key string `json:"key"` // The identifier for the key. KeyId string `json:"key_id"` Title string `json:"title,omitempty"` Url string `json:"url,omitempty"` }
type ActionsSecret ¶
type ApiOverview ¶
type ApiOverview struct { Api []string `json:"api,omitempty"` Git []string `json:"git,omitempty"` GithubServicesSha string `json:"github_services_sha,omitempty"` Hooks []string `json:"hooks,omitempty"` Importer []string `json:"importer,omitempty"` InstalledVersion string `json:"installed_version,omitempty"` Pages []string `json:"pages,omitempty"` SshKeyFingerprints ApiOverviewSshKeyFingerprints `json:"ssh_key_fingerprints,omitempty"` VerifiablePasswordAuthentication bool `json:"verifiable_password_authentication"` Web []string `json:"web,omitempty"` }
type ApiOverviewSshKeyFingerprints ¶ added in v0.1.0
type ApplicationGrant ¶
type ApplicationGrant struct { App ApplicationGrantApp `json:"app"` CreatedAt string `json:"created_at"` Id int64 `json:"id"` Scopes []string `json:"scopes"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *ApplicationGrantUser `json:"user,omitempty"` }
type ApplicationGrantApp ¶ added in v0.1.0
type ApplicationGrantUser ¶ added in v0.5.0
type ApplicationGrantUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type Artifact ¶
type Artifact struct { ArchiveDownloadUrl string `json:"archive_download_url"` CreatedAt string `json:"created_at"` // Whether or not the artifact has expired. Expired bool `json:"expired"` ExpiresAt string `json:"expires_at"` Id int64 `json:"id"` // The name of the artifact. Name string `json:"name"` NodeId string `json:"node_id"` // The size in bytes of the artifact. SizeInBytes int64 `json:"size_in_bytes"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type AuthenticationToken ¶
type AuthenticationToken struct { // The time this token expires ExpiresAt string `json:"expires_at"` Permissions AuthenticationTokenPermissions `json:"permissions,omitempty"` // The repositories this token has access to Repositories []Repository `json:"repositories,omitempty"` // Describe whether all repositories have been selected or there's a selection involved RepositorySelection string `json:"repository_selection,omitempty"` SingleFile string `json:"single_file,omitempty"` // The token used for authentication Token string `json:"token"` }
type AuthenticationTokenPermissions ¶ added in v0.5.0
type AuthenticationTokenPermissions interface{}
type Authorization ¶
type Authorization struct { App AuthorizationApp `json:"app"` CreatedAt string `json:"created_at"` Fingerprint string `json:"fingerprint"` HashedToken string `json:"hashed_token"` Id int64 `json:"id"` Installation *AuthorizationInstallation `json:"installation,omitempty"` Note string `json:"note"` NoteUrl string `json:"note_url"` // A list of scopes that this authorization is in. Scopes []string `json:"scopes"` Token string `json:"token"` TokenLastEight string `json:"token_last_eight"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *AuthorizationUser `json:"user,omitempty"` }
type AuthorizationApp ¶ added in v0.1.0
type AuthorizationInstallation ¶ added in v0.5.0
type AuthorizationInstallation struct { // Simple User Account *SimpleUser `json:"account,omitempty"` Permissions ScopedInstallationPermissions `json:"permissions,omitempty"` RepositoriesUrl string `json:"repositories_url,omitempty"` // Describe whether all repositories have been selected or there's a selection involved RepositorySelection string `json:"repository_selection,omitempty"` SingleFileName string `json:"single_file_name,omitempty"` }
type AuthorizationUser ¶ added in v0.5.0
type AuthorizationUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type BaseGist ¶
type BaseGist struct { Comments int64 `json:"comments"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CreatedAt string `json:"created_at"` Description string `json:"description"` Files map[string]struct { Filename string `json:"filename,omitempty"` Language string `json:"language,omitempty"` RawUrl string `json:"raw_url,omitempty"` Size int64 `json:"size,omitempty"` Type string `json:"type,omitempty"` } `json:"files"` Forks []BaseGistForksItem `json:"forks,omitempty"` ForksUrl string `json:"forks_url"` GitPullUrl string `json:"git_pull_url"` GitPushUrl string `json:"git_push_url"` History []BaseGistHistoryItem `json:"history,omitempty"` HtmlUrl string `json:"html_url"` Id string `json:"id"` NodeId string `json:"node_id"` Owner *BaseGistOwner `json:"owner,omitempty"` Public bool `json:"public"` Truncated bool `json:"truncated,omitempty"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *BaseGistUser `json:"user"` }
type BaseGistForksItem ¶ added in v0.5.0
type BaseGistForksItem interface{}
type BaseGistHistoryItem ¶ added in v0.5.0
type BaseGistHistoryItem interface{}
type BaseGistOwner ¶ added in v0.1.0
type BaseGistOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type BaseGistUser ¶ added in v0.5.0
type BaseGistUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type BasicError ¶ added in v0.5.0
type BranchProtection ¶
type BranchProtection struct { AllowDeletions BranchProtectionAllowDeletions `json:"allow_deletions,omitempty"` AllowForcePushes BranchProtectionAllowForcePushes `json:"allow_force_pushes,omitempty"` Enabled bool `json:"enabled"` // Protected Branch Admin Enforced EnforceAdmins ProtectedBranchAdminEnforced `json:"enforce_admins,omitempty"` Name string `json:"name,omitempty"` ProtectionUrl string `json:"protection_url,omitempty"` RequiredLinearHistory BranchProtectionRequiredLinearHistory `json:"required_linear_history,omitempty"` // Protected Branch Pull Request Review RequiredPullRequestReviews ProtectedBranchPullRequestReview `json:"required_pull_request_reviews,omitempty"` RequiredStatusChecks BranchProtectionRequiredStatusChecks `json:"required_status_checks"` // Branch Restriction Policy Restrictions BranchRestrictionPolicy `json:"restrictions,omitempty"` Url string `json:"url,omitempty"` }
type BranchProtectionAllowDeletions ¶ added in v0.1.0
type BranchProtectionAllowDeletions struct {
Enabled bool `json:"enabled,omitempty"`
}
type BranchProtectionAllowForcePushes ¶ added in v0.1.0
type BranchProtectionAllowForcePushes struct {
Enabled bool `json:"enabled,omitempty"`
}
type BranchProtectionRequiredLinearHistory ¶ added in v0.1.0
type BranchProtectionRequiredLinearHistory struct {
Enabled bool `json:"enabled,omitempty"`
}
type BranchProtectionRequiredStatusChecks ¶ added in v0.1.0
type BranchRestrictionPolicy ¶
type BranchRestrictionPolicy struct { Apps []BranchRestrictionPolicyAppsItem `json:"apps"` AppsUrl string `json:"apps_url"` Teams []BranchRestrictionPolicyTeamsItem `json:"teams"` TeamsUrl string `json:"teams_url"` Url string `json:"url"` Users []BranchRestrictionPolicyUsersItem `json:"users"` UsersUrl string `json:"users_url"` }
type BranchRestrictionPolicyAppsItem ¶ added in v0.1.0
type BranchRestrictionPolicyAppsItem struct { CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner BranchRestrictionPolicyAppsItemOwner `json:"owner,omitempty"` Permissions BranchRestrictionPolicyAppsItemPermissions `json:"permissions,omitempty"` Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` }
type BranchRestrictionPolicyAppsItemOwner ¶ added in v0.1.0
type BranchRestrictionPolicyAppsItemOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` Description string `json:"description,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HooksUrl string `json:"hooks_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` IssuesUrl string `json:"issues_url,omitempty"` Login string `json:"login,omitempty"` MembersUrl string `json:"members_url,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` PublicMembersUrl string `json:"public_members_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type BranchRestrictionPolicyAppsItemPermissions ¶ added in v0.1.0
type BranchRestrictionPolicyTeamsItem ¶ added in v0.1.0
type BranchRestrictionPolicyTeamsItem struct { Description string `json:"description,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` MembersUrl string `json:"members_url,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Parent string `json:"parent,omitempty"` Permission string `json:"permission,omitempty"` Privacy string `json:"privacy,omitempty"` RepositoriesUrl string `json:"repositories_url,omitempty"` Slug string `json:"slug,omitempty"` Url string `json:"url,omitempty"` }
type BranchRestrictionPolicyUsersItem ¶ added in v0.1.0
type BranchRestrictionPolicyUsersItem struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type BranchShort ¶
type BranchShort struct { Commit BranchShortCommit `json:"commit,omitempty"` Name string `json:"name,omitempty"` Protected bool `json:"protected,omitempty"` }
type BranchShortCommit ¶ added in v0.1.0
type BranchWithProtection ¶
type BranchWithProtection struct { Links BranchWithProtectionLinks `json:"_links"` // Commit Commit Commit `json:"commit"` Name string `json:"name"` Pattern string `json:"pattern,omitempty"` Protected bool `json:"protected"` // Branch Protection Protection BranchProtection `json:"protection"` ProtectionUrl string `json:"protection_url"` RequiredApprovingReviewCount int64 `json:"required_approving_review_count,omitempty"` }
type BranchWithProtectionLinks ¶ added in v0.1.0
type CheckAnnotation ¶
type CheckAnnotation struct { AnnotationLevel string `json:"annotation_level"` BlobHref string `json:"blob_href"` EndColumn int64 `json:"end_column"` EndLine int64 `json:"end_line"` Message string `json:"message"` Path string `json:"path"` RawDetails string `json:"raw_details"` StartColumn int64 `json:"start_column"` StartLine int64 `json:"start_line"` Title string `json:"title"` }
type CheckRun ¶
type CheckRun struct { App *CheckRunApp `json:"app"` CheckSuite *CheckRunCheckSuite `json:"check_suite"` CompletedAt string `json:"completed_at"` Conclusion string `json:"conclusion"` DetailsUrl string `json:"details_url"` ExternalId string `json:"external_id"` // The SHA of the commit that is being checked. HeadSha string `json:"head_sha"` HtmlUrl string `json:"html_url"` // The id of the check. Id int64 `json:"id"` // The name of the check. Name string `json:"name"` NodeId string `json:"node_id"` Output CheckRunOutput `json:"output"` PullRequests CheckRunPullRequests `json:"pull_requests"` StartedAt string `json:"started_at"` // The phase of the lifecycle that the check is currently in. Status string `json:"status"` Url string `json:"url"` }
type CheckRunApp ¶ added in v0.1.0
type CheckRunApp struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` // The list of events for the GitHub app Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the GitHub app Id int64 `json:"id,omitempty"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner *IntegrationOwner `json:"owner,omitempty"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions,omitempty"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type CheckRunCheckSuite ¶ added in v0.1.0
type CheckRunCheckSuite struct {
Id int64 `json:"id"`
}
type CheckRunOutput ¶ added in v0.1.0
type CheckRunPullRequests ¶ added in v0.5.0
type CheckRunPullRequests interface{}
type CheckSuite ¶
type CheckSuite struct { After string `json:"after"` App *CheckSuiteApp `json:"app"` Before string `json:"before"` CheckRunsUrl string `json:"check_runs_url"` Conclusion string `json:"conclusion"` CreatedAt string `json:"created_at"` HeadBranch string `json:"head_branch"` // Simple Commit HeadCommit SimpleCommit `json:"head_commit"` // The SHA of the head commit that is being checked. HeadSha string `json:"head_sha"` Id int64 `json:"id"` LatestCheckRunsCount int64 `json:"latest_check_runs_count"` NodeId string `json:"node_id"` PullRequests []PullRequestMinimal `json:"pull_requests"` // Minimal Repository Repository MinimalRepository `json:"repository"` Status string `json:"status"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type CheckSuiteApp ¶ added in v0.1.0
type CheckSuiteApp struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` // The list of events for the GitHub app Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the GitHub app Id int64 `json:"id,omitempty"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner *IntegrationOwner `json:"owner,omitempty"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions,omitempty"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type CheckSuitePreference ¶
type CheckSuitePreference struct { Preferences CheckSuitePreferencePreferences `json:"preferences,omitempty"` // A git repository Repository Repository `json:"repository,omitempty"` }
type CheckSuitePreferencePreferences ¶ added in v0.1.0
type CheckSuitePreferencePreferences struct {
AutoTriggerChecks []CheckSuitePreferencePreferencesAutoTriggerChecksItem `json:"auto_trigger_checks,omitempty"`
}
type CheckSuitePreferencePreferencesAutoTriggerChecksItem ¶ added in v0.1.0
type CloneTraffic ¶
type CodeFrequencyStat ¶
type CodeFrequencyStat []int64
type CodeOfConduct ¶
type CodeOfConductSimple ¶
type CodeScanningAlert ¶
type CodeScanningAlert struct { ClosedAt string `json:"closed_at,omitempty"` ClosedBy *CodeScanningAlertClosedBy `json:"closed_by,omitempty"` ClosedReason string `json:"closed_reason,omitempty"` CreatedAt string `json:"created_at,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Number int64 `json:"number,omitempty"` // Whether or not the alert is open. Open bool `json:"open,omitempty"` // A short description of the rule used to detect the alert. RuleDescription string `json:"rule_description,omitempty"` // A unique identifier for the rule used to detect the alert. RuleId string `json:"rule_id,omitempty"` // The severity of the alert. RuleSeverity string `json:"rule_severity,omitempty"` // The name of the tool used to detect the alert. Tool string `json:"tool,omitempty"` Url string `json:"url,omitempty"` }
type CodeScanningAlertClosedBy ¶ added in v0.5.0
type CodeScanningAlertClosedBy struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type CodeSearchResultItem ¶
type CodeSearchResultItem struct { FileSize int64 `json:"file_size,omitempty"` GitUrl string `json:"git_url"` HtmlUrl string `json:"html_url"` Language string `json:"language,omitempty"` LastModifiedAt string `json:"last_modified_at,omitempty"` LineNumbers []string `json:"line_numbers,omitempty"` Name string `json:"name"` Path string `json:"path"` // Minimal Repository Repository MinimalRepository `json:"repository"` Score int64 `json:"score"` Sha string `json:"sha"` TextMatches SearchResultTextMatches `json:"text_matches,omitempty"` Url string `json:"url"` }
type Collaborator ¶
type Collaborator struct { AvatarUrl string `json:"avatar_url"` EventsUrl string `json:"events_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Login string `json:"login"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` Permissions CollaboratorPermissions `json:"permissions,omitempty"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` Type string `json:"type"` Url string `json:"url"` }
type CollaboratorPermissions ¶ added in v0.1.0
type CombinedBillingUsage ¶
type CombinedBillingUsage struct { // Numbers of days left in billing cycle. DaysLeftInBillingCycle int64 `json:"days_left_in_billing_cycle,omitempty"` // Estimated storage space (GB) used in billing cycle. EstimatedPaidStorageForMonth int64 `json:"estimated_paid_storage_for_month,omitempty"` // Estimated sum of free and paid storage space (GB) used in billing cycle. EstimatedStorageForMonth int64 `json:"estimated_storage_for_month,omitempty"` }
type CombinedCommitStatus ¶
type CombinedCommitStatus struct { CommitUrl string `json:"commit_url"` // Minimal Repository Repository MinimalRepository `json:"repository"` Sha string `json:"sha"` State string `json:"state"` Statuses []SimpleCommitStatus `json:"statuses"` TotalCount int64 `json:"total_count"` Url string `json:"url"` }
type Commit ¶
type Commit struct { Author *CommitAuthor `json:"author"` CommentsUrl string `json:"comments_url"` Commit CommitCommit `json:"commit"` Committer *CommitCommitter `json:"committer"` Files []CommitFilesItem `json:"files,omitempty"` HtmlUrl string `json:"html_url"` NodeId string `json:"node_id"` Parents []CommitParentsItem `json:"parents"` Sha string `json:"sha"` Stats CommitStats `json:"stats,omitempty"` Url string `json:"url"` }
type CommitActivity ¶
type CommitAuthor ¶ added in v0.1.0
type CommitAuthor struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type CommitComment ¶
type CommitComment struct { AuthorAssociation string `json:"author_association"` Body string `json:"body"` CommitId string `json:"commit_id"` CreatedAt string `json:"created_at"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Line int64 `json:"line"` NodeId string `json:"node_id"` Path string `json:"path"` Position int64 `json:"position"` Reactions ReactionRollup `json:"reactions,omitempty"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *CommitCommentUser `json:"user"` }
type CommitCommentUser ¶ added in v0.1.0
type CommitCommentUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type CommitCommit ¶ added in v0.1.0
type CommitCommit struct { Author *CommitCommitAuthor `json:"author"` CommentCount int64 `json:"comment_count"` Committer *CommitCommitCommitter `json:"committer"` Message string `json:"message"` Tree CommitCommitTree `json:"tree"` Url string `json:"url"` Verification Verification `json:"verification,omitempty"` }
type CommitCommitAuthor ¶ added in v0.1.0
type CommitCommitCommitter ¶ added in v0.1.0
type CommitCommitTree ¶ added in v0.1.0
type CommitCommitter ¶ added in v0.1.0
type CommitCommitter struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type CommitComparison ¶
type CommitComparison struct { AheadBy int64 `json:"ahead_by"` // Commit BaseCommit Commit `json:"base_commit"` BehindBy int64 `json:"behind_by"` Commits []Commit `json:"commits"` DiffUrl string `json:"diff_url"` Files []DiffEntry `json:"files"` HtmlUrl string `json:"html_url"` // Commit MergeBaseCommit Commit `json:"merge_base_commit"` PatchUrl string `json:"patch_url"` PermalinkUrl string `json:"permalink_url"` Status string `json:"status"` TotalCommits int64 `json:"total_commits"` Url string `json:"url"` }
type CommitFilesItem ¶ added in v0.1.0
type CommitFilesItem struct { Additions int64 `json:"additions,omitempty"` BlobUrl string `json:"blob_url,omitempty"` Changes int64 `json:"changes,omitempty"` ContentsUrl string `json:"contents_url,omitempty"` Deletions int64 `json:"deletions,omitempty"` Filename string `json:"filename,omitempty"` Patch string `json:"patch,omitempty"` PreviousFilename string `json:"previous_filename,omitempty"` RawUrl string `json:"raw_url,omitempty"` Sha string `json:"sha,omitempty"` Status string `json:"status,omitempty"` }
type CommitParentsItem ¶ added in v0.1.0
type CommitSearchResultItem ¶
type CommitSearchResultItem struct { Author *CommitSearchResultItemAuthor `json:"author"` CommentsUrl string `json:"comments_url"` Commit CommitSearchResultItemCommit `json:"commit"` Committer *CommitSearchResultItemCommitter `json:"committer"` HtmlUrl string `json:"html_url"` NodeId string `json:"node_id"` Parents []CommitSearchResultItemParentsItem `json:"parents"` // Minimal Repository Repository MinimalRepository `json:"repository"` Score int64 `json:"score"` Sha string `json:"sha"` TextMatches SearchResultTextMatches `json:"text_matches,omitempty"` Url string `json:"url"` }
type CommitSearchResultItemAuthor ¶ added in v0.1.0
type CommitSearchResultItemAuthor struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type CommitSearchResultItemCommit ¶ added in v0.1.0
type CommitSearchResultItemCommit struct { Author CommitSearchResultItemCommitAuthor `json:"author"` CommentCount int64 `json:"comment_count"` Committer *CommitSearchResultItemCommitCommitter `json:"committer"` Message string `json:"message"` Tree CommitSearchResultItemCommitTree `json:"tree"` Url string `json:"url"` Verification Verification `json:"verification,omitempty"` }
type CommitSearchResultItemCommitAuthor ¶ added in v0.1.0
type CommitSearchResultItemCommitCommitter ¶ added in v0.1.0
type CommitSearchResultItemCommitTree ¶ added in v0.1.0
type CommitSearchResultItemCommitter ¶ added in v0.1.0
type CommitSearchResultItemParentsItem ¶ added in v0.1.0
type CommitStats ¶ added in v0.1.0
type CommunityHealthFile ¶ added in v0.5.0
type CommunityProfile ¶
type CommunityProfile struct { Description string `json:"description"` Documentation string `json:"documentation"` Files CommunityProfileFiles `json:"files"` HealthPercentage int64 `json:"health_percentage"` UpdatedAt string `json:"updated_at"` }
type CommunityProfileFiles ¶ added in v0.1.0
type CommunityProfileFiles struct { CodeOfConduct *CommunityProfileFilesCodeOfConduct `json:"code_of_conduct"` Contributing *CommunityProfileFilesContributing `json:"contributing"` IssueTemplate *CommunityProfileFilesIssueTemplate `json:"issue_template"` License *CommunityProfileFilesLicense `json:"license"` PullRequestTemplate *CommunityProfileFilesPullRequestTemplate `json:"pull_request_template"` Readme *CommunityProfileFilesReadme `json:"readme"` }
type CommunityProfileFilesCodeOfConduct ¶ added in v0.1.0
type CommunityProfileFilesContributing ¶ added in v0.1.0
type CommunityProfileFilesIssueTemplate ¶ added in v0.1.0
type CommunityProfileFilesLicense ¶ added in v0.1.0
type CommunityProfileFilesPullRequestTemplate ¶ added in v0.1.0
type CommunityProfileFilesReadme ¶ added in v0.1.0
type ContentDirectory ¶ added in v0.5.0
type ContentDirectory []struct { Links struct { Git string `json:"git"` Html string `json:"html"` Self string `json:"self"` } `json:"_links"` Content string `json:"content,omitempty"` DownloadUrl string `json:"download_url"` GitUrl string `json:"git_url"` HtmlUrl string `json:"html_url"` Name string `json:"name"` Path string `json:"path"` Sha string `json:"sha"` Size int64 `json:"size"` Type string `json:"type"` Url string `json:"url"` }
type ContentFile ¶
type ContentFile struct { Links ContentFileLinks `json:"_links"` Content string `json:"content"` DownloadUrl string `json:"download_url"` Encoding string `json:"encoding"` GitUrl string `json:"git_url"` HtmlUrl string `json:"html_url"` Name string `json:"name"` Path string `json:"path"` Sha string `json:"sha"` Size int64 `json:"size"` SubmoduleGitUrl string `json:"submodule_git_url,omitempty"` Target string `json:"target,omitempty"` Type string `json:"type"` Url string `json:"url"` }
type ContentFileLinks ¶ added in v0.1.0
type ContentSubmodule ¶ added in v0.5.0
type ContentSubmodule struct { Links ContentSubmoduleLinks `json:"_links"` DownloadUrl string `json:"download_url"` GitUrl string `json:"git_url"` HtmlUrl string `json:"html_url"` Name string `json:"name"` Path string `json:"path"` Sha string `json:"sha"` Size int64 `json:"size"` SubmoduleGitUrl string `json:"submodule_git_url"` Type string `json:"type"` Url string `json:"url"` }
type ContentSubmoduleLinks ¶ added in v0.5.0
type ContentSymlink ¶ added in v0.5.0
type ContentSymlink struct { Links ContentSymlinkLinks `json:"_links"` DownloadUrl string `json:"download_url"` GitUrl string `json:"git_url"` HtmlUrl string `json:"html_url"` Name string `json:"name"` Path string `json:"path"` Sha string `json:"sha"` Size int64 `json:"size"` Target string `json:"target"` Type string `json:"type"` Url string `json:"url"` }
type ContentSymlinkLinks ¶ added in v0.5.0
type ContentTraffic ¶
type ContentTree ¶ added in v0.5.0
type ContentTree struct { Links ContentTreeLinks `json:"_links"` DownloadUrl string `json:"download_url"` Entries []ContentTreeEntriesItem `json:"entries,omitempty"` GitUrl string `json:"git_url"` HtmlUrl string `json:"html_url"` Name string `json:"name"` Path string `json:"path"` Sha string `json:"sha"` Size int64 `json:"size"` Type string `json:"type"` Url string `json:"url"` }
type ContentTreeEntriesItem ¶ added in v0.5.0
type ContentTreeEntriesItem struct { Links ContentTreeEntriesItemLinks `json:"_links"` Content string `json:"content,omitempty"` DownloadUrl string `json:"download_url"` GitUrl string `json:"git_url"` HtmlUrl string `json:"html_url"` Name string `json:"name"` Path string `json:"path"` Sha string `json:"sha"` Size int64 `json:"size"` Type string `json:"type"` Url string `json:"url"` }
type ContentTreeEntriesItemLinks ¶ added in v0.5.0
type ContentTreeLinks ¶ added in v0.5.0
type Contributor ¶
type Contributor struct { AvatarUrl string `json:"avatar_url,omitempty"` Contributions int64 `json:"contributions"` Email string `json:"email,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type"` Url string `json:"url,omitempty"` }
type ContributorActivity ¶
type ContributorActivity struct { Author *ContributorActivityAuthor `json:"author"` Total int64 `json:"total"` Weeks []ContributorActivityWeeksItem `json:"weeks"` }
type ContributorActivityAuthor ¶ added in v0.1.0
type ContributorActivityAuthor struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type ContributorActivityWeeksItem ¶ added in v0.1.0
type CredentialAuthorization ¶
type CredentialAuthorization struct { // Date when the credential was last accessed. May be null if it was never accessed CredentialAccessedAt string `json:"credential_accessed_at,omitempty"` // Date when the credential was authorized for use. CredentialAuthorizedAt string `json:"credential_authorized_at"` // Unique identifier for the credential. CredentialId int64 `json:"credential_id"` // Human-readable description of the credential type. CredentialType string `json:"credential_type"` // Unique string to distinguish the credential. Only included in responses with credential_type of SSH Key. Fingerprint string `json:"fingerprint,omitempty"` // User login that owns the underlying credential. Login string `json:"login"` // List of oauth scopes the token has been granted. Scopes []string `json:"scopes,omitempty"` // Last eight characters of the credential. Only included in responses with credential_type of personal access token. TokenLastEight string `json:"token_last_eight,omitempty"` }
type Deployment ¶
type Deployment struct { CreatedAt string `json:"created_at"` Creator *DeploymentCreator `json:"creator"` Description string `json:"description"` // Name for the target deployment environment. Environment string `json:"environment"` // Unique identifier of the deployment Id int64 `json:"id"` NodeId string `json:"node_id"` OriginalEnvironment string `json:"original_environment,omitempty"` Payload DeploymentPayload `json:"payload"` PerformedViaGithubApp *DeploymentPerformedViaGithubApp `json:"performed_via_github_app,omitempty"` // Specifies if the given environment is one that end-users directly interact with. Default: false. ProductionEnvironment bool `json:"production_environment,omitempty"` // The ref to deploy. This can be a branch, tag, or sha. Ref string `json:"ref"` RepositoryUrl string `json:"repository_url"` Sha string `json:"sha"` StatusesUrl string `json:"statuses_url"` // Parameter to specify a task to execute Task string `json:"task"` // Specifies if the given environment is will no longer exist at some point in hte future. Default: false. TransientEnvironment bool `json:"transient_environment,omitempty"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type DeploymentCreator ¶ added in v0.1.0
type DeploymentCreator struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type DeploymentPayload ¶ added in v0.1.0
type DeploymentPayload interface{}
type DeploymentPerformedViaGithubApp ¶ added in v0.5.0
type DeploymentPerformedViaGithubApp struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` // The list of events for the GitHub app Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the GitHub app Id int64 `json:"id,omitempty"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner *IntegrationOwner `json:"owner,omitempty"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions,omitempty"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type DeploymentStatus ¶
type DeploymentStatus struct { CreatedAt string `json:"created_at"` Creator *DeploymentStatusCreator `json:"creator"` DeploymentUrl string `json:"deployment_url"` // A short description of the status. Description string `json:"description"` // The environment of the deployment that the status is for. Environment string `json:"environment,omitempty"` // The URL for accessing your environment. EnvironmentUrl string `json:"environment_url,omitempty"` Id int64 `json:"id"` // The URL to associate with this status. LogUrl string `json:"log_url,omitempty"` NodeId string `json:"node_id"` PerformedViaGithubApp *DeploymentStatusPerformedViaGithubApp `json:"performed_via_github_app,omitempty"` RepositoryUrl string `json:"repository_url"` // The state of the status. State string `json:"state"` // Deprecated: the URL to associate with this status. TargetUrl string `json:"target_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type DeploymentStatusCreator ¶ added in v0.1.0
type DeploymentStatusCreator struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type DeploymentStatusPerformedViaGithubApp ¶ added in v0.5.0
type DeploymentStatusPerformedViaGithubApp struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` // The list of events for the GitHub app Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the GitHub app Id int64 `json:"id,omitempty"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner *IntegrationOwner `json:"owner,omitempty"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions,omitempty"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type DiffEntry ¶
type DiffEntry struct { Additions int64 `json:"additions"` BlobUrl string `json:"blob_url"` Changes int64 `json:"changes"` ContentsUrl string `json:"contents_url"` Deletions int64 `json:"deletions"` Filename string `json:"filename"` Patch string `json:"patch,omitempty"` PreviousFilename string `json:"previous_filename,omitempty"` RawUrl string `json:"raw_url"` Sha string `json:"sha"` Status string `json:"status"` }
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
func (*Email) MarshalJSON ¶ added in v0.5.0
func (*Email) SetValue ¶ added in v0.5.0
func (c *Email) SetValue(value interface{})
SetValue sets Email's value. The type must be one of components.EmailAsObject or string.
func (*Email) UnmarshalJSON ¶ added in v0.5.0
type EmailAsObject ¶ added in v0.5.0
type Enterprise ¶ added in v0.5.0
type Enterprise struct { AvatarUrl string `json:"avatar_url"` CreatedAt string `json:"created_at"` // A short description of the enterprise. Description string `json:"description,omitempty"` HtmlUrl string `json:"html_url"` // Unique identifier of the enterprise Id int64 `json:"id"` // The name of the enterprise. Name string `json:"name"` NodeId string `json:"node_id"` // The slug url identifier for the enterprise. Slug string `json:"slug"` UpdatedAt string `json:"updated_at"` // The enterprise's website URL. WebsiteUrl string `json:"website_url,omitempty"` }
type EventPayload ¶ added in v0.5.0
type EventPayload struct { Action string `json:"action,omitempty"` // Comments provide a way for people to collaborate on an issue. Comment IssueComment `json:"comment,omitempty"` // Issue Simple Issue IssueSimple `json:"issue,omitempty"` Pages []EventPayloadPagesItem `json:"pages,omitempty"` }
type EventPayloadPagesItem ¶ added in v0.5.0
type Feed ¶
type Feed struct { Links FeedLinks `json:"_links"` CurrentUserActorUrl string `json:"current_user_actor_url,omitempty"` CurrentUserOrganizationUrl string `json:"current_user_organization_url,omitempty"` CurrentUserOrganizationUrls []string `json:"current_user_organization_urls,omitempty"` CurrentUserPublicUrl string `json:"current_user_public_url,omitempty"` CurrentUserUrl string `json:"current_user_url,omitempty"` SecurityAdvisoriesUrl string `json:"security_advisories_url,omitempty"` TimelineUrl string `json:"timeline_url"` UserUrl string `json:"user_url"` }
type FeedLinks ¶ added in v0.1.0
type FeedLinks struct { // Hypermedia Link with Type CurrentUser LinkWithType `json:"current_user,omitempty"` // Hypermedia Link with Type CurrentUserActor LinkWithType `json:"current_user_actor,omitempty"` // Hypermedia Link with Type CurrentUserOrganization LinkWithType `json:"current_user_organization,omitempty"` CurrentUserOrganizations []LinkWithType `json:"current_user_organizations,omitempty"` // Hypermedia Link with Type CurrentUserPublic LinkWithType `json:"current_user_public,omitempty"` // Hypermedia Link with Type SecurityAdvisories LinkWithType `json:"security_advisories,omitempty"` // Hypermedia Link with Type Timeline LinkWithType `json:"timeline"` // Hypermedia Link with Type User LinkWithType `json:"user"` }
type FileCommit ¶
type FileCommit struct { Commit FileCommitCommit `json:"commit,omitempty"` Content *FileCommitContent `json:"content,omitempty"` }
type FileCommitCommit ¶ added in v0.1.0
type FileCommitCommit struct { Author FileCommitCommitAuthor `json:"author,omitempty"` Committer FileCommitCommitCommitter `json:"committer,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Message string `json:"message,omitempty"` NodeId string `json:"node_id,omitempty"` Parents []FileCommitCommitParentsItem `json:"parents,omitempty"` Sha string `json:"sha,omitempty"` Tree FileCommitCommitTree `json:"tree,omitempty"` Url string `json:"url,omitempty"` Verification FileCommitCommitVerification `json:"verification,omitempty"` }
type FileCommitCommitAuthor ¶ added in v0.1.0
type FileCommitCommitCommitter ¶ added in v0.1.0
type FileCommitCommitParentsItem ¶ added in v0.1.0
type FileCommitCommitTree ¶ added in v0.1.0
type FileCommitCommitVerification ¶ added in v0.1.0
type FileCommitContent ¶ added in v0.1.0
type FileCommitContent struct { Links FileCommitContentLinks `json:"_links,omitempty"` DownloadUrl string `json:"download_url,omitempty"` GitUrl string `json:"git_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Name string `json:"name,omitempty"` Path string `json:"path,omitempty"` Sha string `json:"sha,omitempty"` Size int64 `json:"size,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type FileCommitContentLinks ¶ added in v0.1.0
type FullRepository ¶
type FullRepository struct { AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` // Whether anonymous git access is allowed. AnonymousAccessEnabled bool `json:"anonymous_access_enabled,omitempty"` ArchiveUrl string `json:"archive_url"` Archived bool `json:"archived"` AssigneesUrl string `json:"assignees_url"` BlobsUrl string `json:"blobs_url"` BranchesUrl string `json:"branches_url"` CloneUrl string `json:"clone_url"` CollaboratorsUrl string `json:"collaborators_url"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CompareUrl string `json:"compare_url"` ContentsUrl string `json:"contents_url"` ContributorsUrl string `json:"contributors_url"` CreatedAt string `json:"created_at"` DefaultBranch string `json:"default_branch"` DeleteBranchOnMerge bool `json:"delete_branch_on_merge,omitempty"` DeploymentsUrl string `json:"deployments_url"` Description string `json:"description"` // Returns whether or not this repository disabled. Disabled bool `json:"disabled"` DownloadsUrl string `json:"downloads_url"` EventsUrl string `json:"events_url"` Fork bool `json:"fork"` Forks int64 `json:"forks"` ForksCount int64 `json:"forks_count"` ForksUrl string `json:"forks_url"` FullName string `json:"full_name"` GitCommitsUrl string `json:"git_commits_url"` GitRefsUrl string `json:"git_refs_url"` GitTagsUrl string `json:"git_tags_url"` GitUrl string `json:"git_url"` HasDownloads bool `json:"has_downloads"` HasIssues bool `json:"has_issues"` HasPages bool `json:"has_pages"` HasProjects bool `json:"has_projects"` HasWiki bool `json:"has_wiki"` Homepage string `json:"homepage"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IsTemplate bool `json:"is_template,omitempty"` IssueCommentUrl string `json:"issue_comment_url"` IssueEventsUrl string `json:"issue_events_url"` IssuesUrl string `json:"issues_url"` KeysUrl string `json:"keys_url"` LabelsUrl string `json:"labels_url"` Language string `json:"language"` LanguagesUrl string `json:"languages_url"` License *FullRepositoryLicense `json:"license"` MasterBranch string `json:"master_branch,omitempty"` MergesUrl string `json:"merges_url"` MilestonesUrl string `json:"milestones_url"` MirrorUrl string `json:"mirror_url"` Name string `json:"name"` NetworkCount int64 `json:"network_count"` NodeId string `json:"node_id"` NotificationsUrl string `json:"notifications_url"` OpenIssues int64 `json:"open_issues"` OpenIssuesCount int64 `json:"open_issues_count"` Organization *FullRepositoryOrganization `json:"organization,omitempty"` Owner *FullRepositoryOwner `json:"owner"` // A git repository Parent Repository `json:"parent,omitempty"` Permissions FullRepositoryPermissions `json:"permissions,omitempty"` Private bool `json:"private"` PullsUrl string `json:"pulls_url"` PushedAt string `json:"pushed_at"` ReleasesUrl string `json:"releases_url"` Size int64 `json:"size"` // A git repository Source Repository `json:"source,omitempty"` SshUrl string `json:"ssh_url"` StargazersCount int64 `json:"stargazers_count"` StargazersUrl string `json:"stargazers_url"` StatusesUrl string `json:"statuses_url"` SubscribersCount int64 `json:"subscribers_count"` SubscribersUrl string `json:"subscribers_url"` SubscriptionUrl string `json:"subscription_url"` SvnUrl string `json:"svn_url"` TagsUrl string `json:"tags_url"` TeamsUrl string `json:"teams_url"` TempCloneToken string `json:"temp_clone_token,omitempty"` TemplateRepository *FullRepositoryTemplateRepository `json:"template_repository,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` // The repository visibility: public, private, or internal. Visibility string `json:"visibility,omitempty"` Watchers int64 `json:"watchers"` WatchersCount int64 `json:"watchers_count"` }
type FullRepositoryLicense ¶ added in v0.1.0
type FullRepositoryOrganization ¶ added in v0.1.0
type FullRepositoryOrganization struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type FullRepositoryOwner ¶ added in v0.1.0
type FullRepositoryOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type FullRepositoryPermissions ¶ added in v0.1.0
type FullRepositoryTemplateRepository ¶ added in v0.5.0
type FullRepositoryTemplateRepository struct { // Whether to allow merge commits for pull requests. AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` // Whether to allow rebase merges for pull requests. AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` // Whether to allow squash merges for pull requests. AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` ArchiveUrl string `json:"archive_url,omitempty"` // Whether the repository is archived. Archived bool `json:"archived,omitempty"` AssigneesUrl string `json:"assignees_url,omitempty"` BlobsUrl string `json:"blobs_url,omitempty"` BranchesUrl string `json:"branches_url,omitempty"` CloneUrl string `json:"clone_url,omitempty"` CollaboratorsUrl string `json:"collaborators_url,omitempty"` CommentsUrl string `json:"comments_url,omitempty"` CommitsUrl string `json:"commits_url,omitempty"` CompareUrl string `json:"compare_url,omitempty"` ContentsUrl string `json:"contents_url,omitempty"` ContributorsUrl string `json:"contributors_url,omitempty"` CreatedAt string `json:"created_at,omitempty"` // The default branch of the repository. DefaultBranch string `json:"default_branch,omitempty"` // Whether to delete head branches when pull requests are merged DeleteBranchOnMerge bool `json:"delete_branch_on_merge,omitempty"` DeploymentsUrl string `json:"deployments_url,omitempty"` Description string `json:"description,omitempty"` // Returns whether or not this repository disabled. Disabled bool `json:"disabled,omitempty"` DownloadsUrl string `json:"downloads_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` Fork bool `json:"fork,omitempty"` Forks int64 `json:"forks,omitempty"` ForksCount int64 `json:"forks_count,omitempty"` ForksUrl string `json:"forks_url,omitempty"` FullName string `json:"full_name,omitempty"` GitCommitsUrl string `json:"git_commits_url,omitempty"` GitRefsUrl string `json:"git_refs_url,omitempty"` GitTagsUrl string `json:"git_tags_url,omitempty"` GitUrl string `json:"git_url,omitempty"` // Whether downloads are enabled. HasDownloads bool `json:"has_downloads,omitempty"` // Whether issues are enabled. HasIssues bool `json:"has_issues,omitempty"` HasPages bool `json:"has_pages,omitempty"` // Whether projects are enabled. HasProjects bool `json:"has_projects,omitempty"` // Whether the wiki is enabled. HasWiki bool `json:"has_wiki,omitempty"` Homepage string `json:"homepage,omitempty"` HooksUrl string `json:"hooks_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the repository Id int64 `json:"id,omitempty"` // Whether this repository acts as a template that can be used to generate new repositories. IsTemplate bool `json:"is_template,omitempty"` IssueCommentUrl string `json:"issue_comment_url,omitempty"` IssueEventsUrl string `json:"issue_events_url,omitempty"` IssuesUrl string `json:"issues_url,omitempty"` KeysUrl string `json:"keys_url,omitempty"` LabelsUrl string `json:"labels_url,omitempty"` Language string `json:"language,omitempty"` LanguagesUrl string `json:"languages_url,omitempty"` License *RepositoryLicense `json:"license,omitempty"` MasterBranch string `json:"master_branch,omitempty"` MergesUrl string `json:"merges_url,omitempty"` MilestonesUrl string `json:"milestones_url,omitempty"` MirrorUrl string `json:"mirror_url,omitempty"` // The name of the repository. Name string `json:"name,omitempty"` NetworkCount int64 `json:"network_count,omitempty"` NodeId string `json:"node_id,omitempty"` NotificationsUrl string `json:"notifications_url,omitempty"` OpenIssues int64 `json:"open_issues,omitempty"` OpenIssuesCount int64 `json:"open_issues_count,omitempty"` Owner *RepositoryOwner `json:"owner,omitempty"` Permissions RepositoryPermissions `json:"permissions,omitempty"` // Whether the repository is private or public. Private bool `json:"private,omitempty"` PullsUrl string `json:"pulls_url,omitempty"` PushedAt string `json:"pushed_at,omitempty"` ReleasesUrl string `json:"releases_url,omitempty"` Size int64 `json:"size,omitempty"` SshUrl string `json:"ssh_url,omitempty"` StargazersCount int64 `json:"stargazers_count,omitempty"` StargazersUrl string `json:"stargazers_url,omitempty"` StarredAt string `json:"starred_at,omitempty"` StatusesUrl string `json:"statuses_url,omitempty"` SubscribersCount int64 `json:"subscribers_count,omitempty"` SubscribersUrl string `json:"subscribers_url,omitempty"` SubscriptionUrl string `json:"subscription_url,omitempty"` SvnUrl string `json:"svn_url,omitempty"` TagsUrl string `json:"tags_url,omitempty"` TeamsUrl string `json:"teams_url,omitempty"` TempCloneToken string `json:"temp_clone_token,omitempty"` TemplateRepository *RepositoryTemplateRepository `json:"template_repository,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` // The repository visibility: public, private, or internal. Visibility string `json:"visibility,omitempty"` Watchers int64 `json:"watchers,omitempty"` WatchersCount int64 `json:"watchers_count,omitempty"` }
type GistComment ¶
type GistComment struct { AuthorAssociation string `json:"author_association"` // The comment text. Body string `json:"body"` CreatedAt string `json:"created_at"` Id int64 `json:"id"` NodeId string `json:"node_id"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *GistCommentUser `json:"user"` }
type GistCommentUser ¶ added in v0.1.0
type GistCommentUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type GistCommit ¶
type GistCommit struct { ChangeStatus GistCommitChangeStatus `json:"change_status"` CommittedAt string `json:"committed_at"` Url string `json:"url"` User *GistCommitUser `json:"user"` Version string `json:"version"` }
type GistCommitChangeStatus ¶ added in v0.1.0
type GistCommitUser ¶ added in v0.1.0
type GistCommitUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type GistFull ¶ added in v0.5.0
type GistFull struct { Comments int64 `json:"comments,omitempty"` CommentsUrl string `json:"comments_url,omitempty"` CommitsUrl string `json:"commits_url,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` Files map[string]struct { Content string `json:"content,omitempty"` Filename string `json:"filename,omitempty"` Language string `json:"language,omitempty"` RawUrl string `json:"raw_url,omitempty"` Size int64 `json:"size,omitempty"` Truncated bool `json:"truncated,omitempty"` Type string `json:"type,omitempty"` } `json:"files,omitempty"` ForkOf *struct { Comments int64 `json:"comments,omitempty"` CommentsUrl string `json:"comments_url,omitempty"` CommitsUrl string `json:"commits_url,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` Files map[string]struct { Content string `json:"content,omitempty"` Filename string `json:"filename,omitempty"` Language string `json:"language,omitempty"` RawUrl string `json:"raw_url,omitempty"` Size int64 `json:"size,omitempty"` Truncated bool `json:"truncated,omitempty"` Type string `json:"type,omitempty"` } `json:"files,omitempty"` ForksUrl string `json:"forks_url,omitempty"` GitPullUrl string `json:"git_pull_url,omitempty"` GitPushUrl string `json:"git_push_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id string `json:"id,omitempty"` NodeId string `json:"node_id,omitempty"` // Simple User Owner *SimpleUser `json:"owner,omitempty"` Public bool `json:"public,omitempty"` Truncated bool `json:"truncated,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` User string `json:"user,omitempty"` } `json:"fork_of,omitempty"` Forks []struct { CreatedAt string `json:"created_at,omitempty"` Id string `json:"id,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` User struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` } `json:"user,omitempty"` } `json:"forks,omitempty"` ForksUrl string `json:"forks_url,omitempty"` GitPullUrl string `json:"git_pull_url,omitempty"` GitPushUrl string `json:"git_push_url,omitempty"` History []struct { ChangeStatus struct { Additions int64 `json:"additions,omitempty"` Deletions int64 `json:"deletions,omitempty"` Total int64 `json:"total,omitempty"` } `json:"change_status,omitempty"` CommittedAt string `json:"committed_at,omitempty"` Url string `json:"url,omitempty"` User *struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` } `json:"user,omitempty"` Version string `json:"version,omitempty"` } `json:"history,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id string `json:"id,omitempty"` NodeId string `json:"node_id,omitempty"` // Simple User Owner *SimpleUser `json:"owner,omitempty"` Public bool `json:"public,omitempty"` Truncated bool `json:"truncated,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` User string `json:"user,omitempty"` }
type GistSimple ¶ added in v0.5.0
type GistSimple struct { Comments int64 `json:"comments,omitempty"` CommentsUrl string `json:"comments_url,omitempty"` CommitsUrl string `json:"commits_url,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` Files map[string]struct { Content string `json:"content,omitempty"` Filename string `json:"filename,omitempty"` Language string `json:"language,omitempty"` RawUrl string `json:"raw_url,omitempty"` Size int64 `json:"size,omitempty"` Truncated bool `json:"truncated,omitempty"` Type string `json:"type,omitempty"` } `json:"files,omitempty"` ForksUrl string `json:"forks_url,omitempty"` GitPullUrl string `json:"git_pull_url,omitempty"` GitPushUrl string `json:"git_push_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id string `json:"id,omitempty"` NodeId string `json:"node_id,omitempty"` // Simple User Owner *SimpleUser `json:"owner,omitempty"` Public bool `json:"public,omitempty"` Truncated bool `json:"truncated,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` User string `json:"user,omitempty"` }
type GitCommit ¶
type GitCommit struct { // Identifying information for the git-user Author GitCommitAuthor `json:"author,omitempty"` // Identifying information for the git-user Committer GitCommitCommitter `json:"committer,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Message describing the purpose of the commit Message string `json:"message,omitempty"` NodeId string `json:"node_id,omitempty"` Parents []GitCommitParentsItem `json:"parents,omitempty"` // SHA for the commit Sha string `json:"sha,omitempty"` Tree GitCommitTree `json:"tree,omitempty"` Url string `json:"url,omitempty"` Verification GitCommitVerification `json:"verification,omitempty"` }
type GitCommitAuthor ¶ added in v0.1.0
type GitCommitCommitter ¶ added in v0.1.0
type GitCommitParentsItem ¶ added in v0.1.0
type GitCommitTree ¶ added in v0.1.0
type GitCommitVerification ¶ added in v0.1.0
type GitRef ¶
type GitRef struct { NodeId string `json:"node_id,omitempty"` Object GitRefObject `json:"object,omitempty"` Ref string `json:"ref,omitempty"` Url string `json:"url,omitempty"` }
type GitRefObject ¶ added in v0.1.0
type GitTag ¶
type GitTag struct { // Message describing the purpose of the tag Message string `json:"message"` NodeId string `json:"node_id"` Object GitTagObject `json:"object"` Sha string `json:"sha"` // Name of the tag Tag string `json:"tag"` Tagger GitTagTagger `json:"tagger"` // URL for the tag Url string `json:"url"` Verification Verification `json:"verification,omitempty"` }
type GitTagObject ¶ added in v0.1.0
type GitTagTagger ¶ added in v0.1.0
type GitTree ¶
type GitTree struct { Sha string `json:"sha"` // Objects specifying a tree structure Tree []GitTreeTreeItem `json:"tree"` Truncated bool `json:"truncated"` Url string `json:"url"` }
type GitTreeTreeItem ¶ added in v0.1.0
type GitignoreTemplate ¶
type GpgKey ¶
type GpgKey struct { CanCertify bool `json:"can_certify"` CanEncryptComms bool `json:"can_encrypt_comms"` CanEncryptStorage bool `json:"can_encrypt_storage"` CanSign bool `json:"can_sign"` CreatedAt string `json:"created_at"` Emails []GpgKeyEmailsItem `json:"emails"` ExpiresAt string `json:"expires_at"` Id int64 `json:"id"` KeyId string `json:"key_id"` PrimaryKeyId int64 `json:"primary_key_id"` PublicKey string `json:"public_key"` RawKey string `json:"raw_key"` Subkeys []GpgKeySubkeysItem `json:"subkeys"` }
type GpgKeyEmailsItem ¶ added in v0.1.0
type GpgKeySubkeysItem ¶ added in v0.1.0
type GpgKeySubkeysItem struct { CanCertify bool `json:"can_certify,omitempty"` CanEncryptComms bool `json:"can_encrypt_comms,omitempty"` CanEncryptStorage bool `json:"can_encrypt_storage,omitempty"` CanSign bool `json:"can_sign,omitempty"` CreatedAt string `json:"created_at,omitempty"` Emails []GpgKeySubkeysItemEmailsItem `json:"emails,omitempty"` ExpiresAt string `json:"expires_at,omitempty"` Id int64 `json:"id,omitempty"` KeyId string `json:"key_id,omitempty"` PrimaryKeyId int64 `json:"primary_key_id,omitempty"` PublicKey string `json:"public_key,omitempty"` RawKey string `json:"raw_key,omitempty"` Subkeys []GpgKeySubkeysItemSubkeysItem `json:"subkeys,omitempty"` }
type GpgKeySubkeysItemEmailsItem ¶ added in v0.5.0
type GpgKeySubkeysItemEmailsItem interface{}
type GpgKeySubkeysItemSubkeysItem ¶ added in v0.5.0
type GpgKeySubkeysItemSubkeysItem interface{}
type GroupMapping ¶
type GroupMapping struct { // a description of the group GroupDescription string `json:"group_description,omitempty"` // The ID of the group GroupId string `json:"group_id,omitempty"` // The name of the group GroupName string `json:"group_name,omitempty"` // Array of groups to be mapped to this team Groups []GroupMappingGroupsItem `json:"groups,omitempty"` // synchronization status for this group mapping Status string `json:"status,omitempty"` // the time of the last sync for this group-mapping SyncedAt string `json:"synced_at,omitempty"` }
type GroupMappingGroupsItem ¶ added in v0.5.0
type Hook ¶
type Hook struct { // Determines whether the hook is actually triggered on pushes. Active bool `json:"active"` Config HookConfig `json:"config"` CreatedAt string `json:"created_at"` // Determines what events the hook is triggered for. Default: ['push']. Events []string `json:"events"` // Unique identifier of the webhook. Id int64 `json:"id"` LastResponse HookResponse `json:"last_response"` // The name of a valid service, use 'web' for a webhook. Name string `json:"name"` PingUrl string `json:"ping_url"` TestUrl string `json:"test_url"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type HookConfig ¶ added in v0.1.0
type HookConfig struct { ContentType string `json:"content_type,omitempty"` Digest string `json:"digest,omitempty"` Email string `json:"email,omitempty"` InsecureSsl string `json:"insecure_ssl,omitempty"` Password string `json:"password,omitempty"` Room string `json:"room,omitempty"` Secret string `json:"secret,omitempty"` Subdomain string `json:"subdomain,omitempty"` Token string `json:"token,omitempty"` Url string `json:"url,omitempty"` }
type HookResponse ¶ added in v0.5.0
type Hovercard ¶
type Hovercard struct {
Contexts []HovercardContextsItem `json:"contexts"`
}
type HovercardContextsItem ¶ added in v0.1.0
type Import ¶
type Import struct { AuthorsCount int64 `json:"authors_count,omitempty"` AuthorsUrl string `json:"authors_url"` CommitCount int64 `json:"commit_count,omitempty"` ErrorMessage string `json:"error_message,omitempty"` FailedStep string `json:"failed_step,omitempty"` HasLargeFiles bool `json:"has_large_files,omitempty"` HtmlUrl string `json:"html_url"` ImportPercent int64 `json:"import_percent,omitempty"` LargeFilesCount int64 `json:"large_files_count,omitempty"` LargeFilesSize int64 `json:"large_files_size,omitempty"` Message string `json:"message,omitempty"` ProjectChoices []ImportProjectChoicesItem `json:"project_choices,omitempty"` PushPercent int64 `json:"push_percent,omitempty"` RepositoryUrl string `json:"repository_url"` Status string `json:"status"` StatusText string `json:"status_text,omitempty"` SvcRoot string `json:"svc_root,omitempty"` SvnRoot string `json:"svn_root,omitempty"` TfvcProject string `json:"tfvc_project,omitempty"` Url string `json:"url"` UseLfs string `json:"use_lfs,omitempty"` Vcs string `json:"vcs"` // The URL of the originating repository. VcsUrl string `json:"vcs_url"` }
type ImportProjectChoicesItem ¶ added in v0.5.0
type Installation ¶
type Installation struct { AccessTokensUrl string `json:"access_tokens_url"` Account InstallationAccount `json:"account"` AppId int64 `json:"app_id"` AppSlug string `json:"app_slug"` ContactEmail string `json:"contact_email,omitempty"` CreatedAt string `json:"created_at"` Events []string `json:"events"` HtmlUrl string `json:"html_url"` // The ID of the installation. Id int64 `json:"id"` Permissions InstallationPermissions `json:"permissions"` RepositoriesUrl string `json:"repositories_url"` // Describe whether all repositories have been selected or there's a selection involved RepositorySelection string `json:"repository_selection"` SingleFileName string `json:"single_file_name"` SuspendedAt string `json:"suspended_at,omitempty"` SuspendedBy *InstallationSuspendedBy `json:"suspended_by,omitempty"` // The ID of the user or organization this token is being scoped to. TargetId int64 `json:"target_id"` TargetType string `json:"target_type"` UpdatedAt string `json:"updated_at"` }
type InstallationAccount ¶ added in v0.1.0
type InstallationAccount interface{}
type InstallationPermissions ¶ added in v0.1.0
type InstallationPermissions struct { Checks string `json:"checks,omitempty"` Contents string `json:"contents,omitempty"` Deployments string `json:"deployments,omitempty"` Issues string `json:"issues,omitempty"` Metadata string `json:"metadata,omitempty"` OrganizationAdministration string `json:"organization_administration,omitempty"` PullRequests string `json:"pull_requests,omitempty"` Statuses string `json:"statuses,omitempty"` }
type InstallationSuspendedBy ¶ added in v0.5.0
type InstallationSuspendedBy struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type InstallationToken ¶
type InstallationToken struct { ExpiresAt string `json:"expires_at,omitempty"` Permissions InstallationTokenPermissions `json:"permissions,omitempty"` Repositories []Repository `json:"repositories,omitempty"` RepositorySelection string `json:"repository_selection,omitempty"` SingleFile string `json:"single_file,omitempty"` Token string `json:"token,omitempty"` }
type InstallationTokenPermissions ¶ added in v0.1.0
type Integration ¶
type Integration struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at"` Description string `json:"description"` // The list of events for the GitHub app Events []string `json:"events"` ExternalUrl string `json:"external_url"` HtmlUrl string `json:"html_url"` // Unique identifier of the GitHub app Id int64 `json:"id"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name"` NodeId string `json:"node_id"` Owner *IntegrationOwner `json:"owner"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type IntegrationOwner ¶ added in v0.1.0
type IntegrationOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type InteractionLimit ¶
type Issue ¶
type Issue struct { ActiveLockReason string `json:"active_lock_reason,omitempty"` Assignee *IssueAssignee `json:"assignee"` Assignees []SimpleUser `json:"assignees,omitempty"` AuthorAssociation string `json:"author_association"` // Contents of the issue Body string `json:"body,omitempty"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` ClosedAt string `json:"closed_at"` ClosedBy *IssueClosedBy `json:"closed_by,omitempty"` Comments int64 `json:"comments"` CommentsUrl string `json:"comments_url"` CreatedAt string `json:"created_at"` EventsUrl string `json:"events_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` /* Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository */ Labels []IssueLabelsItem `json:"labels"` LabelsUrl string `json:"labels_url"` Locked bool `json:"locked"` Milestone *IssueMilestone `json:"milestone"` NodeId string `json:"node_id"` // Number uniquely identifying the issue within its repository Number int64 `json:"number"` PerformedViaGithubApp *IssuePerformedViaGithubApp `json:"performed_via_github_app,omitempty"` PullRequest IssuePullRequest `json:"pull_request,omitempty"` Reactions ReactionRollup `json:"reactions,omitempty"` // A git repository Repository Repository `json:"repository,omitempty"` RepositoryUrl string `json:"repository_url"` // State of the issue; either 'open' or 'closed' State string `json:"state"` TimelineUrl string `json:"timeline_url,omitempty"` // Title of the issue Title string `json:"title"` UpdatedAt string `json:"updated_at"` // URL for the issue Url string `json:"url"` User *IssueUser `json:"user"` }
type IssueAssignee ¶ added in v0.1.0
type IssueAssignee struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueClosedBy ¶ added in v0.1.0
type IssueClosedBy struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueComment ¶
type IssueComment struct { AuthorAssociation string `json:"author_association"` // Contents of the issue comment Body string `json:"body,omitempty"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` CreatedAt string `json:"created_at"` HtmlUrl string `json:"html_url"` // Unique identifier of the issue comment Id int64 `json:"id"` IssueUrl string `json:"issue_url"` NodeId string `json:"node_id"` PerformedViaGithubApp *IssueCommentPerformedViaGithubApp `json:"performed_via_github_app,omitempty"` Reactions ReactionRollup `json:"reactions,omitempty"` UpdatedAt string `json:"updated_at"` // URL for the issue comment Url string `json:"url"` User *IssueCommentUser `json:"user"` }
type IssueCommentPerformedViaGithubApp ¶ added in v0.5.0
type IssueCommentPerformedViaGithubApp struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` // The list of events for the GitHub app Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the GitHub app Id int64 `json:"id,omitempty"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner *IntegrationOwner `json:"owner,omitempty"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions,omitempty"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type IssueCommentUser ¶ added in v0.1.0
type IssueCommentUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueEvent ¶
type IssueEvent struct { Actor *IssueEventActor `json:"actor"` Assignee *IssueEventAssignee `json:"assignee,omitempty"` Assigner *IssueEventAssigner `json:"assigner,omitempty"` AuthorAssociation string `json:"author_association,omitempty"` CommitId string `json:"commit_id"` CommitUrl string `json:"commit_url"` CreatedAt string `json:"created_at"` DismissedReview IssueEventDismissedReview `json:"dismissed_review,omitempty"` Event string `json:"event"` Id int64 `json:"id"` // Issue Simple Issue IssueSimple `json:"issue,omitempty"` // Issue Event Label Label IssueEventLabel `json:"label,omitempty"` LockReason string `json:"lock_reason,omitempty"` // Issue Event Milestone Milestone IssueEventMilestone `json:"milestone,omitempty"` NodeId string `json:"node_id"` // Issue Event Project Card ProjectCard IssueEventProjectCard `json:"project_card,omitempty"` // Issue Event Rename Rename IssueEventRename `json:"rename,omitempty"` RequestedReviewer *IssueEventRequestedReviewer `json:"requested_reviewer,omitempty"` // Groups of organization members that gives permissions on specified repositories. RequestedTeam Team `json:"requested_team,omitempty"` ReviewRequester *IssueEventReviewRequester `json:"review_requester,omitempty"` Url string `json:"url"` }
type IssueEventActor ¶ added in v0.1.0
type IssueEventActor struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueEventAssignee ¶ added in v0.5.0
type IssueEventAssignee struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueEventAssigner ¶ added in v0.5.0
type IssueEventAssigner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueEventDismissedReview ¶ added in v0.5.0
type IssueEventForIssue ¶
type IssueEventForIssue struct { // Simple User Actor *SimpleUser `json:"actor,omitempty"` AuthorAssociation string `json:"author_association,omitempty"` Body string `json:"body,omitempty"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` CommitId string `json:"commit_id,omitempty"` CommitUrl string `json:"commit_url,omitempty"` CreatedAt string `json:"created_at,omitempty"` Event string `json:"event,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` IssueUrl string `json:"issue_url,omitempty"` LockReason string `json:"lock_reason,omitempty"` Message string `json:"message,omitempty"` NodeId string `json:"node_id,omitempty"` PullRequestUrl string `json:"pull_request_url,omitempty"` Sha string `json:"sha,omitempty"` State string `json:"state,omitempty"` SubmittedAt string `json:"submitted_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type IssueEventLabel ¶ added in v0.5.0
type IssueEventMilestone ¶ added in v0.5.0
type IssueEventMilestone struct {
Title string `json:"title"`
}
type IssueEventProjectCard ¶ added in v0.5.0
type IssueEventRename ¶ added in v0.5.0
type IssueEventRequestedReviewer ¶ added in v0.5.0
type IssueEventRequestedReviewer struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueEventReviewRequester ¶ added in v0.5.0
type IssueEventReviewRequester struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueLabelsItem ¶ added in v0.1.0
type IssueLabelsItem struct {
// contains filtered or unexported fields
}
func (*IssueLabelsItem) MarshalJSON ¶ added in v0.5.0
func (c *IssueLabelsItem) MarshalJSON() ([]byte, error)
func (*IssueLabelsItem) SetValue ¶ added in v0.5.0
func (c *IssueLabelsItem) SetValue(value interface{})
SetValue sets IssueLabelsItem's value. The type must be one of string or components.IssueLabelsItemAsObject.
func (*IssueLabelsItem) UnmarshalJSON ¶ added in v0.5.0
func (c *IssueLabelsItem) UnmarshalJSON(data []byte) error
func (*IssueLabelsItem) Value ¶ added in v0.5.0
func (c *IssueLabelsItem) Value() interface{}
Value returns IssueLabelsItem's value. The type will be one of string or components.IssueLabelsItemAsObject.
type IssueLabelsItemAsObject ¶ added in v0.5.0
type IssueLabelsItemAsObject struct { Color string `json:"color,omitempty"` Default bool `json:"default,omitempty"` Description string `json:"description,omitempty"` Id int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Url string `json:"url,omitempty"` }
type IssueMilestone ¶ added in v0.1.0
type IssueMilestone struct { ClosedAt string `json:"closed_at,omitempty"` ClosedIssues int64 `json:"closed_issues,omitempty"` CreatedAt string `json:"created_at,omitempty"` Creator *MilestoneCreator `json:"creator,omitempty"` Description string `json:"description,omitempty"` DueOn string `json:"due_on,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` LabelsUrl string `json:"labels_url,omitempty"` NodeId string `json:"node_id,omitempty"` // The number of the milestone. Number int64 `json:"number,omitempty"` OpenIssues int64 `json:"open_issues,omitempty"` // The state of the milestone. State string `json:"state,omitempty"` // The title of the milestone. Title string `json:"title,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type IssuePerformedViaGithubApp ¶ added in v0.5.0
type IssuePerformedViaGithubApp struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` // The list of events for the GitHub app Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the GitHub app Id int64 `json:"id,omitempty"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner *IntegrationOwner `json:"owner,omitempty"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions,omitempty"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type IssuePullRequest ¶ added in v0.1.0
type IssueSearchResultItem ¶
type IssueSearchResultItem struct { ActiveLockReason string `json:"active_lock_reason,omitempty"` Assignee *IssueSearchResultItemAssignee `json:"assignee"` Assignees []SimpleUser `json:"assignees,omitempty"` AuthorAssociation string `json:"author_association"` Body string `json:"body,omitempty"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` ClosedAt string `json:"closed_at"` Comments int64 `json:"comments"` CommentsUrl string `json:"comments_url"` CreatedAt string `json:"created_at"` Draft bool `json:"draft,omitempty"` EventsUrl string `json:"events_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Labels []IssueSearchResultItemLabelsItem `json:"labels"` LabelsUrl string `json:"labels_url"` Locked bool `json:"locked"` Milestone *IssueSearchResultItemMilestone `json:"milestone"` NodeId string `json:"node_id"` Number int64 `json:"number"` PerformedViaGithubApp *IssueSearchResultItemPerformedViaGithubApp `json:"performed_via_github_app,omitempty"` PullRequest IssueSearchResultItemPullRequest `json:"pull_request,omitempty"` // A git repository Repository Repository `json:"repository,omitempty"` RepositoryUrl string `json:"repository_url"` Score int64 `json:"score"` State string `json:"state"` TextMatches SearchResultTextMatches `json:"text_matches,omitempty"` TimelineUrl string `json:"timeline_url,omitempty"` Title string `json:"title"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *IssueSearchResultItemUser `json:"user"` }
type IssueSearchResultItemAssignee ¶ added in v0.5.0
type IssueSearchResultItemAssignee struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueSearchResultItemLabelsItem ¶ added in v0.1.0
type IssueSearchResultItemLabelsItem struct { Color string `json:"color,omitempty"` Default bool `json:"default,omitempty"` Description string `json:"description,omitempty"` Id int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Url string `json:"url,omitempty"` }
type IssueSearchResultItemMilestone ¶ added in v0.5.0
type IssueSearchResultItemMilestone struct { ClosedAt string `json:"closed_at,omitempty"` ClosedIssues int64 `json:"closed_issues,omitempty"` CreatedAt string `json:"created_at,omitempty"` Creator *MilestoneCreator `json:"creator,omitempty"` Description string `json:"description,omitempty"` DueOn string `json:"due_on,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` LabelsUrl string `json:"labels_url,omitempty"` NodeId string `json:"node_id,omitempty"` // The number of the milestone. Number int64 `json:"number,omitempty"` OpenIssues int64 `json:"open_issues,omitempty"` // The state of the milestone. State string `json:"state,omitempty"` // The title of the milestone. Title string `json:"title,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type IssueSearchResultItemPerformedViaGithubApp ¶ added in v0.5.0
type IssueSearchResultItemPerformedViaGithubApp struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` // The list of events for the GitHub app Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the GitHub app Id int64 `json:"id,omitempty"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner *IntegrationOwner `json:"owner,omitempty"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions,omitempty"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type IssueSearchResultItemPullRequest ¶ added in v0.1.0
type IssueSearchResultItemUser ¶ added in v0.1.0
type IssueSearchResultItemUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueSimple ¶
type IssueSimple struct { ActiveLockReason string `json:"active_lock_reason,omitempty"` Assignee *IssueSimpleAssignee `json:"assignee"` Assignees []SimpleUser `json:"assignees,omitempty"` AuthorAssociation string `json:"author_association"` Body string `json:"body,omitempty"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` ClosedAt string `json:"closed_at"` Comments int64 `json:"comments"` CommentsUrl string `json:"comments_url"` CreatedAt string `json:"created_at"` EventsUrl string `json:"events_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Labels []IssueSimpleLabelsItem `json:"labels"` LabelsUrl string `json:"labels_url"` Locked bool `json:"locked"` Milestone *IssueSimpleMilestone `json:"milestone"` NodeId string `json:"node_id"` Number int64 `json:"number"` PerformedViaGithubApp *IssueSimplePerformedViaGithubApp `json:"performed_via_github_app,omitempty"` PullRequest IssueSimplePullRequest `json:"pull_request,omitempty"` // A git repository Repository Repository `json:"repository,omitempty"` RepositoryUrl string `json:"repository_url"` State string `json:"state"` TimelineUrl string `json:"timeline_url,omitempty"` Title string `json:"title"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *IssueSimpleUser `json:"user"` }
type IssueSimpleAssignee ¶ added in v0.1.0
type IssueSimpleAssignee struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueSimpleLabelsItem ¶ added in v0.1.0
type IssueSimpleLabelsItem struct { Color string `json:"color,omitempty"` Default bool `json:"default,omitempty"` Description string `json:"description,omitempty"` Id int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Url string `json:"url,omitempty"` }
type IssueSimpleMilestone ¶ added in v0.1.0
type IssueSimpleMilestone struct { ClosedAt string `json:"closed_at,omitempty"` ClosedIssues int64 `json:"closed_issues,omitempty"` CreatedAt string `json:"created_at,omitempty"` Creator *MilestoneCreator `json:"creator,omitempty"` Description string `json:"description,omitempty"` DueOn string `json:"due_on,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` LabelsUrl string `json:"labels_url,omitempty"` NodeId string `json:"node_id,omitempty"` // The number of the milestone. Number int64 `json:"number,omitempty"` OpenIssues int64 `json:"open_issues,omitempty"` // The state of the milestone. State string `json:"state,omitempty"` // The title of the milestone. Title string `json:"title,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type IssueSimplePerformedViaGithubApp ¶ added in v0.5.0
type IssueSimplePerformedViaGithubApp struct { ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` CreatedAt string `json:"created_at,omitempty"` Description string `json:"description,omitempty"` // The list of events for the GitHub app Events []string `json:"events,omitempty"` ExternalUrl string `json:"external_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the GitHub app Id int64 `json:"id,omitempty"` // The number of installations associated with the GitHub app InstallationsCount int64 `json:"installations_count,omitempty"` // The name of the GitHub app Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Owner *IntegrationOwner `json:"owner,omitempty"` Pem string `json:"pem,omitempty"` // The set of permissions for the GitHub app Permissions map[string]string `json:"permissions,omitempty"` // The slug name of the GitHub app Slug string `json:"slug,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` WebhookSecret string `json:"webhook_secret,omitempty"` }
type IssueSimplePullRequest ¶ added in v0.1.0
type IssueSimpleUser ¶ added in v0.1.0
type IssueSimpleUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type IssueUser ¶ added in v0.1.0
type IssueUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type Job ¶
type Job struct { CheckRunUrl string `json:"check_run_url"` // The time that the job finished, in ISO 8601 format. CompletedAt string `json:"completed_at"` // The outcome of the job. Conclusion string `json:"conclusion"` // The SHA of the commit that is being run. HeadSha string `json:"head_sha"` HtmlUrl string `json:"html_url"` // The id of the job. Id int64 `json:"id"` // The name of the job. Name string `json:"name"` NodeId string `json:"node_id"` // The id of the associated workflow run. RunId int64 `json:"run_id"` RunUrl string `json:"run_url"` // The time that the job started, in ISO 8601 format. StartedAt string `json:"started_at"` // The phase of the lifecycle that the job is currently in. Status string `json:"status"` // Steps in this job. Steps []JobStepsItem `json:"steps,omitempty"` Url string `json:"url"` }
type JobStepsItem ¶ added in v0.1.0
type JobStepsItem struct { // The time that the job finished, in ISO 8601 format. CompletedAt string `json:"completed_at,omitempty"` // The outcome of the job. Conclusion string `json:"conclusion"` // The name of the job. Name string `json:"name"` Number int64 `json:"number"` // The time that the step started, in ISO 8601 format. StartedAt string `json:"started_at,omitempty"` // The phase of the lifecycle that the job is currently in. Status string `json:"status"` }
type Key ¶ added in v0.5.0
type Key struct { CreatedAt string `json:"created_at,omitempty"` Id int64 `json:"id,omitempty"` Key string `json:"key,omitempty"` KeyId string `json:"key_id,omitempty"` ReadOnly bool `json:"read_only,omitempty"` Title string `json:"title,omitempty"` Url string `json:"url,omitempty"` Verified bool `json:"verified,omitempty"` }
type Label ¶
type Label struct { // 6-character hex code, without the leading #, identifying the color Color string `json:"color"` Default bool `json:"default"` Description string `json:"description,omitempty"` Id int64 `json:"id"` // The name of the label. Name string `json:"name"` NodeId string `json:"node_id"` // URL for the label Url string `json:"url"` }
type LabelSearchResultItem ¶
type LabelSearchResultItem struct { Color string `json:"color"` Default bool `json:"default"` Description string `json:"description"` Id int64 `json:"id"` Name string `json:"name"` NodeId string `json:"node_id"` Score int64 `json:"score"` TextMatches SearchResultTextMatches `json:"text_matches,omitempty"` Url string `json:"url"` }
type License ¶
type License struct { Body string `json:"body"` Conditions []string `json:"conditions"` Description string `json:"description"` Featured bool `json:"featured"` HtmlUrl string `json:"html_url"` Implementation string `json:"implementation"` Key string `json:"key"` Limitations []string `json:"limitations"` Name string `json:"name"` NodeId string `json:"node_id"` Permissions []string `json:"permissions"` SpdxId string `json:"spdx_id"` Url string `json:"url"` }
type LicenseContent ¶
type LicenseContent struct { Links LicenseContentLinks `json:"_links"` Content string `json:"content"` DownloadUrl string `json:"download_url"` Encoding string `json:"encoding"` GitUrl string `json:"git_url"` HtmlUrl string `json:"html_url"` License *LicenseContentLicense `json:"license"` Name string `json:"name"` Path string `json:"path"` Sha string `json:"sha"` Size int64 `json:"size"` Type string `json:"type"` Url string `json:"url"` }
type LicenseContentLicense ¶ added in v0.1.0
type LicenseContentLinks ¶ added in v0.1.0
type LicenseSimple ¶
type LinkWithType ¶ added in v0.5.0
type MarketplaceAccount ¶ added in v0.5.0
type MarketplaceListingPlan ¶
type MarketplaceListingPlan struct { AccountsUrl string `json:"accounts_url"` Bullets []string `json:"bullets"` Description string `json:"description"` HasFreeTrial bool `json:"has_free_trial"` Id int64 `json:"id"` MonthlyPriceInCents int64 `json:"monthly_price_in_cents"` Name string `json:"name"` Number int64 `json:"number"` PriceModel string `json:"price_model"` State string `json:"state"` UnitName string `json:"unit_name"` Url string `json:"url"` YearlyPriceInCents int64 `json:"yearly_price_in_cents"` }
type MarketplacePurchase ¶
type MarketplacePurchase struct { Id int64 `json:"id"` Login string `json:"login"` MarketplacePendingChange *MarketplacePurchaseMarketplacePendingChange `json:"marketplace_pending_change,omitempty"` MarketplacePurchase MarketplacePurchaseMarketplacePurchase `json:"marketplace_purchase"` OrganizationBillingEmail string `json:"organization_billing_email,omitempty"` Type string `json:"type"` Url string `json:"url"` }
type MarketplacePurchaseMarketplacePendingChange ¶ added in v0.1.0
type MarketplacePurchaseMarketplacePendingChange struct { EffectiveDate string `json:"effective_date,omitempty"` Id int64 `json:"id,omitempty"` IsInstalled bool `json:"is_installed,omitempty"` // Marketplace Listing Plan Plan MarketplaceListingPlan `json:"plan,omitempty"` UnitCount int64 `json:"unit_count,omitempty"` }
type MarketplacePurchaseMarketplacePurchase ¶ added in v0.1.0
type MarketplacePurchaseMarketplacePurchase struct { BillingCycle string `json:"billing_cycle,omitempty"` FreeTrialEndsOn string `json:"free_trial_ends_on,omitempty"` IsInstalled bool `json:"is_installed,omitempty"` NextBillingDate string `json:"next_billing_date,omitempty"` OnFreeTrial bool `json:"on_free_trial,omitempty"` // Marketplace Listing Plan Plan MarketplaceListingPlan `json:"plan,omitempty"` UnitCount int64 `json:"unit_count,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` }
type Migration ¶
type Migration struct { ArchiveUrl string `json:"archive_url,omitempty"` CreatedAt string `json:"created_at"` Exclude []MigrationExcludeItem `json:"exclude,omitempty"` ExcludeAttachments bool `json:"exclude_attachments"` Guid string `json:"guid"` Id int64 `json:"id"` LockRepositories bool `json:"lock_repositories"` NodeId string `json:"node_id"` Owner *MigrationOwner `json:"owner"` Repositories []Repository `json:"repositories"` State string `json:"state"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type MigrationExcludeItem ¶ added in v0.5.0
type MigrationExcludeItem interface{}
type MigrationOwner ¶ added in v0.1.0
type MigrationOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type Milestone ¶
type Milestone struct { ClosedAt string `json:"closed_at"` ClosedIssues int64 `json:"closed_issues"` CreatedAt string `json:"created_at"` Creator *MilestoneCreator `json:"creator"` Description string `json:"description"` DueOn string `json:"due_on"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` LabelsUrl string `json:"labels_url"` NodeId string `json:"node_id"` // The number of the milestone. Number int64 `json:"number"` OpenIssues int64 `json:"open_issues"` // The state of the milestone. State string `json:"state"` // The title of the milestone. Title string `json:"title"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type MilestoneCreator ¶ added in v0.1.0
type MilestoneCreator struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type MinimalRepository ¶
type MinimalRepository struct { ArchiveUrl string `json:"archive_url"` Archived bool `json:"archived,omitempty"` AssigneesUrl string `json:"assignees_url"` BlobsUrl string `json:"blobs_url"` BranchesUrl string `json:"branches_url"` CloneUrl string `json:"clone_url,omitempty"` CollaboratorsUrl string `json:"collaborators_url"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CompareUrl string `json:"compare_url"` ContentsUrl string `json:"contents_url"` ContributorsUrl string `json:"contributors_url"` CreatedAt string `json:"created_at,omitempty"` DefaultBranch string `json:"default_branch,omitempty"` DeleteBranchOnMerge bool `json:"delete_branch_on_merge,omitempty"` DeploymentsUrl string `json:"deployments_url"` Description string `json:"description"` Disabled bool `json:"disabled,omitempty"` DownloadsUrl string `json:"downloads_url"` EventsUrl string `json:"events_url"` Fork bool `json:"fork"` Forks int64 `json:"forks,omitempty"` ForksCount int64 `json:"forks_count,omitempty"` ForksUrl string `json:"forks_url"` FullName string `json:"full_name"` GitCommitsUrl string `json:"git_commits_url"` GitRefsUrl string `json:"git_refs_url"` GitTagsUrl string `json:"git_tags_url"` GitUrl string `json:"git_url,omitempty"` HasDownloads bool `json:"has_downloads,omitempty"` HasIssues bool `json:"has_issues,omitempty"` HasPages bool `json:"has_pages,omitempty"` HasProjects bool `json:"has_projects,omitempty"` HasWiki bool `json:"has_wiki,omitempty"` Homepage string `json:"homepage,omitempty"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IsTemplate bool `json:"is_template,omitempty"` IssueCommentUrl string `json:"issue_comment_url"` IssueEventsUrl string `json:"issue_events_url"` IssuesUrl string `json:"issues_url"` KeysUrl string `json:"keys_url"` LabelsUrl string `json:"labels_url"` Language string `json:"language,omitempty"` LanguagesUrl string `json:"languages_url"` License *MinimalRepositoryLicense `json:"license,omitempty"` MergesUrl string `json:"merges_url"` MilestonesUrl string `json:"milestones_url"` MirrorUrl string `json:"mirror_url,omitempty"` Name string `json:"name"` NetworkCount int64 `json:"network_count,omitempty"` NodeId string `json:"node_id"` NotificationsUrl string `json:"notifications_url"` OpenIssues int64 `json:"open_issues,omitempty"` OpenIssuesCount int64 `json:"open_issues_count,omitempty"` Owner *MinimalRepositoryOwner `json:"owner"` Permissions MinimalRepositoryPermissions `json:"permissions,omitempty"` Private bool `json:"private"` PullsUrl string `json:"pulls_url"` PushedAt string `json:"pushed_at,omitempty"` ReleasesUrl string `json:"releases_url"` Size int64 `json:"size,omitempty"` SshUrl string `json:"ssh_url,omitempty"` StargazersCount int64 `json:"stargazers_count,omitempty"` StargazersUrl string `json:"stargazers_url"` StatusesUrl string `json:"statuses_url"` SubscribersCount int64 `json:"subscribers_count,omitempty"` SubscribersUrl string `json:"subscribers_url"` SubscriptionUrl string `json:"subscription_url"` SvnUrl string `json:"svn_url,omitempty"` TagsUrl string `json:"tags_url"` TeamsUrl string `json:"teams_url"` TempCloneToken string `json:"temp_clone_token,omitempty"` TemplateRepository string `json:"template_repository,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url"` Visibility string `json:"visibility,omitempty"` Watchers int64 `json:"watchers,omitempty"` WatchersCount int64 `json:"watchers_count,omitempty"` }
type MinimalRepositoryLicense ¶ added in v0.1.0
type MinimalRepositoryOwner ¶ added in v0.1.0
type MinimalRepositoryOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type MinimalRepositoryPermissions ¶ added in v0.1.0
type OrgHook ¶
type OrgHook struct { Active bool `json:"active"` Config OrgHookConfig `json:"config"` CreatedAt string `json:"created_at"` Events []string `json:"events"` Id int64 `json:"id"` Name string `json:"name"` PingUrl string `json:"ping_url"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type OrgHookConfig ¶ added in v0.1.0
type OrgMembership ¶
type OrgMembership struct { // Organization Simple Organization OrganizationSimple `json:"organization"` OrganizationUrl string `json:"organization_url"` Permissions OrgMembershipPermissions `json:"permissions,omitempty"` Role string `json:"role"` State string `json:"state"` Url string `json:"url"` User *OrgMembershipUser `json:"user"` }
type OrgMembershipPermissions ¶ added in v0.5.0
type OrgMembershipPermissions struct {
CanCreateRepository bool `json:"can_create_repository"`
}
type OrgMembershipUser ¶ added in v0.1.0
type OrgMembershipUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type Organization ¶ added in v0.5.0
type Organization struct { AvatarUrl string `json:"avatar_url"` // Display blog url for the organization Blog string `json:"blog,omitempty"` // Display company name for the organization Company string `json:"company,omitempty"` CreatedAt string `json:"created_at"` Description string `json:"description"` // Display email for the organization Email string `json:"email,omitempty"` EventsUrl string `json:"events_url"` Followers int64 `json:"followers"` Following int64 `json:"following"` // Specifies if organization projects are enabled for this org HasOrganizationProjects bool `json:"has_organization_projects"` // Specifies if repository projects are enabled for repositories that belong to this org HasRepositoryProjects bool `json:"has_repository_projects"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IsVerified bool `json:"is_verified,omitempty"` IssuesUrl string `json:"issues_url"` // Display location for the organization Location string `json:"location,omitempty"` // Unique login name of the organization Login string `json:"login"` MembersUrl string `json:"members_url"` // Display name for the organization Name string `json:"name,omitempty"` NodeId string `json:"node_id"` Plan OrganizationPlan `json:"plan,omitempty"` PublicGists int64 `json:"public_gists"` PublicMembersUrl string `json:"public_members_url"` PublicRepos int64 `json:"public_repos"` ReposUrl string `json:"repos_url"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` // URL for the organization Url string `json:"url"` }
type OrganizationActionsSecret ¶
type OrganizationActionsSecret struct { CreatedAt string `json:"created_at"` // The name of the secret. Name string `json:"name"` SelectedRepositoriesUrl string `json:"selected_repositories_url,omitempty"` UpdatedAt string `json:"updated_at"` // Visibility of a secret Visibility string `json:"visibility"` }
type OrganizationFull ¶
type OrganizationFull struct { AvatarUrl string `json:"avatar_url"` BillingEmail string `json:"billing_email,omitempty"` Blog string `json:"blog,omitempty"` Collaborators int64 `json:"collaborators,omitempty"` Company string `json:"company,omitempty"` CreatedAt string `json:"created_at"` DefaultRepositoryPermission string `json:"default_repository_permission,omitempty"` Description string `json:"description"` DiskUsage int64 `json:"disk_usage,omitempty"` Email string `json:"email,omitempty"` EventsUrl string `json:"events_url"` Followers int64 `json:"followers"` Following int64 `json:"following"` HasOrganizationProjects bool `json:"has_organization_projects"` HasRepositoryProjects bool `json:"has_repository_projects"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IsVerified bool `json:"is_verified,omitempty"` IssuesUrl string `json:"issues_url"` Location string `json:"location,omitempty"` Login string `json:"login"` MembersAllowedRepositoryCreationType string `json:"members_allowed_repository_creation_type,omitempty"` MembersCanCreateInternalRepositories bool `json:"members_can_create_internal_repositories,omitempty"` MembersCanCreatePrivateRepositories bool `json:"members_can_create_private_repositories,omitempty"` MembersCanCreatePublicRepositories bool `json:"members_can_create_public_repositories,omitempty"` MembersCanCreateRepositories bool `json:"members_can_create_repositories,omitempty"` MembersUrl string `json:"members_url"` Name string `json:"name,omitempty"` NodeId string `json:"node_id"` OwnedPrivateRepos int64 `json:"owned_private_repos,omitempty"` Plan OrganizationFullPlan `json:"plan,omitempty"` PrivateGists int64 `json:"private_gists,omitempty"` PublicGists int64 `json:"public_gists"` PublicMembersUrl string `json:"public_members_url"` PublicRepos int64 `json:"public_repos"` ReposUrl string `json:"repos_url"` TotalPrivateRepos int64 `json:"total_private_repos,omitempty"` TwitterUsername string `json:"twitter_username,omitempty"` TwoFactorRequirementEnabled bool `json:"two_factor_requirement_enabled,omitempty"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type OrganizationFullPlan ¶ added in v0.1.0
type OrganizationInvitation ¶
type OrganizationInvitation struct { CreatedAt string `json:"created_at,omitempty"` Email string `json:"email,omitempty"` Id int64 `json:"id,omitempty"` InvitationTeamUrl string `json:"invitation_team_url,omitempty"` InvitationTeamsUrl string `json:"invitation_teams_url,omitempty"` // Simple User Inviter *SimpleUser `json:"inviter,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` Role string `json:"role,omitempty"` TeamCount int64 `json:"team_count,omitempty"` }
type OrganizationPlan ¶ added in v0.5.0
type OrganizationSimple ¶
type OrganizationSimple struct { AvatarUrl string `json:"avatar_url"` Description string `json:"description"` EventsUrl string `json:"events_url"` HooksUrl string `json:"hooks_url"` Id int64 `json:"id"` IssuesUrl string `json:"issues_url"` Login string `json:"login"` MembersUrl string `json:"members_url"` NodeId string `json:"node_id"` PublicMembersUrl string `json:"public_members_url"` ReposUrl string `json:"repos_url"` Url string `json:"url"` }
type PackagesBillingUsage ¶
type PackagesBillingUsage struct { // Free storage space (GB) for GitHub Packages. IncludedGigabytesBandwidth int64 `json:"included_gigabytes_bandwidth,omitempty"` // Sum of the free and paid storage space (GB) for GitHuub Packages. TotalGigabytesBandwidthUsed int64 `json:"total_gigabytes_bandwidth_used,omitempty"` // Total paid storage space (GB) for GitHuub Packages. TotalPaidGigabytesBandwidthUsed int64 `json:"total_paid_gigabytes_bandwidth_used,omitempty"` }
type Page ¶
type Page struct { // The Pages site's custom domain Cname string `json:"cname"` // Whether the Page has a custom 404 page. Custom404 bool `json:"custom_404"` // The web address the Page can be accessed from. HtmlUrl string `json:"html_url,omitempty"` Source PagesSourceHash `json:"source,omitempty"` // The status of the most recent build of the Page. Status string `json:"status"` // The API address for accessing this Page resource. Url string `json:"url"` }
type PageBuild ¶
type PageBuild struct { Commit string `json:"commit"` CreatedAt string `json:"created_at"` Duration int64 `json:"duration"` Error PageBuildError `json:"error"` Pusher *PageBuildPusher `json:"pusher"` Status string `json:"status"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type PageBuildError ¶ added in v0.1.0
type PageBuildError struct {
Message string `json:"message"`
}
type PageBuildPusher ¶ added in v0.1.0
type PageBuildPusher struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PageBuildStatus ¶
type PagesSourceHash ¶ added in v0.5.0
type ParticipationStats ¶
type PorterAuthor ¶
type PorterLargeFile ¶
type PrivateUser ¶
type PrivateUser struct { AvatarUrl string `json:"avatar_url"` Bio string `json:"bio"` Blog string `json:"blog"` BusinessPlus bool `json:"business_plus,omitempty"` Collaborators int64 `json:"collaborators"` Company string `json:"company"` CreatedAt string `json:"created_at"` DiskUsage int64 `json:"disk_usage"` Email string `json:"email"` EventsUrl string `json:"events_url"` Followers int64 `json:"followers"` FollowersUrl string `json:"followers_url"` Following int64 `json:"following"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` Hireable bool `json:"hireable"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` LdapDn string `json:"ldap_dn,omitempty"` Location string `json:"location"` Login string `json:"login"` Name string `json:"name"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` OwnedPrivateRepos int64 `json:"owned_private_repos"` Plan PrivateUserPlan `json:"plan,omitempty"` PrivateGists int64 `json:"private_gists"` PublicGists int64 `json:"public_gists"` PublicRepos int64 `json:"public_repos"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` SuspendedAt string `json:"suspended_at,omitempty"` TotalPrivateRepos int64 `json:"total_private_repos"` TwitterUsername string `json:"twitter_username,omitempty"` TwoFactorAuthentication bool `json:"two_factor_authentication"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type PrivateUserPlan ¶ added in v0.1.0
type Project ¶
type Project struct { // Body of the project Body string `json:"body"` CardsUrl string `json:"cards_url,omitempty"` ColumnsUrl string `json:"columns_url"` CreatedAt string `json:"created_at"` Creator *ProjectCreator `json:"creator"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` // Name of the project Name string `json:"name"` NodeId string `json:"node_id"` Number int64 `json:"number"` // The baseline permission that all organization members have on this project OrganizationPermission string `json:"organization_permission,omitempty"` OwnerUrl string `json:"owner_url"` Permissions ProjectPermissions `json:"permissions,omitempty"` // Whether or not this project can be seen by everyone. Private bool `json:"private,omitempty"` // State of the project; either 'open' or 'closed' State string `json:"state"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type ProjectCard ¶
type ProjectCard struct { // Whether or not the card is archived Archived bool `json:"archived,omitempty"` ColumnUrl string `json:"column_url"` ContentUrl string `json:"content_url,omitempty"` CreatedAt string `json:"created_at"` Creator *ProjectCardCreator `json:"creator"` // The project card's ID Id int64 `json:"id"` NodeId string `json:"node_id"` Note string `json:"note"` ProjectUrl string `json:"project_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type ProjectCardCreator ¶ added in v0.1.0
type ProjectCardCreator struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type ProjectColumn ¶
type ProjectColumn struct { CardsUrl string `json:"cards_url"` CreatedAt string `json:"created_at"` // The unique identifier of the project column Id int64 `json:"id"` // Name of the project column Name string `json:"name"` NodeId string `json:"node_id"` ProjectUrl string `json:"project_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type ProjectCreator ¶ added in v0.1.0
type ProjectCreator struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type ProjectPermissions ¶ added in v0.5.0
type ProtectedBranch ¶ added in v0.5.0
type ProtectedBranch struct { AllowDeletions ProtectedBranchAllowDeletions `json:"allow_deletions,omitempty"` AllowForcePushes ProtectedBranchAllowForcePushes `json:"allow_force_pushes,omitempty"` EnforceAdmins ProtectedBranchEnforceAdmins `json:"enforce_admins,omitempty"` RequiredLinearHistory ProtectedBranchRequiredLinearHistory `json:"required_linear_history,omitempty"` RequiredPullRequestReviews ProtectedBranchRequiredPullRequestReviews `json:"required_pull_request_reviews,omitempty"` RequiredSignatures ProtectedBranchRequiredSignatures `json:"required_signatures,omitempty"` // Status Check Policy RequiredStatusChecks StatusCheckPolicy `json:"required_status_checks,omitempty"` // Branch Restriction Policy Restrictions BranchRestrictionPolicy `json:"restrictions,omitempty"` Url string `json:"url"` }
type ProtectedBranchAllowDeletions ¶ added in v0.5.0
type ProtectedBranchAllowDeletions struct {
Enabled bool `json:"enabled"`
}
type ProtectedBranchAllowForcePushes ¶ added in v0.5.0
type ProtectedBranchAllowForcePushes struct {
Enabled bool `json:"enabled"`
}
type ProtectedBranchEnforceAdmins ¶ added in v0.5.0
type ProtectedBranchPullRequestReview ¶
type ProtectedBranchPullRequestReview struct { DismissStaleReviews bool `json:"dismiss_stale_reviews"` DismissalRestrictions ProtectedBranchPullRequestReviewDismissalRestrictions `json:"dismissal_restrictions,omitempty"` RequireCodeOwnerReviews bool `json:"require_code_owner_reviews"` RequiredApprovingReviewCount int64 `json:"required_approving_review_count,omitempty"` Url string `json:"url,omitempty"` }
type ProtectedBranchPullRequestReviewDismissalRestrictions ¶ added in v0.1.0
type ProtectedBranchPullRequestReviewDismissalRestrictions struct { // The list of teams with review dismissal access. Teams []Team `json:"teams,omitempty"` TeamsUrl string `json:"teams_url,omitempty"` Url string `json:"url,omitempty"` // The list of users with review dismissal access. Users []SimpleUser `json:"users,omitempty"` UsersUrl string `json:"users_url,omitempty"` }
type ProtectedBranchRequiredLinearHistory ¶ added in v0.5.0
type ProtectedBranchRequiredLinearHistory struct {
Enabled bool `json:"enabled"`
}
type ProtectedBranchRequiredPullRequestReviews ¶ added in v0.5.0
type ProtectedBranchRequiredPullRequestReviews struct { DismissStaleReviews bool `json:"dismiss_stale_reviews,omitempty"` DismissalRestrictions ProtectedBranchRequiredPullRequestReviewsDismissalRestrictions `json:"dismissal_restrictions,omitempty"` RequireCodeOwnerReviews bool `json:"require_code_owner_reviews,omitempty"` RequiredApprovingReviewCount int64 `json:"required_approving_review_count,omitempty"` Url string `json:"url"` }
type ProtectedBranchRequiredPullRequestReviewsDismissalRestrictions ¶ added in v0.5.0
type ProtectedBranchRequiredPullRequestReviewsDismissalRestrictions struct { Teams []Team `json:"teams"` TeamsUrl string `json:"teams_url"` Url string `json:"url"` Users []SimpleUser `json:"users"` UsersUrl string `json:"users_url"` }
type ProtectedBranchRequiredSignatures ¶ added in v0.5.0
type PublicUser ¶
type PublicUser struct { AvatarUrl string `json:"avatar_url"` Bio string `json:"bio"` Blog string `json:"blog"` Collaborators int64 `json:"collaborators,omitempty"` Company string `json:"company"` CreatedAt string `json:"created_at"` DiskUsage int64 `json:"disk_usage,omitempty"` Email string `json:"email"` EventsUrl string `json:"events_url"` Followers int64 `json:"followers"` FollowersUrl string `json:"followers_url"` Following int64 `json:"following"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` Hireable bool `json:"hireable"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Location string `json:"location"` Login string `json:"login"` Name string `json:"name"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` OwnedPrivateRepos int64 `json:"owned_private_repos,omitempty"` Plan PublicUserPlan `json:"plan,omitempty"` PrivateGists int64 `json:"private_gists,omitempty"` PublicGists int64 `json:"public_gists"` PublicRepos int64 `json:"public_repos"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` SuspendedAt string `json:"suspended_at,omitempty"` TotalPrivateRepos int64 `json:"total_private_repos,omitempty"` TwitterUsername string `json:"twitter_username,omitempty"` Type string `json:"type"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type PublicUserPlan ¶ added in v0.1.0
type PullRequest ¶
type PullRequest struct { Links PullRequestLinks `json:"_links"` ActiveLockReason string `json:"active_lock_reason,omitempty"` Additions int64 `json:"additions"` Assignee *PullRequestAssignee `json:"assignee"` Assignees []SimpleUser `json:"assignees,omitempty"` AuthorAssociation string `json:"author_association"` Base PullRequestBase `json:"base"` Body string `json:"body"` ChangedFiles int64 `json:"changed_files"` ClosedAt string `json:"closed_at"` Comments int64 `json:"comments"` CommentsUrl string `json:"comments_url"` Commits int64 `json:"commits"` CommitsUrl string `json:"commits_url"` CreatedAt string `json:"created_at"` Deletions int64 `json:"deletions"` DiffUrl string `json:"diff_url"` // Indicates whether or not the pull request is a draft. Draft bool `json:"draft,omitempty"` Head PullRequestHead `json:"head"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IssueUrl string `json:"issue_url"` Labels []PullRequestLabelsItem `json:"labels"` Locked bool `json:"locked"` // Indicates whether maintainers can modify the pull request. MaintainerCanModify bool `json:"maintainer_can_modify"` MergeCommitSha string `json:"merge_commit_sha"` Mergeable bool `json:"mergeable"` MergeableState string `json:"mergeable_state"` Merged bool `json:"merged"` MergedAt string `json:"merged_at"` MergedBy *PullRequestMergedBy `json:"merged_by"` Milestone *PullRequestMilestone `json:"milestone"` NodeId string `json:"node_id"` // Number uniquely identifying the pull request within its repository. Number int64 `json:"number"` PatchUrl string `json:"patch_url"` Rebaseable bool `json:"rebaseable,omitempty"` RequestedReviewers []SimpleUser `json:"requested_reviewers,omitempty"` RequestedTeams []TeamSimple `json:"requested_teams,omitempty"` ReviewCommentUrl string `json:"review_comment_url"` ReviewComments int64 `json:"review_comments"` ReviewCommentsUrl string `json:"review_comments_url"` // State of this Pull Request. Either `open` or `closed`. State string `json:"state"` StatusesUrl string `json:"statuses_url"` // The title of the pull request. Title string `json:"title"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *PullRequestUser `json:"user"` }
type PullRequestAssignee ¶ added in v0.1.0
type PullRequestAssignee struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestBase ¶ added in v0.1.0
type PullRequestBase struct { Label string `json:"label"` Ref string `json:"ref"` Repo PullRequestBaseRepo `json:"repo"` Sha string `json:"sha"` User PullRequestBaseUser `json:"user"` }
type PullRequestBaseRepo ¶ added in v0.1.0
type PullRequestBaseRepo struct { AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` ArchiveUrl string `json:"archive_url"` Archived bool `json:"archived"` AssigneesUrl string `json:"assignees_url"` BlobsUrl string `json:"blobs_url"` BranchesUrl string `json:"branches_url"` CloneUrl string `json:"clone_url"` CollaboratorsUrl string `json:"collaborators_url"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CompareUrl string `json:"compare_url"` ContentsUrl string `json:"contents_url"` ContributorsUrl string `json:"contributors_url"` CreatedAt string `json:"created_at"` DefaultBranch string `json:"default_branch"` DeploymentsUrl string `json:"deployments_url"` Description string `json:"description"` Disabled bool `json:"disabled"` DownloadsUrl string `json:"downloads_url"` EventsUrl string `json:"events_url"` Fork bool `json:"fork"` Forks int64 `json:"forks"` ForksCount int64 `json:"forks_count"` ForksUrl string `json:"forks_url"` FullName string `json:"full_name"` GitCommitsUrl string `json:"git_commits_url"` GitRefsUrl string `json:"git_refs_url"` GitTagsUrl string `json:"git_tags_url"` GitUrl string `json:"git_url"` HasDownloads bool `json:"has_downloads"` HasIssues bool `json:"has_issues"` HasPages bool `json:"has_pages"` HasProjects bool `json:"has_projects"` HasWiki bool `json:"has_wiki"` Homepage string `json:"homepage"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IssueCommentUrl string `json:"issue_comment_url"` IssueEventsUrl string `json:"issue_events_url"` IssuesUrl string `json:"issues_url"` KeysUrl string `json:"keys_url"` LabelsUrl string `json:"labels_url"` Language string `json:"language"` LanguagesUrl string `json:"languages_url"` License *PullRequestBaseRepoLicense `json:"license"` MasterBranch string `json:"master_branch,omitempty"` MergesUrl string `json:"merges_url"` MilestonesUrl string `json:"milestones_url"` MirrorUrl string `json:"mirror_url"` Name string `json:"name"` NodeId string `json:"node_id"` NotificationsUrl string `json:"notifications_url"` OpenIssues int64 `json:"open_issues"` OpenIssuesCount int64 `json:"open_issues_count"` Owner PullRequestBaseRepoOwner `json:"owner"` Permissions PullRequestBaseRepoPermissions `json:"permissions,omitempty"` Private bool `json:"private"` PullsUrl string `json:"pulls_url"` PushedAt string `json:"pushed_at"` ReleasesUrl string `json:"releases_url"` Size int64 `json:"size"` SshUrl string `json:"ssh_url"` StargazersCount int64 `json:"stargazers_count"` StargazersUrl string `json:"stargazers_url"` StatusesUrl string `json:"statuses_url"` SubscribersUrl string `json:"subscribers_url"` SubscriptionUrl string `json:"subscription_url"` SvnUrl string `json:"svn_url"` TagsUrl string `json:"tags_url"` TeamsUrl string `json:"teams_url"` TempCloneToken string `json:"temp_clone_token,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` Watchers int64 `json:"watchers"` WatchersCount int64 `json:"watchers_count"` }
type PullRequestBaseRepoLicense ¶ added in v0.5.0
type PullRequestBaseRepoOwner ¶ added in v0.1.0
type PullRequestBaseRepoOwner struct { AvatarUrl string `json:"avatar_url"` EventsUrl string `json:"events_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Login string `json:"login"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` Type string `json:"type"` Url string `json:"url"` }
type PullRequestBaseRepoPermissions ¶ added in v0.1.0
type PullRequestBaseUser ¶ added in v0.1.0
type PullRequestBaseUser struct { AvatarUrl string `json:"avatar_url"` EventsUrl string `json:"events_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Login string `json:"login"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` Type string `json:"type"` Url string `json:"url"` }
type PullRequestHead ¶ added in v0.1.0
type PullRequestHead struct { Label string `json:"label"` Ref string `json:"ref"` Repo PullRequestHeadRepo `json:"repo"` Sha string `json:"sha"` User PullRequestHeadUser `json:"user"` }
type PullRequestHeadRepo ¶ added in v0.1.0
type PullRequestHeadRepo struct { AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` ArchiveUrl string `json:"archive_url"` Archived bool `json:"archived"` AssigneesUrl string `json:"assignees_url"` BlobsUrl string `json:"blobs_url"` BranchesUrl string `json:"branches_url"` CloneUrl string `json:"clone_url"` CollaboratorsUrl string `json:"collaborators_url"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CompareUrl string `json:"compare_url"` ContentsUrl string `json:"contents_url"` ContributorsUrl string `json:"contributors_url"` CreatedAt string `json:"created_at"` DefaultBranch string `json:"default_branch"` DeploymentsUrl string `json:"deployments_url"` Description string `json:"description"` Disabled bool `json:"disabled"` DownloadsUrl string `json:"downloads_url"` EventsUrl string `json:"events_url"` Fork bool `json:"fork"` Forks int64 `json:"forks"` ForksCount int64 `json:"forks_count"` ForksUrl string `json:"forks_url"` FullName string `json:"full_name"` GitCommitsUrl string `json:"git_commits_url"` GitRefsUrl string `json:"git_refs_url"` GitTagsUrl string `json:"git_tags_url"` GitUrl string `json:"git_url"` HasDownloads bool `json:"has_downloads"` HasIssues bool `json:"has_issues"` HasPages bool `json:"has_pages"` HasProjects bool `json:"has_projects"` HasWiki bool `json:"has_wiki"` Homepage string `json:"homepage"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IssueCommentUrl string `json:"issue_comment_url"` IssueEventsUrl string `json:"issue_events_url"` IssuesUrl string `json:"issues_url"` KeysUrl string `json:"keys_url"` LabelsUrl string `json:"labels_url"` Language string `json:"language"` LanguagesUrl string `json:"languages_url"` License *PullRequestHeadRepoLicense `json:"license"` MasterBranch string `json:"master_branch,omitempty"` MergesUrl string `json:"merges_url"` MilestonesUrl string `json:"milestones_url"` MirrorUrl string `json:"mirror_url"` Name string `json:"name"` NodeId string `json:"node_id"` NotificationsUrl string `json:"notifications_url"` OpenIssues int64 `json:"open_issues"` OpenIssuesCount int64 `json:"open_issues_count"` Owner PullRequestHeadRepoOwner `json:"owner"` Permissions PullRequestHeadRepoPermissions `json:"permissions,omitempty"` Private bool `json:"private"` PullsUrl string `json:"pulls_url"` PushedAt string `json:"pushed_at"` ReleasesUrl string `json:"releases_url"` Size int64 `json:"size"` SshUrl string `json:"ssh_url"` StargazersCount int64 `json:"stargazers_count"` StargazersUrl string `json:"stargazers_url"` StatusesUrl string `json:"statuses_url"` SubscribersUrl string `json:"subscribers_url"` SubscriptionUrl string `json:"subscription_url"` SvnUrl string `json:"svn_url"` TagsUrl string `json:"tags_url"` TeamsUrl string `json:"teams_url"` TempCloneToken string `json:"temp_clone_token,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` Watchers int64 `json:"watchers"` WatchersCount int64 `json:"watchers_count"` }
type PullRequestHeadRepoLicense ¶ added in v0.5.0
type PullRequestHeadRepoOwner ¶ added in v0.1.0
type PullRequestHeadRepoOwner struct { AvatarUrl string `json:"avatar_url"` EventsUrl string `json:"events_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Login string `json:"login"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` Type string `json:"type"` Url string `json:"url"` }
type PullRequestHeadRepoPermissions ¶ added in v0.1.0
type PullRequestHeadUser ¶ added in v0.1.0
type PullRequestHeadUser struct { AvatarUrl string `json:"avatar_url"` EventsUrl string `json:"events_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Login string `json:"login"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` Type string `json:"type"` Url string `json:"url"` }
type PullRequestLabelsItem ¶ added in v0.1.0
type PullRequestLabelsItem struct { Color string `json:"color,omitempty"` Default bool `json:"default,omitempty"` Description string `json:"description,omitempty"` Id int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestLinks ¶ added in v0.1.0
type PullRequestLinks struct { // Hypermedia Link Comments Link `json:"comments"` // Hypermedia Link Commits Link `json:"commits"` // Hypermedia Link Html Link `json:"html"` // Hypermedia Link Issue Link `json:"issue"` // Hypermedia Link ReviewComment Link `json:"review_comment"` // Hypermedia Link ReviewComments Link `json:"review_comments"` // Hypermedia Link Self Link `json:"self"` // Hypermedia Link Statuses Link `json:"statuses"` }
type PullRequestMergeResult ¶
type PullRequestMergedBy ¶ added in v0.1.0
type PullRequestMergedBy struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestMilestone ¶ added in v0.1.0
type PullRequestMilestone struct { ClosedAt string `json:"closed_at,omitempty"` ClosedIssues int64 `json:"closed_issues,omitempty"` CreatedAt string `json:"created_at,omitempty"` Creator *MilestoneCreator `json:"creator,omitempty"` Description string `json:"description,omitempty"` DueOn string `json:"due_on,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` LabelsUrl string `json:"labels_url,omitempty"` NodeId string `json:"node_id,omitempty"` // The number of the milestone. Number int64 `json:"number,omitempty"` OpenIssues int64 `json:"open_issues,omitempty"` // The state of the milestone. State string `json:"state,omitempty"` // The title of the milestone. Title string `json:"title,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestMinimal ¶ added in v0.5.0
type PullRequestMinimal struct { Base PullRequestMinimalBase `json:"base"` Head PullRequestMinimalHead `json:"head"` Id int64 `json:"id"` Number int64 `json:"number"` Url string `json:"url"` }
type PullRequestMinimalBase ¶ added in v0.6.0
type PullRequestMinimalBase struct { Ref string `json:"ref"` Repo PullRequestMinimalBaseRepo `json:"repo"` Sha string `json:"sha"` }
type PullRequestMinimalBaseRepo ¶ added in v0.6.0
type PullRequestMinimalHead ¶ added in v0.6.0
type PullRequestMinimalHead struct { Ref string `json:"ref"` Repo PullRequestMinimalHeadRepo `json:"repo"` Sha string `json:"sha"` }
type PullRequestMinimalHeadRepo ¶ added in v0.6.0
type PullRequestReview ¶
type PullRequestReview struct { Links PullRequestReviewLinks `json:"_links"` AuthorAssociation string `json:"author_association"` // The text of the review. Body string `json:"body"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` // A commit SHA for the review. CommitId string `json:"commit_id"` HtmlUrl string `json:"html_url"` // Unique identifier of the review Id int64 `json:"id"` NodeId string `json:"node_id"` PullRequestUrl string `json:"pull_request_url"` State string `json:"state"` SubmittedAt string `json:"submitted_at,omitempty"` User *PullRequestReviewUser `json:"user"` }
type PullRequestReviewComment ¶
type PullRequestReviewComment struct { Links PullRequestReviewCommentLinks `json:"_links"` // How the author of the comment is associated with the pull request. AuthorAssociation string `json:"author_association"` // The text of the comment. Body string `json:"body"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` // The SHA of the commit to which the comment applies. CommitId string `json:"commit_id"` CreatedAt string `json:"created_at"` // The diff of the line that the comment refers to. DiffHunk string `json:"diff_hunk"` // HTML URL for the pull request review comment. HtmlUrl string `json:"html_url"` // The ID of the pull request review comment. Id int64 `json:"id"` // The comment ID to reply to. InReplyToId int64 `json:"in_reply_to_id,omitempty"` // The line of the blob to which the comment applies. The last line of the range for a multi-line comment Line int64 `json:"line,omitempty"` // The node ID of the pull request review comment. NodeId string `json:"node_id"` // The SHA of the original commit to which the comment applies. OriginalCommitId string `json:"original_commit_id"` // The line of the blob to which the comment applies. The last line of the range for a multi-line comment OriginalLine int64 `json:"original_line,omitempty"` // The index of the original line in the diff to which the comment applies. OriginalPosition int64 `json:"original_position"` // The first line of the range for a multi-line comment. OriginalStartLine int64 `json:"original_start_line,omitempty"` // The relative path of the file to which the comment applies. Path string `json:"path"` // The line index in the diff to which the comment applies. Position int64 `json:"position"` // The ID of the pull request review to which the comment belongs. PullRequestReviewId int64 `json:"pull_request_review_id"` // URL for the pull request that the review comment belongs to. PullRequestUrl string `json:"pull_request_url"` Reactions ReactionRollup `json:"reactions,omitempty"` // The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment Side string `json:"side,omitempty"` // The first line of the range for a multi-line comment. StartLine int64 `json:"start_line,omitempty"` // The side of the first line of the range for a multi-line comment. StartSide string `json:"start_side,omitempty"` UpdatedAt string `json:"updated_at"` // URL for the pull request review comment Url string `json:"url"` // Simple User User *SimpleUser `json:"user"` }
type PullRequestReviewCommentLinks ¶ added in v0.1.0
type PullRequestReviewCommentLinks struct { Html PullRequestReviewCommentLinksHtml `json:"html"` PullRequest PullRequestReviewCommentLinksPullRequest `json:"pull_request"` Self PullRequestReviewCommentLinksSelf `json:"self"` }
type PullRequestReviewCommentLinksHtml ¶ added in v0.1.0
type PullRequestReviewCommentLinksHtml struct {
Href string `json:"href"`
}
type PullRequestReviewCommentLinksPullRequest ¶ added in v0.1.0
type PullRequestReviewCommentLinksPullRequest struct {
Href string `json:"href"`
}
type PullRequestReviewCommentLinksSelf ¶ added in v0.1.0
type PullRequestReviewCommentLinksSelf struct {
Href string `json:"href"`
}
type PullRequestReviewLinks ¶ added in v0.1.0
type PullRequestReviewLinks struct { Html PullRequestReviewLinksHtml `json:"html"` PullRequest PullRequestReviewLinksPullRequest `json:"pull_request"` }
type PullRequestReviewLinksHtml ¶ added in v0.1.0
type PullRequestReviewLinksHtml struct {
Href string `json:"href"`
}
type PullRequestReviewLinksPullRequest ¶ added in v0.1.0
type PullRequestReviewLinksPullRequest struct {
Href string `json:"href"`
}
type PullRequestReviewRequest ¶
type PullRequestReviewRequest struct { Teams []PullRequestReviewRequestTeamsItem `json:"teams,omitempty"` Users []PullRequestReviewRequestUsersItem `json:"users,omitempty"` }
type PullRequestReviewRequestTeamsItem ¶ added in v0.5.0
type PullRequestReviewRequestTeamsItem struct { Description string `json:"description,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` MembersUrl string `json:"members_url,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Parent string `json:"parent,omitempty"` Permission string `json:"permission,omitempty"` Privacy string `json:"privacy,omitempty"` RepositoriesUrl string `json:"repositories_url,omitempty"` Slug string `json:"slug,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestReviewRequestUsersItem ¶ added in v0.5.0
type PullRequestReviewRequestUsersItem struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestReviewUser ¶ added in v0.1.0
type PullRequestReviewUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestSimple ¶
type PullRequestSimple struct { Links PullRequestSimpleLinks `json:"_links"` ActiveLockReason string `json:"active_lock_reason,omitempty"` Assignee *PullRequestSimpleAssignee `json:"assignee"` Assignees []SimpleUser `json:"assignees,omitempty"` AuthorAssociation string `json:"author_association"` Base PullRequestSimpleBase `json:"base"` Body string `json:"body"` ClosedAt string `json:"closed_at"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CreatedAt string `json:"created_at"` DiffUrl string `json:"diff_url"` // Indicates whether or not the pull request is a draft. Draft bool `json:"draft,omitempty"` Head PullRequestSimpleHead `json:"head"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IssueUrl string `json:"issue_url"` Labels []PullRequestSimpleLabelsItem `json:"labels"` Locked bool `json:"locked"` MergeCommitSha string `json:"merge_commit_sha"` MergedAt string `json:"merged_at"` Milestone *PullRequestSimpleMilestone `json:"milestone"` NodeId string `json:"node_id"` Number int64 `json:"number"` PatchUrl string `json:"patch_url"` RequestedReviewers []SimpleUser `json:"requested_reviewers,omitempty"` RequestedTeams []TeamSimple `json:"requested_teams,omitempty"` ReviewCommentUrl string `json:"review_comment_url"` ReviewCommentsUrl string `json:"review_comments_url"` State string `json:"state"` StatusesUrl string `json:"statuses_url"` Title string `json:"title"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *PullRequestSimpleUser `json:"user"` }
type PullRequestSimpleAssignee ¶ added in v0.1.0
type PullRequestSimpleAssignee struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestSimpleBase ¶ added in v0.1.0
type PullRequestSimpleBase struct { Label string `json:"label"` Ref string `json:"ref"` // A git repository Repo Repository `json:"repo"` Sha string `json:"sha"` User *PullRequestSimpleBaseUser `json:"user"` }
type PullRequestSimpleBaseUser ¶ added in v0.1.0
type PullRequestSimpleBaseUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestSimpleHead ¶ added in v0.1.0
type PullRequestSimpleHead struct { Label string `json:"label"` Ref string `json:"ref"` // A git repository Repo Repository `json:"repo"` Sha string `json:"sha"` User *PullRequestSimpleHeadUser `json:"user"` }
type PullRequestSimpleHeadUser ¶ added in v0.1.0
type PullRequestSimpleHeadUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestSimpleLabelsItem ¶ added in v0.1.0
type PullRequestSimpleLabelsItem struct { Color string `json:"color,omitempty"` Default bool `json:"default,omitempty"` Description string `json:"description,omitempty"` Id int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestSimpleLinks ¶ added in v0.1.0
type PullRequestSimpleLinks struct { // Hypermedia Link Comments Link `json:"comments"` // Hypermedia Link Commits Link `json:"commits"` // Hypermedia Link Html Link `json:"html"` // Hypermedia Link Issue Link `json:"issue"` // Hypermedia Link ReviewComment Link `json:"review_comment"` // Hypermedia Link ReviewComments Link `json:"review_comments"` // Hypermedia Link Self Link `json:"self"` // Hypermedia Link Statuses Link `json:"statuses"` }
type PullRequestSimpleMilestone ¶ added in v0.1.0
type PullRequestSimpleMilestone struct { ClosedAt string `json:"closed_at,omitempty"` ClosedIssues int64 `json:"closed_issues,omitempty"` CreatedAt string `json:"created_at,omitempty"` Creator *MilestoneCreator `json:"creator,omitempty"` Description string `json:"description,omitempty"` DueOn string `json:"due_on,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` LabelsUrl string `json:"labels_url,omitempty"` NodeId string `json:"node_id,omitempty"` // The number of the milestone. Number int64 `json:"number,omitempty"` OpenIssues int64 `json:"open_issues,omitempty"` // The state of the milestone. State string `json:"state,omitempty"` // The title of the milestone. Title string `json:"title,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestSimpleUser ¶ added in v0.1.0
type PullRequestSimpleUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type PullRequestUser ¶ added in v0.1.0
type PullRequestUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RateLimitOverview ¶
type RateLimitOverview struct { Rate RateLimit `json:"rate"` Resources RateLimitOverviewResources `json:"resources"` }
type RateLimitOverviewResources ¶ added in v0.1.0
type Reaction ¶
type Reaction struct { // The reaction to use Content string `json:"content"` CreatedAt string `json:"created_at"` Id int64 `json:"id"` NodeId string `json:"node_id"` User *ReactionUser `json:"user"` }
type ReactionRollup ¶ added in v0.5.0
type ReactionRollup struct { PlusOne int64 `json:"+1"` MinusOne int64 `json:"-1"` Confused int64 `json:"confused"` Eyes int64 `json:"eyes"` Heart int64 `json:"heart"` Hooray int64 `json:"hooray"` Laugh int64 `json:"laugh"` Rocket int64 `json:"rocket"` TotalCount int64 `json:"total_count"` Url string `json:"url"` }
type ReactionUser ¶ added in v0.1.0
type ReactionUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type ReferrerTraffic ¶
type Release ¶
type Release struct { Assets []ReleaseAsset `json:"assets"` AssetsUrl string `json:"assets_url"` // Simple User Author *SimpleUser `json:"author"` Body string `json:"body,omitempty"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` CreatedAt string `json:"created_at"` // true to create a draft (unpublished) release, false to create a published one. Draft bool `json:"draft"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Name string `json:"name"` NodeId string `json:"node_id"` // Whether to identify the release as a prerelease or a full release. Prerelease bool `json:"prerelease"` PublishedAt string `json:"published_at"` // The name of the tag. TagName string `json:"tag_name"` TarballUrl string `json:"tarball_url"` // Specifies the commitish value that determines where the Git tag is created from. TargetCommitish string `json:"target_commitish"` UploadUrl string `json:"upload_url"` Url string `json:"url"` ZipballUrl string `json:"zipball_url"` }
type ReleaseAsset ¶
type ReleaseAsset struct { BrowserDownloadUrl string `json:"browser_download_url"` ContentType string `json:"content_type"` CreatedAt string `json:"created_at"` DownloadCount int64 `json:"download_count"` Id int64 `json:"id"` Label string `json:"label"` // The file name of the asset. Name string `json:"name"` NodeId string `json:"node_id"` Size int64 `json:"size"` // State of the release asset. State string `json:"state"` UpdatedAt string `json:"updated_at"` Uploader *ReleaseAssetUploader `json:"uploader"` Url string `json:"url"` }
type ReleaseAssetUploader ¶ added in v0.1.0
type ReleaseAssetUploader struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RepoSearchResultItem ¶
type RepoSearchResultItem struct { AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` ArchiveUrl string `json:"archive_url"` Archived bool `json:"archived"` AssigneesUrl string `json:"assignees_url"` BlobsUrl string `json:"blobs_url"` BranchesUrl string `json:"branches_url"` CloneUrl string `json:"clone_url"` CollaboratorsUrl string `json:"collaborators_url"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CompareUrl string `json:"compare_url"` ContentsUrl string `json:"contents_url"` ContributorsUrl string `json:"contributors_url"` CreatedAt string `json:"created_at"` DefaultBranch string `json:"default_branch"` DeleteBranchOnMerge bool `json:"delete_branch_on_merge,omitempty"` DeploymentsUrl string `json:"deployments_url"` Description string `json:"description"` // Returns whether or not this repository disabled. Disabled bool `json:"disabled"` DownloadsUrl string `json:"downloads_url"` EventsUrl string `json:"events_url"` Fork bool `json:"fork"` Forks int64 `json:"forks"` ForksCount int64 `json:"forks_count"` ForksUrl string `json:"forks_url"` FullName string `json:"full_name"` GitCommitsUrl string `json:"git_commits_url"` GitRefsUrl string `json:"git_refs_url"` GitTagsUrl string `json:"git_tags_url"` GitUrl string `json:"git_url"` HasDownloads bool `json:"has_downloads"` HasIssues bool `json:"has_issues"` HasPages bool `json:"has_pages"` HasProjects bool `json:"has_projects"` HasWiki bool `json:"has_wiki"` Homepage string `json:"homepage"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` IssueCommentUrl string `json:"issue_comment_url"` IssueEventsUrl string `json:"issue_events_url"` IssuesUrl string `json:"issues_url"` KeysUrl string `json:"keys_url"` LabelsUrl string `json:"labels_url"` Language string `json:"language"` LanguagesUrl string `json:"languages_url"` License *RepoSearchResultItemLicense `json:"license"` MasterBranch string `json:"master_branch,omitempty"` MergesUrl string `json:"merges_url"` MilestonesUrl string `json:"milestones_url"` MirrorUrl string `json:"mirror_url"` Name string `json:"name"` NodeId string `json:"node_id"` NotificationsUrl string `json:"notifications_url"` OpenIssues int64 `json:"open_issues"` OpenIssuesCount int64 `json:"open_issues_count"` Owner *RepoSearchResultItemOwner `json:"owner"` Permissions RepoSearchResultItemPermissions `json:"permissions,omitempty"` Private bool `json:"private"` PullsUrl string `json:"pulls_url"` PushedAt string `json:"pushed_at"` ReleasesUrl string `json:"releases_url"` Score int64 `json:"score"` Size int64 `json:"size"` SshUrl string `json:"ssh_url"` StargazersCount int64 `json:"stargazers_count"` StargazersUrl string `json:"stargazers_url"` StatusesUrl string `json:"statuses_url"` SubscribersUrl string `json:"subscribers_url"` SubscriptionUrl string `json:"subscription_url"` SvnUrl string `json:"svn_url"` TagsUrl string `json:"tags_url"` TeamsUrl string `json:"teams_url"` TempCloneToken string `json:"temp_clone_token,omitempty"` TextMatches SearchResultTextMatches `json:"text_matches,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` Watchers int64 `json:"watchers"` WatchersCount int64 `json:"watchers_count"` }
type RepoSearchResultItemLicense ¶ added in v0.5.0
type RepoSearchResultItemOwner ¶ added in v0.1.0
type RepoSearchResultItemOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RepoSearchResultItemPermissions ¶ added in v0.5.0
type Repository ¶
type Repository struct { // Whether to allow merge commits for pull requests. AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` // Whether to allow rebase merges for pull requests. AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` // Whether to allow squash merges for pull requests. AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` ArchiveUrl string `json:"archive_url"` // Whether the repository is archived. Archived bool `json:"archived"` AssigneesUrl string `json:"assignees_url"` BlobsUrl string `json:"blobs_url"` BranchesUrl string `json:"branches_url"` CloneUrl string `json:"clone_url"` CollaboratorsUrl string `json:"collaborators_url"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CompareUrl string `json:"compare_url"` ContentsUrl string `json:"contents_url"` ContributorsUrl string `json:"contributors_url"` CreatedAt string `json:"created_at"` // The default branch of the repository. DefaultBranch string `json:"default_branch"` // Whether to delete head branches when pull requests are merged DeleteBranchOnMerge bool `json:"delete_branch_on_merge,omitempty"` DeploymentsUrl string `json:"deployments_url"` Description string `json:"description"` // Returns whether or not this repository disabled. Disabled bool `json:"disabled"` DownloadsUrl string `json:"downloads_url"` EventsUrl string `json:"events_url"` Fork bool `json:"fork"` Forks int64 `json:"forks"` ForksCount int64 `json:"forks_count"` ForksUrl string `json:"forks_url"` FullName string `json:"full_name"` GitCommitsUrl string `json:"git_commits_url"` GitRefsUrl string `json:"git_refs_url"` GitTagsUrl string `json:"git_tags_url"` GitUrl string `json:"git_url"` // Whether downloads are enabled. HasDownloads bool `json:"has_downloads"` // Whether issues are enabled. HasIssues bool `json:"has_issues"` HasPages bool `json:"has_pages"` // Whether projects are enabled. HasProjects bool `json:"has_projects"` // Whether the wiki is enabled. HasWiki bool `json:"has_wiki"` Homepage string `json:"homepage"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` // Unique identifier of the repository Id int64 `json:"id"` // Whether this repository acts as a template that can be used to generate new repositories. IsTemplate bool `json:"is_template,omitempty"` IssueCommentUrl string `json:"issue_comment_url"` IssueEventsUrl string `json:"issue_events_url"` IssuesUrl string `json:"issues_url"` KeysUrl string `json:"keys_url"` LabelsUrl string `json:"labels_url"` Language string `json:"language"` LanguagesUrl string `json:"languages_url"` License *RepositoryLicense `json:"license"` MasterBranch string `json:"master_branch,omitempty"` MergesUrl string `json:"merges_url"` MilestonesUrl string `json:"milestones_url"` MirrorUrl string `json:"mirror_url"` // The name of the repository. Name string `json:"name"` NetworkCount int64 `json:"network_count,omitempty"` NodeId string `json:"node_id"` NotificationsUrl string `json:"notifications_url"` OpenIssues int64 `json:"open_issues"` OpenIssuesCount int64 `json:"open_issues_count"` Owner *RepositoryOwner `json:"owner"` Permissions RepositoryPermissions `json:"permissions,omitempty"` // Whether the repository is private or public. Private bool `json:"private"` PullsUrl string `json:"pulls_url"` PushedAt string `json:"pushed_at"` ReleasesUrl string `json:"releases_url"` Size int64 `json:"size"` SshUrl string `json:"ssh_url"` StargazersCount int64 `json:"stargazers_count"` StargazersUrl string `json:"stargazers_url"` StarredAt string `json:"starred_at,omitempty"` StatusesUrl string `json:"statuses_url"` SubscribersCount int64 `json:"subscribers_count,omitempty"` SubscribersUrl string `json:"subscribers_url"` SubscriptionUrl string `json:"subscription_url"` SvnUrl string `json:"svn_url"` TagsUrl string `json:"tags_url"` TeamsUrl string `json:"teams_url"` TempCloneToken string `json:"temp_clone_token,omitempty"` TemplateRepository *RepositoryTemplateRepository `json:"template_repository,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` // The repository visibility: public, private, or internal. Visibility string `json:"visibility,omitempty"` Watchers int64 `json:"watchers"` WatchersCount int64 `json:"watchers_count"` }
type RepositoryCollaboratorPermission ¶
type RepositoryCollaboratorPermission struct { Permission string `json:"permission"` User *RepositoryCollaboratorPermissionUser `json:"user"` }
type RepositoryCollaboratorPermissionUser ¶ added in v0.1.0
type RepositoryCollaboratorPermissionUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RepositoryInvitation ¶
type RepositoryInvitation struct { CreatedAt string `json:"created_at"` HtmlUrl string `json:"html_url"` // Unique identifier of the repository invitation. Id int64 `json:"id"` Invitee *RepositoryInvitationInvitee `json:"invitee"` Inviter *RepositoryInvitationInviter `json:"inviter"` NodeId string `json:"node_id"` // The permission associated with the invitation. Permissions string `json:"permissions"` // Minimal Repository Repository MinimalRepository `json:"repository"` // URL for the repository invitation Url string `json:"url"` }
type RepositoryInvitationInvitee ¶ added in v0.1.0
type RepositoryInvitationInvitee struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RepositoryInvitationInviter ¶ added in v0.1.0
type RepositoryInvitationInviter struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RepositoryLicense ¶ added in v0.6.0
type RepositoryOwner ¶ added in v0.1.0
type RepositoryOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RepositoryPermissions ¶ added in v0.1.0
type RepositorySubscription ¶
type RepositorySubscription struct { CreatedAt string `json:"created_at"` // Determines if all notifications should be blocked from this repository. Ignored bool `json:"ignored"` Reason string `json:"reason"` RepositoryUrl string `json:"repository_url"` // Determines if notifications should be received from this repository. Subscribed bool `json:"subscribed"` Url string `json:"url"` }
type RepositoryTemplateRepository ¶ added in v0.6.0
type RepositoryTemplateRepository struct { AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` ArchiveUrl string `json:"archive_url,omitempty"` Archived bool `json:"archived,omitempty"` AssigneesUrl string `json:"assignees_url,omitempty"` BlobsUrl string `json:"blobs_url,omitempty"` BranchesUrl string `json:"branches_url,omitempty"` CloneUrl string `json:"clone_url,omitempty"` CollaboratorsUrl string `json:"collaborators_url,omitempty"` CommentsUrl string `json:"comments_url,omitempty"` CommitsUrl string `json:"commits_url,omitempty"` CompareUrl string `json:"compare_url,omitempty"` ContentsUrl string `json:"contents_url,omitempty"` ContributorsUrl string `json:"contributors_url,omitempty"` CreatedAt string `json:"created_at,omitempty"` DefaultBranch string `json:"default_branch,omitempty"` DeleteBranchOnMerge bool `json:"delete_branch_on_merge,omitempty"` DeploymentsUrl string `json:"deployments_url,omitempty"` Description string `json:"description,omitempty"` Disabled bool `json:"disabled,omitempty"` DownloadsUrl string `json:"downloads_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` Fork bool `json:"fork,omitempty"` ForksCount int64 `json:"forks_count,omitempty"` ForksUrl string `json:"forks_url,omitempty"` FullName string `json:"full_name,omitempty"` GitCommitsUrl string `json:"git_commits_url,omitempty"` GitRefsUrl string `json:"git_refs_url,omitempty"` GitTagsUrl string `json:"git_tags_url,omitempty"` GitUrl string `json:"git_url,omitempty"` HasDownloads bool `json:"has_downloads,omitempty"` HasIssues bool `json:"has_issues,omitempty"` HasPages bool `json:"has_pages,omitempty"` HasProjects bool `json:"has_projects,omitempty"` HasWiki bool `json:"has_wiki,omitempty"` Homepage string `json:"homepage,omitempty"` HooksUrl string `json:"hooks_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` IsTemplate bool `json:"is_template,omitempty"` IssueCommentUrl string `json:"issue_comment_url,omitempty"` IssueEventsUrl string `json:"issue_events_url,omitempty"` IssuesUrl string `json:"issues_url,omitempty"` KeysUrl string `json:"keys_url,omitempty"` LabelsUrl string `json:"labels_url,omitempty"` Language string `json:"language,omitempty"` LanguagesUrl string `json:"languages_url,omitempty"` MergesUrl string `json:"merges_url,omitempty"` MilestonesUrl string `json:"milestones_url,omitempty"` MirrorUrl string `json:"mirror_url,omitempty"` Name string `json:"name,omitempty"` NetworkCount int64 `json:"network_count,omitempty"` NodeId string `json:"node_id,omitempty"` NotificationsUrl string `json:"notifications_url,omitempty"` OpenIssuesCount int64 `json:"open_issues_count,omitempty"` Owner RepositoryTemplateRepositoryOwner `json:"owner,omitempty"` Permissions RepositoryTemplateRepositoryPermissions `json:"permissions,omitempty"` Private bool `json:"private,omitempty"` PullsUrl string `json:"pulls_url,omitempty"` PushedAt string `json:"pushed_at,omitempty"` ReleasesUrl string `json:"releases_url,omitempty"` Size int64 `json:"size,omitempty"` SshUrl string `json:"ssh_url,omitempty"` StargazersCount int64 `json:"stargazers_count,omitempty"` StargazersUrl string `json:"stargazers_url,omitempty"` StatusesUrl string `json:"statuses_url,omitempty"` SubscribersCount int64 `json:"subscribers_count,omitempty"` SubscribersUrl string `json:"subscribers_url,omitempty"` SubscriptionUrl string `json:"subscription_url,omitempty"` SvnUrl string `json:"svn_url,omitempty"` TagsUrl string `json:"tags_url,omitempty"` TeamsUrl string `json:"teams_url,omitempty"` TempCloneToken string `json:"temp_clone_token,omitempty"` TemplateRepository string `json:"template_repository,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` Visibility string `json:"visibility,omitempty"` WatchersCount int64 `json:"watchers_count,omitempty"` }
type RepositoryTemplateRepositoryOwner ¶ added in v0.6.0
type RepositoryTemplateRepositoryOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RepositoryTemplateRepositoryPermissions ¶ added in v0.6.0
type ResponseErrorData ¶ added in v0.8.0
type ResponseErrorData struct { DocumentationUrl string `json:"documentation_url,omitempty"` Message string `json:"message,omitempty"` Errors []struct { Code string `json:"code,omitempty"` Field string `json:"field,omitempty"` Message string `json:"message,omitempty"` Resource string `json:"resource,omitempty"` } `json:"errors,omitempty"` }
ResponseErrorData all 4xx response bodies and maybe some 5xx should unmarshal to this
type ReviewComment ¶ added in v0.5.0
type ReviewComment struct { Links ReviewCommentLinks `json:"_links"` AuthorAssociation string `json:"author_association"` Body string `json:"body"` BodyHtml string `json:"body_html,omitempty"` BodyText string `json:"body_text,omitempty"` CommitId string `json:"commit_id"` CreatedAt string `json:"created_at"` DiffHunk string `json:"diff_hunk"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` InReplyToId int64 `json:"in_reply_to_id,omitempty"` // The line of the blob to which the comment applies. The last line of the range for a multi-line comment Line int64 `json:"line,omitempty"` NodeId string `json:"node_id"` OriginalCommitId string `json:"original_commit_id"` // The original line of the blob to which the comment applies. The last line of the range for a multi-line comment OriginalLine int64 `json:"original_line,omitempty"` OriginalPosition int64 `json:"original_position"` // The original first line of the range for a multi-line comment. OriginalStartLine int64 `json:"original_start_line,omitempty"` Path string `json:"path"` Position int64 `json:"position"` PullRequestReviewId int64 `json:"pull_request_review_id"` PullRequestUrl string `json:"pull_request_url"` // The side of the first line of the range for a multi-line comment. Side string `json:"side,omitempty"` // The first line of the range for a multi-line comment. StartLine int64 `json:"start_line,omitempty"` // The side of the first line of the range for a multi-line comment. StartSide string `json:"start_side,omitempty"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` User *ReviewCommentUser `json:"user"` }
type ReviewCommentLinks ¶ added in v0.5.0
type ReviewCommentUser ¶ added in v0.5.0
type ReviewCommentUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type RunnerApplication ¶
type ScimUser ¶
type ScimUser struct { // The active status of the User. Active bool `json:"active"` // user emails Emails []ScimUserEmailsItem `json:"emails"` // The ID of the User. ExternalId string `json:"externalId"` // associated groups Groups []ScimUserGroupsItem `json:"groups,omitempty"` // Unique identifier of an external identity Id string `json:"id"` Meta ScimUserMeta `json:"meta"` Name ScimUserName `json:"name"` // Set of operations to be performed Operations []ScimUserOperationsItem `json:"operations,omitempty"` // The ID of the organization. OrganizationId int64 `json:"organization_id,omitempty"` // SCIM schema used. Schemas []string `json:"schemas"` // Configured by the admin. Could be an email, login, or username UserName string `json:"userName"` }
type ScimUserEmailsItem ¶ added in v0.1.0
type ScimUserGroupsItem ¶ added in v0.5.0
type ScimUserList ¶
type ScimUserMeta ¶ added in v0.1.0
type ScimUserName ¶ added in v0.1.0
type ScimUserOperationsItem ¶ added in v0.5.0
type ScimUserOperationsItem struct { Op string `json:"op"` Path string `json:"path,omitempty"` Value ScimUserOperationsItemValue `json:"value,omitempty"` }
type ScimUserOperationsItemValue ¶ added in v0.5.0
type ScimUserOperationsItemValue struct {
// contains filtered or unexported fields
}
func (*ScimUserOperationsItemValue) MarshalJSON ¶ added in v0.5.0
func (c *ScimUserOperationsItemValue) MarshalJSON() ([]byte, error)
func (*ScimUserOperationsItemValue) SetValue ¶ added in v0.5.0
func (c *ScimUserOperationsItemValue) SetValue(value interface{})
SetValue sets ScimUserOperationsItemValue's value. The type must be one of string, components.ScimUserOperationsItemValueAsObject or []interface{}.
func (*ScimUserOperationsItemValue) UnmarshalJSON ¶ added in v0.5.0
func (c *ScimUserOperationsItemValue) UnmarshalJSON(data []byte) error
func (*ScimUserOperationsItemValue) Value ¶ added in v0.5.0
func (c *ScimUserOperationsItemValue) Value() interface{}
Value returns ScimUserOperationsItemValue's value. The type will be one of string, components.ScimUserOperationsItemValueAsObject or []interface{}.
type ScimUserOperationsItemValueAsObject ¶ added in v0.5.0
type ScimUserOperationsItemValueAsObject interface{}
type ScopedInstallation ¶ added in v0.5.0
type ScopedInstallation struct { // Simple User Account *SimpleUser `json:"account"` Permissions ScopedInstallationPermissions `json:"permissions"` RepositoriesUrl string `json:"repositories_url"` // Describe whether all repositories have been selected or there's a selection involved RepositorySelection string `json:"repository_selection"` SingleFileName string `json:"single_file_name"` }
type ScopedInstallationPermissions ¶ added in v0.5.0
type ScopedInstallationPermissions interface{}
type SearchResultTextMatches ¶ added in v0.5.0
type SearchResultTextMatches []struct { Fragment string `json:"fragment,omitempty"` Matches []struct { Indices []int64 `json:"indices,omitempty"` Text string `json:"text,omitempty"` } `json:"matches,omitempty"` ObjectType string `json:"object_type,omitempty"` ObjectUrl string `json:"object_url,omitempty"` Property string `json:"property,omitempty"` }
type ShortBranch ¶ added in v0.5.0
type ShortBranch struct { Commit ShortBranchCommit `json:"commit"` Name string `json:"name"` Protected bool `json:"protected"` // Branch Protection Protection BranchProtection `json:"protection,omitempty"` ProtectionUrl string `json:"protection_url,omitempty"` }
type ShortBranchCommit ¶ added in v0.5.0
type SimpleCommit ¶
type SimpleCommit struct { Author *SimpleCommitAuthor `json:"author"` Committer *SimpleCommitCommitter `json:"committer"` Id string `json:"id"` Message string `json:"message"` Timestamp string `json:"timestamp"` TreeId string `json:"tree_id"` }
type SimpleCommitAuthor ¶ added in v0.1.0
type SimpleCommitCommitter ¶ added in v0.1.0
type SimpleCommitStatus ¶ added in v0.5.0
type SimpleCommitStatus struct { AvatarUrl string `json:"avatar_url"` Context string `json:"context"` CreatedAt string `json:"created_at"` Description string `json:"description"` Id int64 `json:"id"` NodeId string `json:"node_id"` Required bool `json:"required,omitempty"` State string `json:"state"` TargetUrl string `json:"target_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type SimpleUser ¶
type SimpleUser struct { AvatarUrl string `json:"avatar_url"` EventsUrl string `json:"events_url"` FollowersUrl string `json:"followers_url"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Login string `json:"login"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` SiteAdmin bool `json:"site_admin"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` Type string `json:"type"` Url string `json:"url"` }
type Stargazer ¶
type Stargazer struct { StarredAt string `json:"starred_at"` User *StargazerUser `json:"user"` }
type StargazerUser ¶ added in v0.1.0
type StargazerUser struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type StarredRepository ¶
type StarredRepository struct { // A git repository Repo Repository `json:"repo"` StarredAt string `json:"starred_at"` }
type Status ¶
type Status struct { AvatarUrl string `json:"avatar_url,omitempty"` Context string `json:"context,omitempty"` CreatedAt string `json:"created_at,omitempty"` // Simple User Creator *SimpleUser `json:"creator,omitempty"` Description string `json:"description,omitempty"` Id int64 `json:"id,omitempty"` NodeId string `json:"node_id,omitempty"` State string `json:"state,omitempty"` TargetUrl string `json:"target_url,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type StatusCheckPolicy ¶
type Team ¶
type Team struct { Description string `json:"description"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` MembersUrl string `json:"members_url"` Name string `json:"name"` NodeId string `json:"node_id"` Parent *TeamParent `json:"parent,omitempty"` Permission string `json:"permission"` Privacy string `json:"privacy,omitempty"` RepositoriesUrl string `json:"repositories_url"` Slug string `json:"slug"` Url string `json:"url"` }
type TeamDiscussion ¶
type TeamDiscussion struct { Author *TeamDiscussionAuthor `json:"author"` // The main text of the discussion. Body string `json:"body"` BodyHtml string `json:"body_html"` /* The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. */ BodyVersion string `json:"body_version"` CommentsCount int64 `json:"comments_count"` CommentsUrl string `json:"comments_url"` CreatedAt string `json:"created_at"` HtmlUrl string `json:"html_url"` LastEditedAt string `json:"last_edited_at"` NodeId string `json:"node_id"` // The unique sequence number of a team discussion. Number int64 `json:"number"` // Whether or not this discussion should be pinned for easy retrieval. Pinned bool `json:"pinned"` // Whether or not this discussion should be restricted to team members and organization administrators. Private bool `json:"private"` Reactions ReactionRollup `json:"reactions,omitempty"` TeamUrl string `json:"team_url"` // The title of the discussion. Title string `json:"title"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type TeamDiscussionAuthor ¶ added in v0.1.0
type TeamDiscussionAuthor struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type TeamDiscussionComment ¶
type TeamDiscussionComment struct { Author *TeamDiscussionCommentAuthor `json:"author"` // The main text of the comment. Body string `json:"body"` BodyHtml string `json:"body_html"` /* The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. */ BodyVersion string `json:"body_version"` CreatedAt string `json:"created_at"` DiscussionUrl string `json:"discussion_url"` HtmlUrl string `json:"html_url"` LastEditedAt string `json:"last_edited_at"` NodeId string `json:"node_id"` // The unique sequence number of a team discussion comment. Number int64 `json:"number"` Reactions ReactionRollup `json:"reactions,omitempty"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type TeamDiscussionCommentAuthor ¶ added in v0.1.0
type TeamDiscussionCommentAuthor struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type TeamFull ¶
type TeamFull struct { CreatedAt string `json:"created_at"` Description string `json:"description"` HtmlUrl string `json:"html_url"` // Unique identifier of the team Id int64 `json:"id"` // Distinguished Name (DN) that team maps to within LDAP environment LdapDn string `json:"ldap_dn,omitempty"` MembersCount int64 `json:"members_count"` MembersUrl string `json:"members_url"` // Name of the team Name string `json:"name"` NodeId string `json:"node_id"` // GitHub account for managing multiple users, teams, and repositories Organization Organization `json:"organization"` Parent *TeamFullParent `json:"parent,omitempty"` // Permission that the team will have for its repositories Permission string `json:"permission"` // The level of privacy this team should have Privacy string `json:"privacy,omitempty"` ReposCount int64 `json:"repos_count"` RepositoriesUrl string `json:"repositories_url"` Slug string `json:"slug"` UpdatedAt string `json:"updated_at"` // URL for the team Url string `json:"url"` }
type TeamFullParent ¶ added in v0.5.0
type TeamFullParent struct { // Description of the team Description string `json:"description,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the team Id int64 `json:"id,omitempty"` // Distinguished Name (DN) that team maps to within LDAP environment LdapDn string `json:"ldap_dn,omitempty"` MembersUrl string `json:"members_url,omitempty"` // Name of the team Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` // Permission that the team will have for its repositories Permission string `json:"permission,omitempty"` // The level of privacy this team should have Privacy string `json:"privacy,omitempty"` RepositoriesUrl string `json:"repositories_url,omitempty"` Slug string `json:"slug,omitempty"` // URL for the team Url string `json:"url,omitempty"` }
type TeamMembership ¶
type TeamParent ¶ added in v0.6.0
type TeamParent struct { // Description of the team Description string `json:"description,omitempty"` HtmlUrl string `json:"html_url,omitempty"` // Unique identifier of the team Id int64 `json:"id,omitempty"` // Distinguished Name (DN) that team maps to within LDAP environment LdapDn string `json:"ldap_dn,omitempty"` MembersUrl string `json:"members_url,omitempty"` // Name of the team Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` // Permission that the team will have for its repositories Permission string `json:"permission,omitempty"` // The level of privacy this team should have Privacy string `json:"privacy,omitempty"` RepositoriesUrl string `json:"repositories_url,omitempty"` Slug string `json:"slug,omitempty"` // URL for the team Url string `json:"url,omitempty"` }
type TeamProject ¶
type TeamProject struct { Body string `json:"body,omitempty"` ColumnsUrl string `json:"columns_url,omitempty"` CreatedAt string `json:"created_at,omitempty"` // Simple User Creator *SimpleUser `json:"creator,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` NodeId string `json:"node_id,omitempty"` Number int64 `json:"number,omitempty"` OrganizationPermission string `json:"organization_permission,omitempty"` OwnerUrl string `json:"owner_url,omitempty"` Permissions TeamProjectPermissions `json:"permissions,omitempty"` Private bool `json:"private,omitempty"` State string `json:"state,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type TeamProjectPermissions ¶ added in v0.1.0
type TeamRepository ¶
type TeamRepository struct { // Whether to allow merge commits for pull requests. AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` // Whether to allow rebase merges for pull requests. AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` // Whether to allow squash merges for pull requests. AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` ArchiveUrl string `json:"archive_url"` // Whether the repository is archived. Archived bool `json:"archived"` AssigneesUrl string `json:"assignees_url"` BlobsUrl string `json:"blobs_url"` BranchesUrl string `json:"branches_url"` CloneUrl string `json:"clone_url"` CollaboratorsUrl string `json:"collaborators_url"` CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` CompareUrl string `json:"compare_url"` ContentsUrl string `json:"contents_url"` ContributorsUrl string `json:"contributors_url"` CreatedAt string `json:"created_at"` // The default branch of the repository. DefaultBranch string `json:"default_branch"` // Whether to delete head branches when pull requests are merged DeleteBranchOnMerge bool `json:"delete_branch_on_merge,omitempty"` DeploymentsUrl string `json:"deployments_url"` Description string `json:"description"` // Returns whether or not this repository disabled. Disabled bool `json:"disabled"` DownloadsUrl string `json:"downloads_url"` EventsUrl string `json:"events_url"` Fork bool `json:"fork"` Forks int64 `json:"forks"` ForksCount int64 `json:"forks_count"` ForksUrl string `json:"forks_url"` FullName string `json:"full_name"` GitCommitsUrl string `json:"git_commits_url"` GitRefsUrl string `json:"git_refs_url"` GitTagsUrl string `json:"git_tags_url"` GitUrl string `json:"git_url"` // Whether downloads are enabled. HasDownloads bool `json:"has_downloads"` // Whether issues are enabled. HasIssues bool `json:"has_issues"` HasPages bool `json:"has_pages"` // Whether projects are enabled. HasProjects bool `json:"has_projects"` // Whether the wiki is enabled. HasWiki bool `json:"has_wiki"` Homepage string `json:"homepage"` HooksUrl string `json:"hooks_url"` HtmlUrl string `json:"html_url"` // Unique identifier of the repository Id int64 `json:"id"` // Whether this repository acts as a template that can be used to generate new repositories. IsTemplate bool `json:"is_template,omitempty"` IssueCommentUrl string `json:"issue_comment_url"` IssueEventsUrl string `json:"issue_events_url"` IssuesUrl string `json:"issues_url"` KeysUrl string `json:"keys_url"` LabelsUrl string `json:"labels_url"` Language string `json:"language"` LanguagesUrl string `json:"languages_url"` License *TeamRepositoryLicense `json:"license"` MasterBranch string `json:"master_branch,omitempty"` MergesUrl string `json:"merges_url"` MilestonesUrl string `json:"milestones_url"` MirrorUrl string `json:"mirror_url"` // The name of the repository. Name string `json:"name"` NetworkCount int64 `json:"network_count,omitempty"` NodeId string `json:"node_id"` NotificationsUrl string `json:"notifications_url"` OpenIssues int64 `json:"open_issues"` OpenIssuesCount int64 `json:"open_issues_count"` Owner *TeamRepositoryOwner `json:"owner"` Permissions TeamRepositoryPermissions `json:"permissions,omitempty"` // Whether the repository is private or public. Private bool `json:"private"` PullsUrl string `json:"pulls_url"` PushedAt string `json:"pushed_at"` ReleasesUrl string `json:"releases_url"` Size int64 `json:"size"` SshUrl string `json:"ssh_url"` StargazersCount int64 `json:"stargazers_count"` StargazersUrl string `json:"stargazers_url"` StatusesUrl string `json:"statuses_url"` SubscribersCount int64 `json:"subscribers_count,omitempty"` SubscribersUrl string `json:"subscribers_url"` SubscriptionUrl string `json:"subscription_url"` SvnUrl string `json:"svn_url"` TagsUrl string `json:"tags_url"` TeamsUrl string `json:"teams_url"` TempCloneToken string `json:"temp_clone_token,omitempty"` TemplateRepository *TeamRepositoryTemplateRepository `json:"template_repository,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` // The repository visibility: public, private, or internal. Visibility string `json:"visibility,omitempty"` Watchers int64 `json:"watchers"` WatchersCount int64 `json:"watchers_count"` }
type TeamRepositoryLicense ¶ added in v0.5.0
type TeamRepositoryOwner ¶ added in v0.5.0
type TeamRepositoryOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredAt string `json:"starred_at,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type TeamRepositoryPermissions ¶ added in v0.1.0
type TeamRepositoryTemplateRepository ¶ added in v0.5.0
type TeamRepositoryTemplateRepository struct { AllowMergeCommit bool `json:"allow_merge_commit,omitempty"` AllowRebaseMerge bool `json:"allow_rebase_merge,omitempty"` AllowSquashMerge bool `json:"allow_squash_merge,omitempty"` ArchiveUrl string `json:"archive_url,omitempty"` Archived bool `json:"archived,omitempty"` AssigneesUrl string `json:"assignees_url,omitempty"` BlobsUrl string `json:"blobs_url,omitempty"` BranchesUrl string `json:"branches_url,omitempty"` CloneUrl string `json:"clone_url,omitempty"` CollaboratorsUrl string `json:"collaborators_url,omitempty"` CommentsUrl string `json:"comments_url,omitempty"` CommitsUrl string `json:"commits_url,omitempty"` CompareUrl string `json:"compare_url,omitempty"` ContentsUrl string `json:"contents_url,omitempty"` ContributorsUrl string `json:"contributors_url,omitempty"` CreatedAt string `json:"created_at,omitempty"` DefaultBranch string `json:"default_branch,omitempty"` DeleteBranchOnMerge bool `json:"delete_branch_on_merge,omitempty"` DeploymentsUrl string `json:"deployments_url,omitempty"` Description string `json:"description,omitempty"` Disabled bool `json:"disabled,omitempty"` DownloadsUrl string `json:"downloads_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` Fork bool `json:"fork,omitempty"` ForksCount int64 `json:"forks_count,omitempty"` ForksUrl string `json:"forks_url,omitempty"` FullName string `json:"full_name,omitempty"` GitCommitsUrl string `json:"git_commits_url,omitempty"` GitRefsUrl string `json:"git_refs_url,omitempty"` GitTagsUrl string `json:"git_tags_url,omitempty"` GitUrl string `json:"git_url,omitempty"` HasDownloads bool `json:"has_downloads,omitempty"` HasIssues bool `json:"has_issues,omitempty"` HasPages bool `json:"has_pages,omitempty"` HasProjects bool `json:"has_projects,omitempty"` HasWiki bool `json:"has_wiki,omitempty"` Homepage string `json:"homepage,omitempty"` HooksUrl string `json:"hooks_url,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` IsTemplate bool `json:"is_template,omitempty"` IssueCommentUrl string `json:"issue_comment_url,omitempty"` IssueEventsUrl string `json:"issue_events_url,omitempty"` IssuesUrl string `json:"issues_url,omitempty"` KeysUrl string `json:"keys_url,omitempty"` LabelsUrl string `json:"labels_url,omitempty"` Language string `json:"language,omitempty"` LanguagesUrl string `json:"languages_url,omitempty"` MergesUrl string `json:"merges_url,omitempty"` MilestonesUrl string `json:"milestones_url,omitempty"` MirrorUrl string `json:"mirror_url,omitempty"` Name string `json:"name,omitempty"` NetworkCount int64 `json:"network_count,omitempty"` NodeId string `json:"node_id,omitempty"` NotificationsUrl string `json:"notifications_url,omitempty"` OpenIssuesCount int64 `json:"open_issues_count,omitempty"` Owner TeamRepositoryTemplateRepositoryOwner `json:"owner,omitempty"` Permissions TeamRepositoryTemplateRepositoryPermissions `json:"permissions,omitempty"` Private bool `json:"private,omitempty"` PullsUrl string `json:"pulls_url,omitempty"` PushedAt string `json:"pushed_at,omitempty"` ReleasesUrl string `json:"releases_url,omitempty"` Size int64 `json:"size,omitempty"` SshUrl string `json:"ssh_url,omitempty"` StargazersCount int64 `json:"stargazers_count,omitempty"` StargazersUrl string `json:"stargazers_url,omitempty"` StatusesUrl string `json:"statuses_url,omitempty"` SubscribersCount int64 `json:"subscribers_count,omitempty"` SubscribersUrl string `json:"subscribers_url,omitempty"` SubscriptionUrl string `json:"subscription_url,omitempty"` SvnUrl string `json:"svn_url,omitempty"` TagsUrl string `json:"tags_url,omitempty"` TeamsUrl string `json:"teams_url,omitempty"` TempCloneToken string `json:"temp_clone_token,omitempty"` TemplateRepository string `json:"template_repository,omitempty"` Topics []string `json:"topics,omitempty"` TreesUrl string `json:"trees_url,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` Visibility string `json:"visibility,omitempty"` WatchersCount int64 `json:"watchers_count,omitempty"` }
type TeamRepositoryTemplateRepositoryOwner ¶ added in v0.5.0
type TeamRepositoryTemplateRepositoryOwner struct { AvatarUrl string `json:"avatar_url,omitempty"` EventsUrl string `json:"events_url,omitempty"` FollowersUrl string `json:"followers_url,omitempty"` FollowingUrl string `json:"following_url,omitempty"` GistsUrl string `json:"gists_url,omitempty"` GravatarId string `json:"gravatar_id,omitempty"` HtmlUrl string `json:"html_url,omitempty"` Id int64 `json:"id,omitempty"` Login string `json:"login,omitempty"` NodeId string `json:"node_id,omitempty"` OrganizationsUrl string `json:"organizations_url,omitempty"` ReceivedEventsUrl string `json:"received_events_url,omitempty"` ReposUrl string `json:"repos_url,omitempty"` SiteAdmin bool `json:"site_admin,omitempty"` StarredUrl string `json:"starred_url,omitempty"` SubscriptionsUrl string `json:"subscriptions_url,omitempty"` Type string `json:"type,omitempty"` Url string `json:"url,omitempty"` }
type TeamRepositoryTemplateRepositoryPermissions ¶ added in v0.5.0
type TeamSimple ¶ added in v0.5.0
type TeamSimple struct { // Description of the team Description string `json:"description"` HtmlUrl string `json:"html_url"` // Unique identifier of the team Id int64 `json:"id"` // Distinguished Name (DN) that team maps to within LDAP environment LdapDn string `json:"ldap_dn,omitempty"` MembersUrl string `json:"members_url"` // Name of the team Name string `json:"name"` NodeId string `json:"node_id"` // Permission that the team will have for its repositories Permission string `json:"permission"` // The level of privacy this team should have Privacy string `json:"privacy,omitempty"` RepositoriesUrl string `json:"repositories_url"` Slug string `json:"slug"` // URL for the team Url string `json:"url"` }
type Thread ¶
type Thread struct { Id string `json:"id,omitempty"` LastReadAt string `json:"last_read_at,omitempty"` Reason string `json:"reason,omitempty"` // Minimal Repository Repository MinimalRepository `json:"repository,omitempty"` Subject ThreadSubject `json:"subject,omitempty"` SubscriptionUrl string `json:"subscription_url,omitempty"` Unread bool `json:"unread,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url,omitempty"` }
type ThreadSubject ¶ added in v0.1.0
type ThreadSubscription ¶
type TopicSearchResultItem ¶
type TopicSearchResultItem struct { Aliases []TopicSearchResultItemAliasesItem `json:"aliases,omitempty"` CreatedAt string `json:"created_at"` CreatedBy string `json:"created_by"` Curated bool `json:"curated"` Description string `json:"description"` DisplayName string `json:"display_name"` Featured bool `json:"featured"` LogoUrl string `json:"logo_url,omitempty"` Name string `json:"name"` Related []TopicSearchResultItemRelatedItem `json:"related,omitempty"` Released string `json:"released"` RepositoryCount int64 `json:"repository_count,omitempty"` Score int64 `json:"score"` ShortDescription string `json:"short_description"` TextMatches SearchResultTextMatches `json:"text_matches,omitempty"` UpdatedAt string `json:"updated_at"` }
type TopicSearchResultItemAliasesItem ¶ added in v0.5.0
type TopicSearchResultItemAliasesItem struct {
TopicRelation TopicSearchResultItemAliasesItemTopicRelation `json:"topic_relation,omitempty"`
}
type TopicSearchResultItemAliasesItemTopicRelation ¶ added in v0.5.0
type TopicSearchResultItemRelatedItem ¶ added in v0.5.0
type TopicSearchResultItemRelatedItem struct {
TopicRelation TopicSearchResultItemRelatedItemTopicRelation `json:"topic_relation,omitempty"`
}
type TopicSearchResultItemRelatedItemTopicRelation ¶ added in v0.5.0
type UserMarketplacePurchase ¶
type UserMarketplacePurchase struct { Account MarketplaceAccount `json:"account"` BillingCycle string `json:"billing_cycle"` FreeTrialEndsOn string `json:"free_trial_ends_on"` NextBillingDate string `json:"next_billing_date"` OnFreeTrial bool `json:"on_free_trial"` // Marketplace Listing Plan Plan MarketplaceListingPlan `json:"plan"` UnitCount int64 `json:"unit_count"` UpdatedAt string `json:"updated_at"` }
type UserSearchResultItem ¶
type UserSearchResultItem struct { AvatarUrl string `json:"avatar_url"` Bio string `json:"bio,omitempty"` Blog string `json:"blog,omitempty"` Company string `json:"company,omitempty"` CreatedAt string `json:"created_at,omitempty"` Email string `json:"email,omitempty"` EventsUrl string `json:"events_url"` Followers int64 `json:"followers,omitempty"` FollowersUrl string `json:"followers_url"` Following int64 `json:"following,omitempty"` FollowingUrl string `json:"following_url"` GistsUrl string `json:"gists_url"` GravatarId string `json:"gravatar_id"` Hireable bool `json:"hireable,omitempty"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Location string `json:"location,omitempty"` Login string `json:"login"` Name string `json:"name,omitempty"` NodeId string `json:"node_id"` OrganizationsUrl string `json:"organizations_url"` PublicGists int64 `json:"public_gists,omitempty"` PublicRepos int64 `json:"public_repos,omitempty"` ReceivedEventsUrl string `json:"received_events_url"` ReposUrl string `json:"repos_url"` Score int64 `json:"score"` SiteAdmin bool `json:"site_admin"` StarredUrl string `json:"starred_url"` SubscriptionsUrl string `json:"subscriptions_url"` SuspendedAt string `json:"suspended_at,omitempty"` TextMatches SearchResultTextMatches `json:"text_matches,omitempty"` Type string `json:"type"` UpdatedAt string `json:"updated_at,omitempty"` Url string `json:"url"` }
type ValidationError ¶ added in v0.5.0
type ValidationError struct { DocumentationUrl string `json:"documentation_url"` Errors []ValidationErrorErrorsItem `json:"errors,omitempty"` Message string `json:"message"` }
type ValidationErrorErrorsItem ¶ added in v0.5.0
type ValidationErrorErrorsItemValue ¶ added in v0.5.0
type ValidationErrorErrorsItemValue struct {
// contains filtered or unexported fields
}
func (*ValidationErrorErrorsItemValue) MarshalJSON ¶ added in v0.5.0
func (c *ValidationErrorErrorsItemValue) MarshalJSON() ([]byte, error)
func (*ValidationErrorErrorsItemValue) SetValue ¶ added in v0.5.0
func (c *ValidationErrorErrorsItemValue) SetValue(value interface{})
SetValue sets ValidationErrorErrorsItemValue's value. The type must be one of string, int64 or []string.
func (*ValidationErrorErrorsItemValue) UnmarshalJSON ¶ added in v0.5.0
func (c *ValidationErrorErrorsItemValue) UnmarshalJSON(data []byte) error
func (*ValidationErrorErrorsItemValue) Value ¶ added in v0.5.0
func (c *ValidationErrorErrorsItemValue) Value() interface{}
Value returns ValidationErrorErrorsItemValue's value. The type will be one of string, int64 or []string.
type ValidationErrorSimple ¶ added in v0.5.0
type Verification ¶ added in v0.5.0
type ViewTraffic ¶
type Workflow ¶
type Workflow struct { BadgeUrl string `json:"badge_url"` CreatedAt string `json:"created_at"` DeletedAt string `json:"deleted_at,omitempty"` HtmlUrl string `json:"html_url"` Id int64 `json:"id"` Name string `json:"name"` NodeId string `json:"node_id"` Path string `json:"path"` State string `json:"state"` UpdatedAt string `json:"updated_at"` Url string `json:"url"` }
type WorkflowRun ¶
type WorkflowRun struct { // The URL to the artifacts for the workflow run. ArtifactsUrl string `json:"artifacts_url"` // The URL to cancel the workflow run. CancelUrl string `json:"cancel_url"` // The URL to the associated check suite. CheckSuiteUrl string `json:"check_suite_url"` Conclusion string `json:"conclusion"` CreatedAt string `json:"created_at"` Event string `json:"event"` HeadBranch string `json:"head_branch"` // Simple Commit HeadCommit SimpleCommit `json:"head_commit"` // Minimal Repository HeadRepository MinimalRepository `json:"head_repository"` HeadRepositoryId int64 `json:"head_repository_id,omitempty"` // The SHA of the head commit that points to the version of the worflow being run. HeadSha string `json:"head_sha"` HtmlUrl string `json:"html_url"` // The ID of the workflow run. Id int64 `json:"id"` // The URL to the jobs for the workflow run. JobsUrl string `json:"jobs_url"` // The URL to download the logs for the workflow run. LogsUrl string `json:"logs_url"` NodeId string `json:"node_id"` PullRequests []PullRequestMinimal `json:"pull_requests"` // Minimal Repository Repository MinimalRepository `json:"repository"` // The URL to rerun the workflow run. RerunUrl string `json:"rerun_url"` // The auto incrementing run number for the workflow run. RunNumber int64 `json:"run_number"` Status string `json:"status"` UpdatedAt string `json:"updated_at"` // The URL to the workflow run. Url string `json:"url"` // The ID of the parent workflow. WorkflowId int64 `json:"workflow_id"` // The URL to the workflow. WorkflowUrl string `json:"workflow_url"` }
type WorkflowRunUsage ¶
type WorkflowRunUsage struct { Billable WorkflowRunUsageBillable `json:"billable,omitempty"` RunDurationMs int64 `json:"run_duration_ms,omitempty"` }
type WorkflowRunUsageBillable ¶ added in v0.1.0
type WorkflowRunUsageBillable struct { MACOS WorkflowRunUsageBillableMACOS `json:"MACOS,omitempty"` UBUNTU WorkflowRunUsageBillableUBUNTU `json:"UBUNTU,omitempty"` WINDOWS WorkflowRunUsageBillableWINDOWS `json:"WINDOWS,omitempty"` }
type WorkflowRunUsageBillableMACOS ¶ added in v0.1.0
type WorkflowRunUsageBillableUBUNTU ¶ added in v0.1.0
type WorkflowRunUsageBillableWINDOWS ¶ added in v0.1.0
type WorkflowUsage ¶
type WorkflowUsage struct {
Billable WorkflowUsageBillable `json:"billable,omitempty"`
}
type WorkflowUsageBillable ¶ added in v0.1.0
type WorkflowUsageBillable struct { MACOS WorkflowUsageBillableMACOS `json:"MACOS,omitempty"` UBUNTU WorkflowUsageBillableUBUNTU `json:"UBUNTU,omitempty"` WINDOWS WorkflowUsageBillableWINDOWS `json:"WINDOWS,omitempty"` }
type WorkflowUsageBillableMACOS ¶ added in v0.1.0
type WorkflowUsageBillableMACOS struct {
TotalMs int64 `json:"total_ms,omitempty"`
}
type WorkflowUsageBillableUBUNTU ¶ added in v0.1.0
type WorkflowUsageBillableUBUNTU struct {
TotalMs int64 `json:"total_ms,omitempty"`
}
type WorkflowUsageBillableWINDOWS ¶ added in v0.1.0
type WorkflowUsageBillableWINDOWS struct {
TotalMs int64 `json:"total_ms,omitempty"`
}