githubapi

package
v0.0.0-...-4f81fab Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package githubapi holds GitHub REST types generated from the vendored slice of GitHub's REST API description (api/vendor/github); edit the slice, never the generated file.

Package githubapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.9.0 DO NOT EDIT.

Index

Constants

View Source
const ServerURL = "https://api.github.com"

ServerURL defines the Server URL for https://api.github.com

Variables

This section is empty.

Functions

func NewActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryRequest

func NewActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryRequest(server string, owner string, repo string) (*http.Request, error)

NewActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryRequest constructs an http.Request for the ActionsGetGithubActionsDefaultWorkflowPermissionsRepository method

func NewActionsGetGithubActionsPermissionsRepositoryRequest

func NewActionsGetGithubActionsPermissionsRepositoryRequest(server string, owner string, repo string) (*http.Request, error)

NewActionsGetGithubActionsPermissionsRepositoryRequest constructs an http.Request for the ActionsGetGithubActionsPermissionsRepository method

func NewActionsGetJobForWorkflowRunRequest

func NewActionsGetJobForWorkflowRunRequest(server string, owner string, repo string, jobID string) (*http.Request, error)

NewActionsGetJobForWorkflowRunRequest constructs an http.Request for the ActionsGetJobForWorkflowRun method

func NewActionsGetPendingDeploymentsForRunRequest

func NewActionsGetPendingDeploymentsForRunRequest(server string, owner string, repo string, runID string) (*http.Request, error)

NewActionsGetPendingDeploymentsForRunRequest constructs an http.Request for the ActionsGetPendingDeploymentsForRun method

func NewActionsListArtifactsForRepoRequest

func NewActionsListArtifactsForRepoRequest(server string, owner string, repo string, params *ActionsListArtifactsForRepoParams) (*http.Request, error)

NewActionsListArtifactsForRepoRequest constructs an http.Request for the ActionsListArtifactsForRepo method

func NewActionsListRepoVariablesRequest

func NewActionsListRepoVariablesRequest(server string, owner string, repo string, params *ActionsListRepoVariablesParams) (*http.Request, error)

NewActionsListRepoVariablesRequest constructs an http.Request for the ActionsListRepoVariables method

func NewActionsListRepoWorkflowsRequest

func NewActionsListRepoWorkflowsRequest(server string, owner string, repo string, params *ActionsListRepoWorkflowsParams) (*http.Request, error)

NewActionsListRepoWorkflowsRequest constructs an http.Request for the ActionsListRepoWorkflows method

func NewActionsListSelfHostedRunnersForRepoRequest

func NewActionsListSelfHostedRunnersForRepoRequest(server string, owner string, repo string) (*http.Request, error)

NewActionsListSelfHostedRunnersForRepoRequest constructs an http.Request for the ActionsListSelfHostedRunnersForRepo method

func NewActionsListWorkflowRunsForRepoRequest

func NewActionsListWorkflowRunsForRepoRequest(server string, owner string, repo string, params *ActionsListWorkflowRunsForRepoParams) (*http.Request, error)

NewActionsListWorkflowRunsForRepoRequest constructs an http.Request for the ActionsListWorkflowRunsForRepo method

func NewActionsListWorkflowRunsRequest

func NewActionsListWorkflowRunsRequest(server string, owner string, repo string, workflowID string, params *ActionsListWorkflowRunsParams) (*http.Request, error)

NewActionsListWorkflowRunsRequest constructs an http.Request for the ActionsListWorkflowRuns method

func NewActivityListReposStarredByUserRequest

func NewActivityListReposStarredByUserRequest(server string, username string, params *ActivityListReposStarredByUserParams) (*http.Request, error)

NewActivityListReposStarredByUserRequest constructs an http.Request for the ActivityListReposStarredByUser method

func NewAppsCreateInstallationAccessTokenRequest

func NewAppsCreateInstallationAccessTokenRequest(server string, installationID string, body AppsCreateInstallationAccessTokenJSONRequestBody) (*http.Request, error)

NewAppsCreateInstallationAccessTokenRequest calls the generic AppsCreateInstallationAccessToken builder with application/json body

func NewAppsCreateInstallationAccessTokenRequestWithBody

func NewAppsCreateInstallationAccessTokenRequestWithBody(server string, installationID string, contentType string, body io.Reader) (*http.Request, error)

NewAppsCreateInstallationAccessTokenRequestWithBody constructs an http.Request for the AppsCreateInstallationAccessToken method, with any body, and a specified content type

func NewAppsGetAuthenticatedRequest

func NewAppsGetAuthenticatedRequest(server string) (*http.Request, error)

NewAppsGetAuthenticatedRequest constructs an http.Request for the AppsGetAuthenticated method

func NewAppsGetRepoInstallationRequest

func NewAppsGetRepoInstallationRequest(server string, owner string, repo string) (*http.Request, error)

NewAppsGetRepoInstallationRequest constructs an http.Request for the AppsGetRepoInstallation method

func NewAppsListInstallationsRequest

func NewAppsListInstallationsRequest(server string, params *AppsListInstallationsParams) (*http.Request, error)

NewAppsListInstallationsRequest constructs an http.Request for the AppsListInstallations method

func NewAppsListReposAccessibleToInstallationRequest

func NewAppsListReposAccessibleToInstallationRequest(server string, params *AppsListReposAccessibleToInstallationParams) (*http.Request, error)

NewAppsListReposAccessibleToInstallationRequest constructs an http.Request for the AppsListReposAccessibleToInstallation method

func NewAppsListWebhookDeliveriesRequest

func NewAppsListWebhookDeliveriesRequest(server string, params *AppsListWebhookDeliveriesParams) (*http.Request, error)

NewAppsListWebhookDeliveriesRequest constructs an http.Request for the AppsListWebhookDeliveries method

func NewChecksCreateRequest

func NewChecksCreateRequest(server string, owner string, repo string, body ChecksCreateJSONRequestBody) (*http.Request, error)

NewChecksCreateRequest calls the generic ChecksCreate builder with application/json body

func NewChecksCreateRequestWithBody

func NewChecksCreateRequestWithBody(server string, owner string, repo string, contentType string, body io.Reader) (*http.Request, error)

NewChecksCreateRequestWithBody constructs an http.Request for the ChecksCreate method, with any body, and a specified content type

func NewChecksListForRefRequest

func NewChecksListForRefRequest(server string, owner string, repo string, ref string, params *ChecksListForRefParams) (*http.Request, error)

NewChecksListForRefRequest constructs an http.Request for the ChecksListForRef method

func NewChecksListForSuiteRequest

func NewChecksListForSuiteRequest(server string, owner string, repo string, checkSuiteID string, params *ChecksListForSuiteParams) (*http.Request, error)

NewChecksListForSuiteRequest constructs an http.Request for the ChecksListForSuite method

func NewChecksUpdateRequest

func NewChecksUpdateRequest(server string, owner string, repo string, checkRunID string, body ChecksUpdateJSONRequestBody) (*http.Request, error)

NewChecksUpdateRequest calls the generic ChecksUpdate builder with application/json body

func NewChecksUpdateRequestWithBody

func NewChecksUpdateRequestWithBody(server string, owner string, repo string, checkRunID string, contentType string, body io.Reader) (*http.Request, error)

NewChecksUpdateRequestWithBody constructs an http.Request for the ChecksUpdate method, with any body, and a specified content type

func NewCodeScanningListAlertsForRepoRequest

func NewCodeScanningListAlertsForRepoRequest(server string, owner string, repo string, params *CodeScanningListAlertsForRepoParams) (*http.Request, error)

NewCodeScanningListAlertsForRepoRequest constructs an http.Request for the CodeScanningListAlertsForRepo method

func NewDependabotListAlertsForRepoRequest

func NewDependabotListAlertsForRepoRequest(server string, owner string, repo string, params *DependabotListAlertsForRepoParams) (*http.Request, error)

NewDependabotListAlertsForRepoRequest constructs an http.Request for the DependabotListAlertsForRepo method

func NewGitGetTreeRequest

func NewGitGetTreeRequest(server string, owner string, repo string, treeSha string, params *GitGetTreeParams) (*http.Request, error)

NewGitGetTreeRequest constructs an http.Request for the GitGetTree method

func NewIssuesCreateCommentRequest

func NewIssuesCreateCommentRequest(server string, owner string, repo string, issueNumber string, body IssuesCreateCommentJSONRequestBody) (*http.Request, error)

NewIssuesCreateCommentRequest calls the generic IssuesCreateComment builder with application/json body

func NewIssuesCreateCommentRequestWithBody

func NewIssuesCreateCommentRequestWithBody(server string, owner string, repo string, issueNumber string, contentType string, body io.Reader) (*http.Request, error)

NewIssuesCreateCommentRequestWithBody constructs an http.Request for the IssuesCreateComment method, with any body, and a specified content type

func NewIssuesListCommentsRequest

func NewIssuesListCommentsRequest(server string, owner string, repo string, issueNumber string, params *IssuesListCommentsParams) (*http.Request, error)

NewIssuesListCommentsRequest constructs an http.Request for the IssuesListComments method

func NewIssuesListForRepoRequest

func NewIssuesListForRepoRequest(server string, owner string, repo string, params *IssuesListForRepoParams) (*http.Request, error)

NewIssuesListForRepoRequest constructs an http.Request for the IssuesListForRepo method

func NewIssuesUpdateRequest

func NewIssuesUpdateRequest(server string, owner string, repo string, issueNumber string, body IssuesUpdateJSONRequestBody) (*http.Request, error)

NewIssuesUpdateRequest calls the generic IssuesUpdate builder with application/json body

func NewIssuesUpdateRequestWithBody

func NewIssuesUpdateRequestWithBody(server string, owner string, repo string, issueNumber string, contentType string, body io.Reader) (*http.Request, error)

NewIssuesUpdateRequestWithBody constructs an http.Request for the IssuesUpdate method, with any body, and a specified content type

func NewPullsGetRequest

func NewPullsGetRequest(server string, owner string, repo string, pullNumber string) (*http.Request, error)

NewPullsGetRequest constructs an http.Request for the PullsGet method

func NewPullsListFilesRequest

func NewPullsListFilesRequest(server string, owner string, repo string, pullNumber string, params *PullsListFilesParams) (*http.Request, error)

NewPullsListFilesRequest constructs an http.Request for the PullsListFiles method

func NewPullsListRequest

func NewPullsListRequest(server string, owner string, repo string, params *PullsListParams) (*http.Request, error)

NewPullsListRequest constructs an http.Request for the PullsList method

func NewPullsMergeRequest

func NewPullsMergeRequest(server string, owner string, repo string, pullNumber string, body PullsMergeJSONRequestBody) (*http.Request, error)

NewPullsMergeRequest calls the generic PullsMerge builder with application/json body

func NewPullsMergeRequestWithBody

func NewPullsMergeRequestWithBody(server string, owner string, repo string, pullNumber string, contentType string, body io.Reader) (*http.Request, error)

NewPullsMergeRequestWithBody constructs an http.Request for the PullsMerge method, with any body, and a specified content type

func NewRateLimitGetRequest

func NewRateLimitGetRequest(server string) (*http.Request, error)

NewRateLimitGetRequest constructs an http.Request for the RateLimitGet method

func NewReposCheckVulnerabilityAlertsRequest

func NewReposCheckVulnerabilityAlertsRequest(server string, owner string, repo string) (*http.Request, error)

NewReposCheckVulnerabilityAlertsRequest constructs an http.Request for the ReposCheckVulnerabilityAlerts method

func NewReposGetAllEnvironmentsRequest

func NewReposGetAllEnvironmentsRequest(server string, owner string, repo string) (*http.Request, error)

NewReposGetAllEnvironmentsRequest constructs an http.Request for the ReposGetAllEnvironments method

func NewReposGetBranchRulesRequest

func NewReposGetBranchRulesRequest(server string, owner string, repo string, branch string) (*http.Request, error)

NewReposGetBranchRulesRequest constructs an http.Request for the ReposGetBranchRules method

func NewReposGetCommitRequest

func NewReposGetCommitRequest(server string, owner string, repo string, ref string) (*http.Request, error)

NewReposGetCommitRequest constructs an http.Request for the ReposGetCommit method

func NewReposGetContentRequest

func NewReposGetContentRequest(server string, owner string, repo string, path string, params *ReposGetContentParams) (*http.Request, error)

NewReposGetContentRequest constructs an http.Request for the ReposGetContent method

func NewReposGetLatestReleaseRequest

func NewReposGetLatestReleaseRequest(server string, owner string, repo string) (*http.Request, error)

NewReposGetLatestReleaseRequest constructs an http.Request for the ReposGetLatestRelease method

func NewReposGetRequest

func NewReposGetRequest(server string, owner string, repo string) (*http.Request, error)

NewReposGetRequest constructs an http.Request for the ReposGet method

func NewReposListCollaboratorsRequest

func NewReposListCollaboratorsRequest(server string, owner string, repo string, params *ReposListCollaboratorsParams) (*http.Request, error)

NewReposListCollaboratorsRequest constructs an http.Request for the ReposListCollaborators method

func NewReposListCommitsRequest

func NewReposListCommitsRequest(server string, owner string, repo string, params *ReposListCommitsParams) (*http.Request, error)

NewReposListCommitsRequest constructs an http.Request for the ReposListCommits method

func NewReposListDeployKeysRequest

func NewReposListDeployKeysRequest(server string, owner string, repo string, params *ReposListDeployKeysParams) (*http.Request, error)

NewReposListDeployKeysRequest constructs an http.Request for the ReposListDeployKeys method

func NewReposListDeploymentStatusesRequest

func NewReposListDeploymentStatusesRequest(server string, owner string, repo string, deploymentID string, params *ReposListDeploymentStatusesParams) (*http.Request, error)

NewReposListDeploymentStatusesRequest constructs an http.Request for the ReposListDeploymentStatuses method

func NewReposListDeploymentsRequest

func NewReposListDeploymentsRequest(server string, owner string, repo string, params *ReposListDeploymentsParams) (*http.Request, error)

NewReposListDeploymentsRequest constructs an http.Request for the ReposListDeployments method

func NewReposListPullRequestsAssociatedWithCommitRequest

func NewReposListPullRequestsAssociatedWithCommitRequest(server string, owner string, repo string, commitSha string) (*http.Request, error)

NewReposListPullRequestsAssociatedWithCommitRequest constructs an http.Request for the ReposListPullRequestsAssociatedWithCommit method

func NewReposListReleasesRequest

func NewReposListReleasesRequest(server string, owner string, repo string, params *ReposListReleasesParams) (*http.Request, error)

NewReposListReleasesRequest constructs an http.Request for the ReposListReleases method

func NewSecretScanningListAlertsForRepoRequest

func NewSecretScanningListAlertsForRepoRequest(server string, owner string, repo string, params *SecretScanningListAlertsForRepoParams) (*http.Request, error)

NewSecretScanningListAlertsForRepoRequest constructs an http.Request for the SecretScanningListAlertsForRepo method

func NewSecurityAdvisoriesListRepositoryAdvisoriesRequest

func NewSecurityAdvisoriesListRepositoryAdvisoriesRequest(server string, owner string, repo string, params *SecurityAdvisoriesListRepositoryAdvisoriesParams) (*http.Request, error)

NewSecurityAdvisoriesListRepositoryAdvisoriesRequest constructs an http.Request for the SecurityAdvisoriesListRepositoryAdvisories method

func NewUsersGetByUsernameRequest

func NewUsersGetByUsernameRequest(server string, username string) (*http.Request, error)

NewUsersGetByUsernameRequest constructs an http.Request for the UsersGetByUsername method

Types

type ActionsCanApprovePullRequestReviews

type ActionsCanApprovePullRequestReviews = bool

ActionsCanApprovePullRequestReviews Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.

type ActionsDefaultWorkflowPermissions

type ActionsDefaultWorkflowPermissions string

ActionsDefaultWorkflowPermissions The default workflow permissions granted to the GITHUB_TOKEN when running workflows.

const (
	ActionsDefaultWorkflowPermissionsRead  ActionsDefaultWorkflowPermissions = "read"
	ActionsDefaultWorkflowPermissionsWrite ActionsDefaultWorkflowPermissions = "write"
)

Defines values for ActionsDefaultWorkflowPermissions.

func (ActionsDefaultWorkflowPermissions) Valid

Valid indicates whether the value is a known member of the ActionsDefaultWorkflowPermissions enum.

type ActionsGetDefaultWorkflowPermissions

type ActionsGetDefaultWorkflowPermissions struct {
	// CanApprovePullRequestReviews Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.
	CanApprovePullRequestReviews ActionsCanApprovePullRequestReviews `json:"can_approve_pull_request_reviews"`

	// DefaultWorkflowPermissions The default workflow permissions granted to the GITHUB_TOKEN when running workflows.
	DefaultWorkflowPermissions ActionsDefaultWorkflowPermissions `json:"default_workflow_permissions"`
}

ActionsGetDefaultWorkflowPermissions defines model for actions-get-default-workflow-permissions.

type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply

type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ActionsGetDefaultWorkflowPermissions
}

func ParseActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply

func ParseActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply(rsp *http.Response) (*ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply, error)

ParseActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply parses an HTTP response from a ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryWithResponse call

func (ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply) GetBody

GetBody returns the raw response body bytes

func (ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply) Status

Status returns HTTPResponse.Status

func (ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ActionsGetGithubActionsPermissionsRepositoryReply

type ActionsGetGithubActionsPermissionsRepositoryReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ActionsRepositoryPermissions
}

func ParseActionsGetGithubActionsPermissionsRepositoryReply

func ParseActionsGetGithubActionsPermissionsRepositoryReply(rsp *http.Response) (*ActionsGetGithubActionsPermissionsRepositoryReply, error)

ParseActionsGetGithubActionsPermissionsRepositoryReply parses an HTTP response from a ActionsGetGithubActionsPermissionsRepositoryWithResponse call

func (ActionsGetGithubActionsPermissionsRepositoryReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsGetGithubActionsPermissionsRepositoryReply) GetBody

GetBody returns the raw response body bytes

func (ActionsGetGithubActionsPermissionsRepositoryReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsGetGithubActionsPermissionsRepositoryReply) Status

Status returns HTTPResponse.Status

func (ActionsGetGithubActionsPermissionsRepositoryReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ActionsGetJobForWorkflowRunReply

type ActionsGetJobForWorkflowRunReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Job
}

func ParseActionsGetJobForWorkflowRunReply

func ParseActionsGetJobForWorkflowRunReply(rsp *http.Response) (*ActionsGetJobForWorkflowRunReply, error)

ParseActionsGetJobForWorkflowRunReply parses an HTTP response from a ActionsGetJobForWorkflowRunWithResponse call

func (ActionsGetJobForWorkflowRunReply) ContentType

func (r ActionsGetJobForWorkflowRunReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsGetJobForWorkflowRunReply) GetBody

func (r ActionsGetJobForWorkflowRunReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ActionsGetJobForWorkflowRunReply) GetJSON200

func (r ActionsGetJobForWorkflowRunReply) GetJSON200() *Job

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsGetJobForWorkflowRunReply) Status

Status returns HTTPResponse.Status

func (ActionsGetJobForWorkflowRunReply) StatusCode

func (r ActionsGetJobForWorkflowRunReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActionsGetPendingDeploymentsForRunReply

type ActionsGetPendingDeploymentsForRunReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]PendingDeployment
}

func ParseActionsGetPendingDeploymentsForRunReply

func ParseActionsGetPendingDeploymentsForRunReply(rsp *http.Response) (*ActionsGetPendingDeploymentsForRunReply, error)

ParseActionsGetPendingDeploymentsForRunReply parses an HTTP response from a ActionsGetPendingDeploymentsForRunWithResponse call

func (ActionsGetPendingDeploymentsForRunReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsGetPendingDeploymentsForRunReply) GetBody

GetBody returns the raw response body bytes

func (ActionsGetPendingDeploymentsForRunReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsGetPendingDeploymentsForRunReply) Status

Status returns HTTPResponse.Status

func (ActionsGetPendingDeploymentsForRunReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ActionsListArtifactsForRepoParams

type ActionsListArtifactsForRepoParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ActionsListArtifactsForRepoParams defines parameters for ActionsListArtifactsForRepo.

type ActionsListArtifactsForRepoReply

type ActionsListArtifactsForRepoReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Artifacts  []Artifact `json:"artifacts"`
		TotalCount int        `json:"total_count"`
	}
}

func ParseActionsListArtifactsForRepoReply

func ParseActionsListArtifactsForRepoReply(rsp *http.Response) (*ActionsListArtifactsForRepoReply, error)

ParseActionsListArtifactsForRepoReply parses an HTTP response from a ActionsListArtifactsForRepoWithResponse call

func (ActionsListArtifactsForRepoReply) ContentType

func (r ActionsListArtifactsForRepoReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsListArtifactsForRepoReply) GetBody

func (r ActionsListArtifactsForRepoReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ActionsListArtifactsForRepoReply) GetJSON200

func (r ActionsListArtifactsForRepoReply) GetJSON200() *struct {
	Artifacts  []Artifact `json:"artifacts"`
	TotalCount int        `json:"total_count"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsListArtifactsForRepoReply) Status

Status returns HTTPResponse.Status

func (ActionsListArtifactsForRepoReply) StatusCode

func (r ActionsListArtifactsForRepoReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActionsListRepoVariablesParams

type ActionsListRepoVariablesParams struct {
	// PerPage The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ActionsListRepoVariablesParams defines parameters for ActionsListRepoVariables.

type ActionsListRepoVariablesReply

type ActionsListRepoVariablesReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		TotalCount int               `json:"total_count"`
		Variables  []ActionsVariable `json:"variables"`
	}
}

func ParseActionsListRepoVariablesReply

func ParseActionsListRepoVariablesReply(rsp *http.Response) (*ActionsListRepoVariablesReply, error)

ParseActionsListRepoVariablesReply parses an HTTP response from a ActionsListRepoVariablesWithResponse call

func (ActionsListRepoVariablesReply) ContentType

func (r ActionsListRepoVariablesReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsListRepoVariablesReply) GetBody

func (r ActionsListRepoVariablesReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ActionsListRepoVariablesReply) GetJSON200

func (r ActionsListRepoVariablesReply) GetJSON200() *struct {
	TotalCount int               `json:"total_count"`
	Variables  []ActionsVariable `json:"variables"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsListRepoVariablesReply) Status

Status returns HTTPResponse.Status

func (ActionsListRepoVariablesReply) StatusCode

func (r ActionsListRepoVariablesReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActionsListRepoWorkflowsParams

type ActionsListRepoWorkflowsParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ActionsListRepoWorkflowsParams defines parameters for ActionsListRepoWorkflows.

type ActionsListRepoWorkflowsReply

type ActionsListRepoWorkflowsReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		TotalCount int        `json:"total_count"`
		Workflows  []Workflow `json:"workflows"`
	}
}

func ParseActionsListRepoWorkflowsReply

func ParseActionsListRepoWorkflowsReply(rsp *http.Response) (*ActionsListRepoWorkflowsReply, error)

ParseActionsListRepoWorkflowsReply parses an HTTP response from a ActionsListRepoWorkflowsWithResponse call

func (ActionsListRepoWorkflowsReply) ContentType

func (r ActionsListRepoWorkflowsReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsListRepoWorkflowsReply) GetBody

func (r ActionsListRepoWorkflowsReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ActionsListRepoWorkflowsReply) GetJSON200

func (r ActionsListRepoWorkflowsReply) GetJSON200() *struct {
	TotalCount int        `json:"total_count"`
	Workflows  []Workflow `json:"workflows"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsListRepoWorkflowsReply) Status

Status returns HTTPResponse.Status

func (ActionsListRepoWorkflowsReply) StatusCode

func (r ActionsListRepoWorkflowsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActionsListSelfHostedRunnersForRepoReply

type ActionsListSelfHostedRunnersForRepoReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Runners    []Runner `json:"runners"`
		TotalCount int      `json:"total_count"`
	}
}

func ParseActionsListSelfHostedRunnersForRepoReply

func ParseActionsListSelfHostedRunnersForRepoReply(rsp *http.Response) (*ActionsListSelfHostedRunnersForRepoReply, error)

ParseActionsListSelfHostedRunnersForRepoReply parses an HTTP response from a ActionsListSelfHostedRunnersForRepoWithResponse call

func (ActionsListSelfHostedRunnersForRepoReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsListSelfHostedRunnersForRepoReply) GetBody

GetBody returns the raw response body bytes

func (ActionsListSelfHostedRunnersForRepoReply) GetJSON200

func (r ActionsListSelfHostedRunnersForRepoReply) GetJSON200() *struct {
	Runners    []Runner `json:"runners"`
	TotalCount int      `json:"total_count"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsListSelfHostedRunnersForRepoReply) Status

Status returns HTTPResponse.Status

func (ActionsListSelfHostedRunnersForRepoReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ActionsListWorkflowRunsForRepoParams

type ActionsListWorkflowRunsForRepoParams struct {
	// Branch Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
	Branch *string `form:"branch,omitempty" json:"branch,omitempty"`

	// HeadSha Only returns workflow runs that are associated with the specified `head_sha`.
	HeadSha *string `form:"head_sha,omitempty" json:"head_sha,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ActionsListWorkflowRunsForRepoParams defines parameters for ActionsListWorkflowRunsForRepo.

type ActionsListWorkflowRunsForRepoReply

type ActionsListWorkflowRunsForRepoReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		TotalCount   int           `json:"total_count"`
		WorkflowRuns []WorkflowRun `json:"workflow_runs"`
	}
}

func ParseActionsListWorkflowRunsForRepoReply

func ParseActionsListWorkflowRunsForRepoReply(rsp *http.Response) (*ActionsListWorkflowRunsForRepoReply, error)

ParseActionsListWorkflowRunsForRepoReply parses an HTTP response from a ActionsListWorkflowRunsForRepoWithResponse call

func (ActionsListWorkflowRunsForRepoReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsListWorkflowRunsForRepoReply) GetBody

GetBody returns the raw response body bytes

func (ActionsListWorkflowRunsForRepoReply) GetJSON200

func (r ActionsListWorkflowRunsForRepoReply) GetJSON200() *struct {
	TotalCount   int           `json:"total_count"`
	WorkflowRuns []WorkflowRun `json:"workflow_runs"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsListWorkflowRunsForRepoReply) Status

Status returns HTTPResponse.Status

func (ActionsListWorkflowRunsForRepoReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ActionsListWorkflowRunsParams

type ActionsListWorkflowRunsParams struct {
	// Branch Returns workflow runs associated with a branch. Use the name of the branch of the `push`.
	Branch *string `form:"branch,omitempty" json:"branch,omitempty"`

	// Status Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status can be `in_progress`. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`.
	Status *ActionsListWorkflowRunsParamsStatus `form:"status,omitempty" json:"status,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ActionsListWorkflowRunsParams defines parameters for ActionsListWorkflowRuns.

type ActionsListWorkflowRunsParamsStatus

type ActionsListWorkflowRunsParamsStatus string

ActionsListWorkflowRunsParamsStatus defines parameters for ActionsListWorkflowRuns.

const (
	ActionsListWorkflowRunsParamsStatusActionRequired ActionsListWorkflowRunsParamsStatus = "action_required"
	ActionsListWorkflowRunsParamsStatusCancelled      ActionsListWorkflowRunsParamsStatus = "cancelled"
	ActionsListWorkflowRunsParamsStatusCompleted      ActionsListWorkflowRunsParamsStatus = "completed"
	ActionsListWorkflowRunsParamsStatusFailure        ActionsListWorkflowRunsParamsStatus = "failure"
	ActionsListWorkflowRunsParamsStatusInProgress     ActionsListWorkflowRunsParamsStatus = "in_progress"
	ActionsListWorkflowRunsParamsStatusNeutral        ActionsListWorkflowRunsParamsStatus = "neutral"
	ActionsListWorkflowRunsParamsStatusPending        ActionsListWorkflowRunsParamsStatus = "pending"
	ActionsListWorkflowRunsParamsStatusQueued         ActionsListWorkflowRunsParamsStatus = "queued"
	ActionsListWorkflowRunsParamsStatusRequested      ActionsListWorkflowRunsParamsStatus = "requested"
	ActionsListWorkflowRunsParamsStatusSkipped        ActionsListWorkflowRunsParamsStatus = "skipped"
	ActionsListWorkflowRunsParamsStatusStale          ActionsListWorkflowRunsParamsStatus = "stale"
	ActionsListWorkflowRunsParamsStatusSuccess        ActionsListWorkflowRunsParamsStatus = "success"
	ActionsListWorkflowRunsParamsStatusTimedOut       ActionsListWorkflowRunsParamsStatus = "timed_out"
	ActionsListWorkflowRunsParamsStatusWaiting        ActionsListWorkflowRunsParamsStatus = "waiting"
)

Defines values for ActionsListWorkflowRunsParamsStatus.

func (ActionsListWorkflowRunsParamsStatus) Valid

Valid indicates whether the value is a known member of the ActionsListWorkflowRunsParamsStatus enum.

type ActionsListWorkflowRunsReply

type ActionsListWorkflowRunsReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		TotalCount   int           `json:"total_count"`
		WorkflowRuns []WorkflowRun `json:"workflow_runs"`
	}
}

func ParseActionsListWorkflowRunsReply

func ParseActionsListWorkflowRunsReply(rsp *http.Response) (*ActionsListWorkflowRunsReply, error)

ParseActionsListWorkflowRunsReply parses an HTTP response from a ActionsListWorkflowRunsWithResponse call

func (ActionsListWorkflowRunsReply) ContentType

func (r ActionsListWorkflowRunsReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActionsListWorkflowRunsReply) GetBody

func (r ActionsListWorkflowRunsReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ActionsListWorkflowRunsReply) GetJSON200

func (r ActionsListWorkflowRunsReply) GetJSON200() *struct {
	TotalCount   int           `json:"total_count"`
	WorkflowRuns []WorkflowRun `json:"workflow_runs"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActionsListWorkflowRunsReply) Status

Status returns HTTPResponse.Status

func (ActionsListWorkflowRunsReply) StatusCode

func (r ActionsListWorkflowRunsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActionsRepositoryPermissions

type ActionsRepositoryPermissions struct {
	// AllowedActions The permissions policy that controls the actions and reusable workflows that are allowed to run.
	AllowedActions AllowedActions `json:"allowed_actions,omitempty"`

	// ShaPinningRequired Whether actions must be pinned to a full-length commit SHA.
	ShaPinningRequired ShaPinningRequired `json:"sha_pinning_required,omitempty"`
}

ActionsRepositoryPermissions defines model for actions-repository-permissions.

type ActionsVariable

type ActionsVariable struct {
	// Name The name of the variable.
	Name string `json:"name"`
}

ActionsVariable defines model for actions-variable.

type ActivityListReposStarredByUserParams

type ActivityListReposStarredByUserParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ActivityListReposStarredByUserParams defines parameters for ActivityListReposStarredByUser.

type ActivityListReposStarredByUserReply

type ActivityListReposStarredByUserReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]StarredRepository
}

func ParseActivityListReposStarredByUserReply

func ParseActivityListReposStarredByUserReply(rsp *http.Response) (*ActivityListReposStarredByUserReply, error)

ParseActivityListReposStarredByUserReply parses an HTTP response from a ActivityListReposStarredByUserWithResponse call

func (ActivityListReposStarredByUserReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActivityListReposStarredByUserReply) GetBody

GetBody returns the raw response body bytes

func (ActivityListReposStarredByUserReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActivityListReposStarredByUserReply) Status

Status returns HTTPResponse.Status

func (ActivityListReposStarredByUserReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AlertHTMLURL

type AlertHTMLURL = string

AlertHTMLURL The GitHub URL of the alert resource.

type AlertNumber

type AlertNumber = int

AlertNumber The security alert number.

type AllowedActions

type AllowedActions string

AllowedActions The permissions policy that controls the actions and reusable workflows that are allowed to run.

const (
	AllowedActionsAll       AllowedActions = "all"
	AllowedActionsLocalOnly AllowedActions = "local_only"
	AllowedActionsSelected  AllowedActions = "selected"
)

Defines values for AllowedActions.

func (AllowedActions) Valid

func (e AllowedActions) Valid() bool

Valid indicates whether the value is a known member of the AllowedActions enum.

type AppPermissions

type AppPermissions struct {
	// Actions The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.
	Actions AppPermissionsActions `json:"actions,omitempty"`

	// ActionsVariables The level of permission to grant the access token to manage GitHub Actions configuration variables.
	ActionsVariables AppPermissionsActionsVariables `json:"actions_variables,omitempty"`

	// Administration The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.
	Administration AppPermissionsAdministration `json:"administration,omitempty"`

	// Checks The level of permission to grant the access token for checks on code.
	Checks AppPermissionsChecks `json:"checks,omitempty"`

	// Contents The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.
	Contents AppPermissionsContents `json:"contents,omitempty"`

	// Deployments The level of permission to grant the access token for deployments and deployment statuses.
	Deployments AppPermissionsDeployments `json:"deployments,omitempty"`

	// Issues The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.
	Issues AppPermissionsIssues `json:"issues,omitempty"`

	// Metadata The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.
	Metadata AppPermissionsMetadata `json:"metadata,omitempty"`

	// Packages The level of permission to grant the access token for packages published to GitHub Packages.
	Packages AppPermissionsPackages `json:"packages,omitempty"`

	// PullRequests The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.
	PullRequests AppPermissionsPullRequests `json:"pull_requests,omitempty"`

	// SecretScanningAlerts The level of permission to grant the access token to view and manage secret scanning alerts.
	SecretScanningAlerts AppPermissionsSecretScanningAlerts `json:"secret_scanning_alerts,omitempty"`

	// SecurityEvents The level of permission to grant the access token to view and manage security events like code scanning alerts.
	SecurityEvents AppPermissionsSecurityEvents `json:"security_events,omitempty"`

	// Statuses The level of permission to grant the access token for commit statuses.
	Statuses AppPermissionsStatuses `json:"statuses,omitempty"`

	// VulnerabilityAlerts The level of permission to grant the access token to manage Dependabot alerts.
	VulnerabilityAlerts AppPermissionsVulnerabilityAlerts `json:"vulnerability_alerts,omitempty"`

	// Workflows The level of permission to grant the access token to update GitHub Actions workflow files.
	Workflows AppPermissionsWorkflows `json:"workflows,omitempty"`
}

AppPermissions The permissions granted to the fine-grained access token.

type AppPermissionsActions

type AppPermissionsActions string

AppPermissionsActions The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.

const (
	AppPermissionsActionsRead  AppPermissionsActions = "read"
	AppPermissionsActionsWrite AppPermissionsActions = "write"
)

Defines values for AppPermissionsActions.

func (AppPermissionsActions) Valid

func (e AppPermissionsActions) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsActions enum.

type AppPermissionsActionsVariables

type AppPermissionsActionsVariables string

AppPermissionsActionsVariables The level of permission to grant the access token to manage GitHub Actions configuration variables.

const (
	AppPermissionsActionsVariablesRead  AppPermissionsActionsVariables = "read"
	AppPermissionsActionsVariablesWrite AppPermissionsActionsVariables = "write"
)

Defines values for AppPermissionsActionsVariables.

func (AppPermissionsActionsVariables) Valid

Valid indicates whether the value is a known member of the AppPermissionsActionsVariables enum.

type AppPermissionsAdministration

type AppPermissionsAdministration string

AppPermissionsAdministration The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.

const (
	AppPermissionsAdministrationRead  AppPermissionsAdministration = "read"
	AppPermissionsAdministrationWrite AppPermissionsAdministration = "write"
)

Defines values for AppPermissionsAdministration.

func (AppPermissionsAdministration) Valid

Valid indicates whether the value is a known member of the AppPermissionsAdministration enum.

type AppPermissionsChecks

type AppPermissionsChecks string

AppPermissionsChecks The level of permission to grant the access token for checks on code.

const (
	AppPermissionsChecksRead  AppPermissionsChecks = "read"
	AppPermissionsChecksWrite AppPermissionsChecks = "write"
)

Defines values for AppPermissionsChecks.

func (AppPermissionsChecks) Valid

func (e AppPermissionsChecks) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsChecks enum.

type AppPermissionsContents

type AppPermissionsContents string

AppPermissionsContents The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.

const (
	AppPermissionsContentsRead  AppPermissionsContents = "read"
	AppPermissionsContentsWrite AppPermissionsContents = "write"
)

Defines values for AppPermissionsContents.

func (AppPermissionsContents) Valid

func (e AppPermissionsContents) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsContents enum.

type AppPermissionsDeployments

type AppPermissionsDeployments string

AppPermissionsDeployments The level of permission to grant the access token for deployments and deployment statuses.

const (
	AppPermissionsDeploymentsRead  AppPermissionsDeployments = "read"
	AppPermissionsDeploymentsWrite AppPermissionsDeployments = "write"
)

Defines values for AppPermissionsDeployments.

func (AppPermissionsDeployments) Valid

func (e AppPermissionsDeployments) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsDeployments enum.

type AppPermissionsIssues

type AppPermissionsIssues string

AppPermissionsIssues The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.

const (
	AppPermissionsIssuesRead  AppPermissionsIssues = "read"
	AppPermissionsIssuesWrite AppPermissionsIssues = "write"
)

Defines values for AppPermissionsIssues.

func (AppPermissionsIssues) Valid

func (e AppPermissionsIssues) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsIssues enum.

type AppPermissionsMetadata

type AppPermissionsMetadata string

AppPermissionsMetadata The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.

const (
	AppPermissionsMetadataRead  AppPermissionsMetadata = "read"
	AppPermissionsMetadataWrite AppPermissionsMetadata = "write"
)

Defines values for AppPermissionsMetadata.

func (AppPermissionsMetadata) Valid

func (e AppPermissionsMetadata) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsMetadata enum.

type AppPermissionsPackages

type AppPermissionsPackages string

AppPermissionsPackages The level of permission to grant the access token for packages published to GitHub Packages.

const (
	AppPermissionsPackagesRead  AppPermissionsPackages = "read"
	AppPermissionsPackagesWrite AppPermissionsPackages = "write"
)

Defines values for AppPermissionsPackages.

func (AppPermissionsPackages) Valid

func (e AppPermissionsPackages) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsPackages enum.

type AppPermissionsPullRequests

type AppPermissionsPullRequests string

AppPermissionsPullRequests The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.

const (
	AppPermissionsPullRequestsRead  AppPermissionsPullRequests = "read"
	AppPermissionsPullRequestsWrite AppPermissionsPullRequests = "write"
)

Defines values for AppPermissionsPullRequests.

func (AppPermissionsPullRequests) Valid

func (e AppPermissionsPullRequests) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsPullRequests enum.

type AppPermissionsSecretScanningAlerts

type AppPermissionsSecretScanningAlerts string

AppPermissionsSecretScanningAlerts The level of permission to grant the access token to view and manage secret scanning alerts.

const (
	AppPermissionsSecretScanningAlertsRead  AppPermissionsSecretScanningAlerts = "read"
	AppPermissionsSecretScanningAlertsWrite AppPermissionsSecretScanningAlerts = "write"
)

Defines values for AppPermissionsSecretScanningAlerts.

func (AppPermissionsSecretScanningAlerts) Valid

Valid indicates whether the value is a known member of the AppPermissionsSecretScanningAlerts enum.

type AppPermissionsSecurityEvents

type AppPermissionsSecurityEvents string

AppPermissionsSecurityEvents The level of permission to grant the access token to view and manage security events like code scanning alerts.

const (
	AppPermissionsSecurityEventsRead  AppPermissionsSecurityEvents = "read"
	AppPermissionsSecurityEventsWrite AppPermissionsSecurityEvents = "write"
)

Defines values for AppPermissionsSecurityEvents.

func (AppPermissionsSecurityEvents) Valid

Valid indicates whether the value is a known member of the AppPermissionsSecurityEvents enum.

type AppPermissionsStatuses

type AppPermissionsStatuses string

AppPermissionsStatuses The level of permission to grant the access token for commit statuses.

const (
	AppPermissionsStatusesRead  AppPermissionsStatuses = "read"
	AppPermissionsStatusesWrite AppPermissionsStatuses = "write"
)

Defines values for AppPermissionsStatuses.

func (AppPermissionsStatuses) Valid

func (e AppPermissionsStatuses) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsStatuses enum.

type AppPermissionsVulnerabilityAlerts

type AppPermissionsVulnerabilityAlerts string

AppPermissionsVulnerabilityAlerts The level of permission to grant the access token to manage Dependabot alerts.

const (
	AppPermissionsVulnerabilityAlertsRead  AppPermissionsVulnerabilityAlerts = "read"
	AppPermissionsVulnerabilityAlertsWrite AppPermissionsVulnerabilityAlerts = "write"
)

Defines values for AppPermissionsVulnerabilityAlerts.

func (AppPermissionsVulnerabilityAlerts) Valid

Valid indicates whether the value is a known member of the AppPermissionsVulnerabilityAlerts enum.

type AppPermissionsWorkflows

type AppPermissionsWorkflows string

AppPermissionsWorkflows The level of permission to grant the access token to update GitHub Actions workflow files.

const (
	AppPermissionsWorkflowsWrite AppPermissionsWorkflows = "write"
)

Defines values for AppPermissionsWorkflows.

func (AppPermissionsWorkflows) Valid

func (e AppPermissionsWorkflows) Valid() bool

Valid indicates whether the value is a known member of the AppPermissionsWorkflows enum.

type AppsCreateInstallationAccessTokenJSONBody

type AppsCreateInstallationAccessTokenJSONBody struct {
	// Permissions The permissions granted to the fine-grained access token.
	Permissions AppPermissions `json:"permissions,omitempty"`

	// Repositories List of repository names that the token should have access to
	Repositories []string `json:"repositories,omitempty"`

	// RepositoryIds List of repository IDs that the token should have access to
	RepositoryIds []int `json:"repository_ids,omitempty"`
}

AppsCreateInstallationAccessTokenJSONBody defines body for AppsCreateInstallationAccessToken for application/json ContentType.

type AppsCreateInstallationAccessTokenJSONRequestBody

type AppsCreateInstallationAccessTokenJSONRequestBody AppsCreateInstallationAccessTokenJSONBody

AppsCreateInstallationAccessTokenJSONRequestBody defines body for AppsCreateInstallationAccessToken for application/json ContentType.

type AppsCreateInstallationAccessTokenReply

type AppsCreateInstallationAccessTokenReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *InstallationToken
}

func ParseAppsCreateInstallationAccessTokenReply

func ParseAppsCreateInstallationAccessTokenReply(rsp *http.Response) (*AppsCreateInstallationAccessTokenReply, error)

ParseAppsCreateInstallationAccessTokenReply parses an HTTP response from a AppsCreateInstallationAccessTokenWithResponse call

func (AppsCreateInstallationAccessTokenReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AppsCreateInstallationAccessTokenReply) GetBody

GetBody returns the raw response body bytes

func (AppsCreateInstallationAccessTokenReply) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (AppsCreateInstallationAccessTokenReply) Status

Status returns HTTPResponse.Status

func (AppsCreateInstallationAccessTokenReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AppsGetAuthenticatedReply

type AppsGetAuthenticatedReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Integration
}

func ParseAppsGetAuthenticatedReply

func ParseAppsGetAuthenticatedReply(rsp *http.Response) (*AppsGetAuthenticatedReply, error)

ParseAppsGetAuthenticatedReply parses an HTTP response from a AppsGetAuthenticatedWithResponse call

func (AppsGetAuthenticatedReply) ContentType

func (r AppsGetAuthenticatedReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AppsGetAuthenticatedReply) GetBody

func (r AppsGetAuthenticatedReply) GetBody() []byte

GetBody returns the raw response body bytes

func (AppsGetAuthenticatedReply) GetJSON200

func (r AppsGetAuthenticatedReply) GetJSON200() *Integration

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AppsGetAuthenticatedReply) Status

func (r AppsGetAuthenticatedReply) Status() string

Status returns HTTPResponse.Status

func (AppsGetAuthenticatedReply) StatusCode

func (r AppsGetAuthenticatedReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AppsGetRepoInstallationReply

type AppsGetRepoInstallationReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Installation
}

func ParseAppsGetRepoInstallationReply

func ParseAppsGetRepoInstallationReply(rsp *http.Response) (*AppsGetRepoInstallationReply, error)

ParseAppsGetRepoInstallationReply parses an HTTP response from a AppsGetRepoInstallationWithResponse call

func (AppsGetRepoInstallationReply) ContentType

func (r AppsGetRepoInstallationReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AppsGetRepoInstallationReply) GetBody

func (r AppsGetRepoInstallationReply) GetBody() []byte

GetBody returns the raw response body bytes

func (AppsGetRepoInstallationReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AppsGetRepoInstallationReply) Status

Status returns HTTPResponse.Status

func (AppsGetRepoInstallationReply) StatusCode

func (r AppsGetRepoInstallationReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AppsListInstallationsParams

type AppsListInstallationsParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// Page The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int `form:"page,omitempty" json:"page,omitempty"`
}

AppsListInstallationsParams defines parameters for AppsListInstallations.

type AppsListInstallationsReply

type AppsListInstallationsReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Installation
}

func ParseAppsListInstallationsReply

func ParseAppsListInstallationsReply(rsp *http.Response) (*AppsListInstallationsReply, error)

ParseAppsListInstallationsReply parses an HTTP response from a AppsListInstallationsWithResponse call

func (AppsListInstallationsReply) ContentType

func (r AppsListInstallationsReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AppsListInstallationsReply) GetBody

func (r AppsListInstallationsReply) GetBody() []byte

GetBody returns the raw response body bytes

func (AppsListInstallationsReply) GetJSON200

func (r AppsListInstallationsReply) GetJSON200() *[]Installation

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AppsListInstallationsReply) Status

Status returns HTTPResponse.Status

func (AppsListInstallationsReply) StatusCode

func (r AppsListInstallationsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AppsListReposAccessibleToInstallationParams

type AppsListReposAccessibleToInstallationParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// Page The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int `form:"page,omitempty" json:"page,omitempty"`
}

AppsListReposAccessibleToInstallationParams defines parameters for AppsListReposAccessibleToInstallation.

type AppsListReposAccessibleToInstallationReply

type AppsListReposAccessibleToInstallationReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Repositories []struct {
			// CustomProperties The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
			CustomProperties map[string]any `json:"custom_properties,omitempty"`
			Description      string         `json:"description"`
			FullName         string         `json:"full_name"`
			HTMLURL          string         `json:"html_url"`
			Language         string         `json:"language"`
			StargazersCount  int            `json:"stargazers_count"`
		} `json:"repositories"`
		RepositorySelection string `json:"repository_selection,omitempty"`
		TotalCount          int    `json:"total_count"`
	}
}

func ParseAppsListReposAccessibleToInstallationReply

func ParseAppsListReposAccessibleToInstallationReply(rsp *http.Response) (*AppsListReposAccessibleToInstallationReply, error)

ParseAppsListReposAccessibleToInstallationReply parses an HTTP response from a AppsListReposAccessibleToInstallationWithResponse call

func (AppsListReposAccessibleToInstallationReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AppsListReposAccessibleToInstallationReply) GetBody

GetBody returns the raw response body bytes

func (AppsListReposAccessibleToInstallationReply) GetJSON200

func (r AppsListReposAccessibleToInstallationReply) GetJSON200() *struct {
	Repositories []struct {
		// CustomProperties The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. Present for org repos only.
		CustomProperties map[string]any `json:"custom_properties,omitempty"`
		Description      string         `json:"description"`
		FullName         string         `json:"full_name"`
		HTMLURL          string         `json:"html_url"`
		Language         string         `json:"language"`
		StargazersCount  int            `json:"stargazers_count"`
	} `json:"repositories"`
	RepositorySelection string `json:"repository_selection,omitempty"`
	TotalCount          int    `json:"total_count"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AppsListReposAccessibleToInstallationReply) Status

Status returns HTTPResponse.Status

func (AppsListReposAccessibleToInstallationReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type AppsListWebhookDeliveriesParams

type AppsListWebhookDeliveriesParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

AppsListWebhookDeliveriesParams defines parameters for AppsListWebhookDeliveries.

type AppsListWebhookDeliveriesReply

type AppsListWebhookDeliveriesReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]HookDeliveryItem
}

func ParseAppsListWebhookDeliveriesReply

func ParseAppsListWebhookDeliveriesReply(rsp *http.Response) (*AppsListWebhookDeliveriesReply, error)

ParseAppsListWebhookDeliveriesReply parses an HTTP response from a AppsListWebhookDeliveriesWithResponse call

func (AppsListWebhookDeliveriesReply) ContentType

func (r AppsListWebhookDeliveriesReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AppsListWebhookDeliveriesReply) GetBody

func (r AppsListWebhookDeliveriesReply) GetBody() []byte

GetBody returns the raw response body bytes

func (AppsListWebhookDeliveriesReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AppsListWebhookDeliveriesReply) Status

Status returns HTTPResponse.Status

func (AppsListWebhookDeliveriesReply) StatusCode

func (r AppsListWebhookDeliveriesReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Artifact

type Artifact struct {
	// Expired Whether or not the artifact has expired.
	Expired   bool   `json:"expired"`
	ExpiresAt string `json:"expires_at"`

	// Name The name of the artifact.
	Name        string `json:"name"`
	WorkflowRun struct {
		HeadBranch       string `json:"head_branch,omitempty"`
		HeadRepositoryID int    `json:"head_repository_id,omitempty"`
		HeadSha          string `json:"head_sha,omitempty"`
		ID               int    `json:"id,omitempty"`
		RepositoryID     int    `json:"repository_id,omitempty"`
	} `json:"workflow_run,omitempty"`
}

Artifact An artifact

type CheckRun

type CheckRun struct {
	CheckSuite struct {
		ID int `json:"id"`
	} `json:"check_suite"`
	Conclusion CheckRunConclusion `json:"conclusion"`

	// ID The id of the check.
	ID int `json:"id"`

	// Name The name of the check.
	Name   string `json:"name"`
	Output struct {
		Summary string `json:"summary"`
		Title   string `json:"title"`
	} `json:"output"`
	StartedAt string `json:"started_at"`

	// Status The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs.
	Status CheckRunStatus `json:"status"`
}

CheckRun A check performed on the code of a given code change

type CheckRunConclusion

type CheckRunConclusion string

CheckRunConclusion defines model for CheckRun.Conclusion.

const (
	CheckRunConclusionActionRequired CheckRunConclusion = "action_required"
	CheckRunConclusionCancelled      CheckRunConclusion = "cancelled"
	CheckRunConclusionFailure        CheckRunConclusion = "failure"
	CheckRunConclusionNeutral        CheckRunConclusion = "neutral"
	CheckRunConclusionSkipped        CheckRunConclusion = "skipped"
	CheckRunConclusionSuccess        CheckRunConclusion = "success"
	CheckRunConclusionTimedOut       CheckRunConclusion = "timed_out"
)

Defines values for CheckRunConclusion.

func (CheckRunConclusion) Valid

func (e CheckRunConclusion) Valid() bool

Valid indicates whether the value is a known member of the CheckRunConclusion enum.

type CheckRunStatus

type CheckRunStatus string

CheckRunStatus The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs.

const (
	CheckRunStatusCompleted  CheckRunStatus = "completed"
	CheckRunStatusInProgress CheckRunStatus = "in_progress"
	CheckRunStatusPending    CheckRunStatus = "pending"
	CheckRunStatusQueued     CheckRunStatus = "queued"
	CheckRunStatusRequested  CheckRunStatus = "requested"
	CheckRunStatusWaiting    CheckRunStatus = "waiting"
)

Defines values for CheckRunStatus.

func (CheckRunStatus) Valid

func (e CheckRunStatus) Valid() bool

Valid indicates whether the value is a known member of the CheckRunStatus enum.

type ChecksCreateJSONBody

type ChecksCreateJSONBody struct {
	// Actions Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."
	Actions []struct {
		// Description A short explanation of what this action would do. The maximum size is 40 characters.
		Description string `json:"description"`

		// Identifier A reference for the action on the integrator's system. The maximum size is 20 characters.
		Identifier string `json:"identifier"`

		// Label The text to be displayed on a button in the web UI. The maximum size is 20 characters.
		Label string `json:"label"`
	} `json:"actions,omitempty"`

	// CompletedAt The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	CompletedAt string `json:"completed_at,omitempty"`

	// Conclusion **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check.
	// **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.
	Conclusion ChecksCreateJSONBodyConclusion `json:"conclusion,omitempty"`

	// DetailsURL The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.
	DetailsURL string `json:"details_url,omitempty"`

	// ExternalID A reference for the run on the integrator's system.
	ExternalID string `json:"external_id,omitempty"`

	// HeadSha The SHA of the commit.
	HeadSha string `json:"head_sha"`

	// Name The name of the check. For example, "code-coverage".
	Name string `json:"name"`

	// Output Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.
	Output struct {
		// Annotations Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".
		Annotations []struct {
			// AnnotationLevel The level of the annotation.
			AnnotationLevel ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel `json:"annotation_level"`

			// EndColumn The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.
			EndColumn int `json:"end_column,omitempty"`

			// EndLine The end line of the annotation.
			EndLine int `json:"end_line"`

			// Message A short description of the feedback for these lines of code. The maximum size is 64 KB.
			Message string `json:"message"`

			// Path The path of the file to add an annotation to. For example, `assets/css/main.css`.
			Path string `json:"path"`

			// RawDetails Details about this annotation. The maximum size is 64 KB.
			RawDetails string `json:"raw_details,omitempty"`

			// StartColumn The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.
			StartColumn int `json:"start_column,omitempty"`

			// StartLine The start line of the annotation. Line numbers start at 1.
			StartLine int `json:"start_line"`

			// Title The title that represents the annotation. The maximum size is 255 characters.
			Title string `json:"title,omitempty"`
		} `json:"annotations,omitempty"`

		// Images Adds images to the output displayed in the GitHub pull request UI.
		Images []struct {
			// Alt The alternative text for the image.
			Alt string `json:"alt"`

			// Caption A short image description.
			Caption string `json:"caption,omitempty"`

			// ImageURL The full URL of the image.
			ImageURL string `json:"image_url"`
		} `json:"images,omitempty"`

		// Summary The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.
		Summary string `json:"summary"`

		// Text The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.
		Text string `json:"text,omitempty"`

		// Title The title of the check run.
		Title string `json:"title"`
	} `json:"output,omitempty"`

	// StartedAt The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	StartedAt string `json:"started_at,omitempty"`

	// Status The current status of the check run. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`.
	Status ChecksCreateJSONBodyStatus `json:"status,omitempty"`
}

ChecksCreateJSONBody defines body for ChecksCreate for application/json ContentType.

type ChecksCreateJSONBodyConclusion

type ChecksCreateJSONBodyConclusion string

ChecksCreateJSONBodyConclusion defines model for ChecksCreateJSONBody.Conclusion.

const (
	ChecksCreateJSONBodyConclusionActionRequired ChecksCreateJSONBodyConclusion = "action_required"
	ChecksCreateJSONBodyConclusionCancelled      ChecksCreateJSONBodyConclusion = "cancelled"
	ChecksCreateJSONBodyConclusionFailure        ChecksCreateJSONBodyConclusion = "failure"
	ChecksCreateJSONBodyConclusionNeutral        ChecksCreateJSONBodyConclusion = "neutral"
	ChecksCreateJSONBodyConclusionSkipped        ChecksCreateJSONBodyConclusion = "skipped"
	ChecksCreateJSONBodyConclusionStale          ChecksCreateJSONBodyConclusion = "stale"
	ChecksCreateJSONBodyConclusionSuccess        ChecksCreateJSONBodyConclusion = "success"
	ChecksCreateJSONBodyConclusionTimedOut       ChecksCreateJSONBodyConclusion = "timed_out"
)

Defines values for ChecksCreateJSONBodyConclusion.

func (ChecksCreateJSONBodyConclusion) Valid

Valid indicates whether the value is a known member of the ChecksCreateJSONBodyConclusion enum.

type ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel

type ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel string

ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel defines model for ChecksCreateJSONBody.Output.Annotations.AnnotationLevel.

const (
	ChecksCreateJSONBodyOutputAnnotationsAnnotationLevelFailure ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel = "failure"
	ChecksCreateJSONBodyOutputAnnotationsAnnotationLevelNotice  ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel = "notice"
	ChecksCreateJSONBodyOutputAnnotationsAnnotationLevelWarning ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel = "warning"
)

Defines values for ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel.

func (ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel) Valid

Valid indicates whether the value is a known member of the ChecksCreateJSONBodyOutputAnnotationsAnnotationLevel enum.

type ChecksCreateJSONBodyStatus

type ChecksCreateJSONBodyStatus string

ChecksCreateJSONBodyStatus defines model for ChecksCreateJSONBody.Status.

const (
	ChecksCreateJSONBodyStatusCompleted  ChecksCreateJSONBodyStatus = "completed"
	ChecksCreateJSONBodyStatusInProgress ChecksCreateJSONBodyStatus = "in_progress"
	ChecksCreateJSONBodyStatusPending    ChecksCreateJSONBodyStatus = "pending"
	ChecksCreateJSONBodyStatusQueued     ChecksCreateJSONBodyStatus = "queued"
	ChecksCreateJSONBodyStatusRequested  ChecksCreateJSONBodyStatus = "requested"
	ChecksCreateJSONBodyStatusWaiting    ChecksCreateJSONBodyStatus = "waiting"
)

Defines values for ChecksCreateJSONBodyStatus.

func (ChecksCreateJSONBodyStatus) Valid

func (e ChecksCreateJSONBodyStatus) Valid() bool

Valid indicates whether the value is a known member of the ChecksCreateJSONBodyStatus enum.

type ChecksCreateJSONRequestBody

type ChecksCreateJSONRequestBody ChecksCreateJSONBody

ChecksCreateJSONRequestBody defines body for ChecksCreate for application/json ContentType.

type ChecksCreateReply

type ChecksCreateReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *CheckRun
}

func ParseChecksCreateReply

func ParseChecksCreateReply(rsp *http.Response) (*ChecksCreateReply, error)

ParseChecksCreateReply parses an HTTP response from a ChecksCreateWithResponse call

func (ChecksCreateReply) ContentType

func (r ChecksCreateReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChecksCreateReply) GetBody

func (r ChecksCreateReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ChecksCreateReply) GetJSON201

func (r ChecksCreateReply) GetJSON201() *CheckRun

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (ChecksCreateReply) Status

func (r ChecksCreateReply) Status() string

Status returns HTTPResponse.Status

func (ChecksCreateReply) StatusCode

func (r ChecksCreateReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChecksListForRefParams

type ChecksListForRefParams struct {
	// CheckName Returns check runs with the specified `name`.
	CheckName *string `form:"check_name,omitempty" json:"check_name,omitempty"`
	AppID     *int    `form:"app_id,omitempty" json:"app_id,omitempty"`

	// Filter Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs.
	Filter *ChecksListForRefParamsFilter `form:"filter,omitempty" json:"filter,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ChecksListForRefParams defines parameters for ChecksListForRef.

type ChecksListForRefParamsFilter

type ChecksListForRefParamsFilter string

ChecksListForRefParamsFilter defines parameters for ChecksListForRef.

const (
	ChecksListForRefParamsFilterAll    ChecksListForRefParamsFilter = "all"
	ChecksListForRefParamsFilterLatest ChecksListForRefParamsFilter = "latest"
)

Defines values for ChecksListForRefParamsFilter.

func (ChecksListForRefParamsFilter) Valid

Valid indicates whether the value is a known member of the ChecksListForRefParamsFilter enum.

type ChecksListForRefReply

type ChecksListForRefReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		CheckRuns  []CheckRun `json:"check_runs"`
		TotalCount int        `json:"total_count"`
	}
}

func ParseChecksListForRefReply

func ParseChecksListForRefReply(rsp *http.Response) (*ChecksListForRefReply, error)

ParseChecksListForRefReply parses an HTTP response from a ChecksListForRefWithResponse call

func (ChecksListForRefReply) ContentType

func (r ChecksListForRefReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChecksListForRefReply) GetBody

func (r ChecksListForRefReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ChecksListForRefReply) GetJSON200

func (r ChecksListForRefReply) GetJSON200() *struct {
	CheckRuns  []CheckRun `json:"check_runs"`
	TotalCount int        `json:"total_count"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ChecksListForRefReply) Status

func (r ChecksListForRefReply) Status() string

Status returns HTTPResponse.Status

func (ChecksListForRefReply) StatusCode

func (r ChecksListForRefReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChecksListForSuiteParams

type ChecksListForSuiteParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ChecksListForSuiteParams defines parameters for ChecksListForSuite.

type ChecksListForSuiteReply

type ChecksListForSuiteReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		CheckRuns  []CheckRun `json:"check_runs"`
		TotalCount int        `json:"total_count"`
	}
}

func ParseChecksListForSuiteReply

func ParseChecksListForSuiteReply(rsp *http.Response) (*ChecksListForSuiteReply, error)

ParseChecksListForSuiteReply parses an HTTP response from a ChecksListForSuiteWithResponse call

func (ChecksListForSuiteReply) ContentType

func (r ChecksListForSuiteReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChecksListForSuiteReply) GetBody

func (r ChecksListForSuiteReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ChecksListForSuiteReply) GetJSON200

func (r ChecksListForSuiteReply) GetJSON200() *struct {
	CheckRuns  []CheckRun `json:"check_runs"`
	TotalCount int        `json:"total_count"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ChecksListForSuiteReply) Status

func (r ChecksListForSuiteReply) Status() string

Status returns HTTPResponse.Status

func (ChecksListForSuiteReply) StatusCode

func (r ChecksListForSuiteReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChecksUpdateJSONBody

type ChecksUpdateJSONBody struct {
	// Actions Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."
	Actions []struct {
		// Description A short explanation of what this action would do. The maximum size is 40 characters.
		Description string `json:"description"`

		// Identifier A reference for the action on the integrator's system. The maximum size is 20 characters.
		Identifier string `json:"identifier"`

		// Label The text to be displayed on a button in the web UI. The maximum size is 20 characters.
		Label string `json:"label"`
	} `json:"actions,omitempty"`

	// CompletedAt The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	CompletedAt string `json:"completed_at,omitempty"`

	// Conclusion **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check.
	// **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.
	Conclusion ChecksUpdateJSONBodyConclusion `json:"conclusion,omitempty"`

	// DetailsURL The URL of the integrator's site that has the full details of the check.
	DetailsURL string `json:"details_url,omitempty"`

	// ExternalID A reference for the run on the integrator's system.
	ExternalID string `json:"external_id,omitempty"`

	// Name The name of the check. For example, "code-coverage".
	Name string `json:"name,omitempty"`

	// Output Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.
	Output struct {
		// Annotations Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".
		Annotations []struct {
			// AnnotationLevel The level of the annotation.
			AnnotationLevel ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel `json:"annotation_level"`

			// EndColumn The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.
			EndColumn int `json:"end_column,omitempty"`

			// EndLine The end line of the annotation.
			EndLine int `json:"end_line"`

			// Message A short description of the feedback for these lines of code. The maximum size is 64 KB.
			Message string `json:"message"`

			// Path The path of the file to add an annotation to. For example, `assets/css/main.css`.
			Path string `json:"path"`

			// RawDetails Details about this annotation. The maximum size is 64 KB.
			RawDetails string `json:"raw_details,omitempty"`

			// StartColumn The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.
			StartColumn int `json:"start_column,omitempty"`

			// StartLine The start line of the annotation. Line numbers start at 1.
			StartLine int `json:"start_line"`

			// Title The title that represents the annotation. The maximum size is 255 characters.
			Title string `json:"title,omitempty"`
		} `json:"annotations,omitempty"`

		// Images Adds images to the output displayed in the GitHub pull request UI.
		Images []struct {
			// Alt The alternative text for the image.
			Alt string `json:"alt"`

			// Caption A short image description.
			Caption string `json:"caption,omitempty"`

			// ImageURL The full URL of the image.
			ImageURL string `json:"image_url"`
		} `json:"images,omitempty"`

		// Summary Can contain Markdown.
		Summary string `json:"summary"`

		// Text Can contain Markdown.
		Text string `json:"text,omitempty"`

		// Title **Required**.
		Title string `json:"title,omitempty"`
	} `json:"output,omitempty"`

	// StartedAt This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	StartedAt string `json:"started_at,omitempty"`

	// Status The current status of the check run. Only GitHub Actions can set a status of `waiting`, `pending`, or `requested`.
	Status ChecksUpdateJSONBodyStatus `json:"status,omitempty"`
}

ChecksUpdateJSONBody defines body for ChecksUpdate for application/json ContentType.

type ChecksUpdateJSONBodyConclusion

type ChecksUpdateJSONBodyConclusion string

ChecksUpdateJSONBodyConclusion defines model for ChecksUpdateJSONBody.Conclusion.

const (
	ChecksUpdateJSONBodyConclusionActionRequired ChecksUpdateJSONBodyConclusion = "action_required"
	ChecksUpdateJSONBodyConclusionCancelled      ChecksUpdateJSONBodyConclusion = "cancelled"
	ChecksUpdateJSONBodyConclusionFailure        ChecksUpdateJSONBodyConclusion = "failure"
	ChecksUpdateJSONBodyConclusionNeutral        ChecksUpdateJSONBodyConclusion = "neutral"
	ChecksUpdateJSONBodyConclusionSkipped        ChecksUpdateJSONBodyConclusion = "skipped"
	ChecksUpdateJSONBodyConclusionStale          ChecksUpdateJSONBodyConclusion = "stale"
	ChecksUpdateJSONBodyConclusionSuccess        ChecksUpdateJSONBodyConclusion = "success"
	ChecksUpdateJSONBodyConclusionTimedOut       ChecksUpdateJSONBodyConclusion = "timed_out"
)

Defines values for ChecksUpdateJSONBodyConclusion.

func (ChecksUpdateJSONBodyConclusion) Valid

Valid indicates whether the value is a known member of the ChecksUpdateJSONBodyConclusion enum.

type ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel

type ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel string

ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel defines model for ChecksUpdateJSONBody.Output.Annotations.AnnotationLevel.

const (
	ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevelFailure ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel = "failure"
	ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevelNotice  ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel = "notice"
	ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevelWarning ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel = "warning"
)

Defines values for ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel.

func (ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel) Valid

Valid indicates whether the value is a known member of the ChecksUpdateJSONBodyOutputAnnotationsAnnotationLevel enum.

type ChecksUpdateJSONBodyStatus

type ChecksUpdateJSONBodyStatus string

ChecksUpdateJSONBodyStatus defines model for ChecksUpdateJSONBody.Status.

const (
	ChecksUpdateJSONBodyStatusCompleted  ChecksUpdateJSONBodyStatus = "completed"
	ChecksUpdateJSONBodyStatusInProgress ChecksUpdateJSONBodyStatus = "in_progress"
	ChecksUpdateJSONBodyStatusPending    ChecksUpdateJSONBodyStatus = "pending"
	ChecksUpdateJSONBodyStatusQueued     ChecksUpdateJSONBodyStatus = "queued"
	ChecksUpdateJSONBodyStatusRequested  ChecksUpdateJSONBodyStatus = "requested"
	ChecksUpdateJSONBodyStatusWaiting    ChecksUpdateJSONBodyStatus = "waiting"
)

Defines values for ChecksUpdateJSONBodyStatus.

func (ChecksUpdateJSONBodyStatus) Valid

func (e ChecksUpdateJSONBodyStatus) Valid() bool

Valid indicates whether the value is a known member of the ChecksUpdateJSONBodyStatus enum.

type ChecksUpdateJSONRequestBody

type ChecksUpdateJSONRequestBody ChecksUpdateJSONBody

ChecksUpdateJSONRequestBody defines body for ChecksUpdate for application/json ContentType.

type ChecksUpdateReply

type ChecksUpdateReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CheckRun
}

func ParseChecksUpdateReply

func ParseChecksUpdateReply(rsp *http.Response) (*ChecksUpdateReply, error)

ParseChecksUpdateReply parses an HTTP response from a ChecksUpdateWithResponse call

func (ChecksUpdateReply) ContentType

func (r ChecksUpdateReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChecksUpdateReply) GetBody

func (r ChecksUpdateReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ChecksUpdateReply) GetJSON200

func (r ChecksUpdateReply) GetJSON200() *CheckRun

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ChecksUpdateReply) Status

func (r ChecksUpdateReply) Status() string

Status returns HTTPResponse.Status

func (ChecksUpdateReply) StatusCode

func (r ChecksUpdateReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) ActionsGetGithubActionsDefaultWorkflowPermissionsRepository

func (c *Client) ActionsGetGithubActionsDefaultWorkflowPermissionsRepository(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsGetGithubActionsDefaultWorkflowPermissionsRepository performs a GET /repos/{owner}/{repo}/actions/permissions/workflow (the `ActionsGetGithubActionsDefaultWorkflowPermissionsRepository` operationId) request.

func (*Client) ActionsGetGithubActionsPermissionsRepository

func (c *Client) ActionsGetGithubActionsPermissionsRepository(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsGetGithubActionsPermissionsRepository performs a GET /repos/{owner}/{repo}/actions/permissions (the `ActionsGetGithubActionsPermissionsRepository` operationId) request.

func (*Client) ActionsGetJobForWorkflowRun

func (c *Client) ActionsGetJobForWorkflowRun(ctx context.Context, owner string, repo string, jobID string, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsGetJobForWorkflowRun performs a GET /repos/{owner}/{repo}/actions/jobs/{job_id} (the `ActionsGetJobForWorkflowRun` operationId) request.

func (*Client) ActionsGetPendingDeploymentsForRun

func (c *Client) ActionsGetPendingDeploymentsForRun(ctx context.Context, owner string, repo string, runID string, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsGetPendingDeploymentsForRun performs a GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments (the `ActionsGetPendingDeploymentsForRun` operationId) request.

func (*Client) ActionsListArtifactsForRepo

func (c *Client) ActionsListArtifactsForRepo(ctx context.Context, owner string, repo string, params *ActionsListArtifactsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsListArtifactsForRepo performs a GET /repos/{owner}/{repo}/actions/artifacts (the `ActionsListArtifactsForRepo` operationId) request.

func (*Client) ActionsListRepoVariables

func (c *Client) ActionsListRepoVariables(ctx context.Context, owner string, repo string, params *ActionsListRepoVariablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsListRepoVariables performs a GET /repos/{owner}/{repo}/actions/variables (the `ActionsListRepoVariables` operationId) request.

func (*Client) ActionsListRepoWorkflows

func (c *Client) ActionsListRepoWorkflows(ctx context.Context, owner string, repo string, params *ActionsListRepoWorkflowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsListRepoWorkflows performs a GET /repos/{owner}/{repo}/actions/workflows (the `ActionsListRepoWorkflows` operationId) request.

func (*Client) ActionsListSelfHostedRunnersForRepo

func (c *Client) ActionsListSelfHostedRunnersForRepo(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsListSelfHostedRunnersForRepo performs a GET /repos/{owner}/{repo}/actions/runners (the `ActionsListSelfHostedRunnersForRepo` operationId) request.

func (*Client) ActionsListWorkflowRuns

func (c *Client) ActionsListWorkflowRuns(ctx context.Context, owner string, repo string, workflowID string, params *ActionsListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsListWorkflowRuns performs a GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs (the `ActionsListWorkflowRuns` operationId) request.

func (*Client) ActionsListWorkflowRunsForRepo

func (c *Client) ActionsListWorkflowRunsForRepo(ctx context.Context, owner string, repo string, params *ActionsListWorkflowRunsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ActionsListWorkflowRunsForRepo performs a GET /repos/{owner}/{repo}/actions/runs (the `ActionsListWorkflowRunsForRepo` operationId) request.

func (*Client) ActivityListReposStarredByUser

func (c *Client) ActivityListReposStarredByUser(ctx context.Context, username string, params *ActivityListReposStarredByUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ActivityListReposStarredByUser performs a GET /users/{username}/starred (the `ActivityListReposStarredByUser` operationId) request.

func (*Client) AppsCreateInstallationAccessToken

func (c *Client) AppsCreateInstallationAccessToken(ctx context.Context, installationID string, body AppsCreateInstallationAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AppsCreateInstallationAccessToken performs a POST /app/installations/{installation_id}/access_tokens (the `AppsCreateInstallationAccessToken` operationId) request. Takes a body of the `application/json` content type.

func (*Client) AppsCreateInstallationAccessTokenWithBody

func (c *Client) AppsCreateInstallationAccessTokenWithBody(ctx context.Context, installationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

AppsCreateInstallationAccessTokenWithBody performs a POST /app/installations/{installation_id}/access_tokens (the `AppsCreateInstallationAccessToken` operationId) request, with any type of body and a specified content type.

func (*Client) AppsGetAuthenticated

func (c *Client) AppsGetAuthenticated(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

AppsGetAuthenticated performs a GET /app (the `AppsGetAuthenticated` operationId) request.

func (*Client) AppsGetRepoInstallation

func (c *Client) AppsGetRepoInstallation(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

AppsGetRepoInstallation performs a GET /repos/{owner}/{repo}/installation (the `AppsGetRepoInstallation` operationId) request.

func (*Client) AppsListInstallations

func (c *Client) AppsListInstallations(ctx context.Context, params *AppsListInstallationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

AppsListInstallations performs a GET /app/installations (the `AppsListInstallations` operationId) request.

func (*Client) AppsListReposAccessibleToInstallation

func (c *Client) AppsListReposAccessibleToInstallation(ctx context.Context, params *AppsListReposAccessibleToInstallationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

AppsListReposAccessibleToInstallation performs a GET /installation/repositories (the `AppsListReposAccessibleToInstallation` operationId) request.

func (*Client) AppsListWebhookDeliveries

func (c *Client) AppsListWebhookDeliveries(ctx context.Context, params *AppsListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

AppsListWebhookDeliveries performs a GET /app/hook/deliveries (the `AppsListWebhookDeliveries` operationId) request.

func (*Client) ChecksCreate

func (c *Client) ChecksCreate(ctx context.Context, owner string, repo string, body ChecksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ChecksCreate performs a POST /repos/{owner}/{repo}/check-runs (the `ChecksCreate` operationId) request. Takes a body of the `application/json` content type.

func (*Client) ChecksCreateWithBody

func (c *Client) ChecksCreateWithBody(ctx context.Context, owner string, repo string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ChecksCreateWithBody performs a POST /repos/{owner}/{repo}/check-runs (the `ChecksCreate` operationId) request, with any type of body and a specified content type.

func (*Client) ChecksListForRef

func (c *Client) ChecksListForRef(ctx context.Context, owner string, repo string, ref string, params *ChecksListForRefParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ChecksListForRef performs a GET /repos/{owner}/{repo}/commits/{ref}/check-runs (the `ChecksListForRef` operationId) request.

func (*Client) ChecksListForSuite

func (c *Client) ChecksListForSuite(ctx context.Context, owner string, repo string, checkSuiteID string, params *ChecksListForSuiteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ChecksListForSuite performs a GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs (the `ChecksListForSuite` operationId) request.

func (*Client) ChecksUpdate

func (c *Client) ChecksUpdate(ctx context.Context, owner string, repo string, checkRunID string, body ChecksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ChecksUpdate performs a PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} (the `ChecksUpdate` operationId) request. Takes a body of the `application/json` content type.

func (*Client) ChecksUpdateWithBody

func (c *Client) ChecksUpdateWithBody(ctx context.Context, owner string, repo string, checkRunID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ChecksUpdateWithBody performs a PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} (the `ChecksUpdate` operationId) request, with any type of body and a specified content type.

func (*Client) CodeScanningListAlertsForRepo

func (c *Client) CodeScanningListAlertsForRepo(ctx context.Context, owner string, repo string, params *CodeScanningListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CodeScanningListAlertsForRepo performs a GET /repos/{owner}/{repo}/code-scanning/alerts (the `CodeScanningListAlertsForRepo` operationId) request.

func (*Client) DependabotListAlertsForRepo

func (c *Client) DependabotListAlertsForRepo(ctx context.Context, owner string, repo string, params *DependabotListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DependabotListAlertsForRepo performs a GET /repos/{owner}/{repo}/dependabot/alerts (the `DependabotListAlertsForRepo` operationId) request.

func (*Client) GitGetTree

func (c *Client) GitGetTree(ctx context.Context, owner string, repo string, treeSha string, params *GitGetTreeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetTree performs a GET /repos/{owner}/{repo}/git/trees/{tree_sha} (the `GitGetTree` operationId) request.

func (*Client) IssuesCreateComment

func (c *Client) IssuesCreateComment(ctx context.Context, owner string, repo string, issueNumber string, body IssuesCreateCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuesCreateComment performs a POST /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesCreateComment` operationId) request. Takes a body of the `application/json` content type.

func (*Client) IssuesCreateCommentWithBody

func (c *Client) IssuesCreateCommentWithBody(ctx context.Context, owner string, repo string, issueNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuesCreateCommentWithBody performs a POST /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesCreateComment` operationId) request, with any type of body and a specified content type.

func (*Client) IssuesListComments

func (c *Client) IssuesListComments(ctx context.Context, owner string, repo string, issueNumber string, params *IssuesListCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuesListComments performs a GET /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesListComments` operationId) request.

func (*Client) IssuesListForRepo

func (c *Client) IssuesListForRepo(ctx context.Context, owner string, repo string, params *IssuesListForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuesListForRepo performs a GET /repos/{owner}/{repo}/issues (the `IssuesListForRepo` operationId) request.

func (*Client) IssuesUpdate

func (c *Client) IssuesUpdate(ctx context.Context, owner string, repo string, issueNumber string, body IssuesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuesUpdate performs a PATCH /repos/{owner}/{repo}/issues/{issue_number} (the `IssuesUpdate` operationId) request. Takes a body of the `application/json` content type.

func (*Client) IssuesUpdateWithBody

func (c *Client) IssuesUpdateWithBody(ctx context.Context, owner string, repo string, issueNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

IssuesUpdateWithBody performs a PATCH /repos/{owner}/{repo}/issues/{issue_number} (the `IssuesUpdate` operationId) request, with any type of body and a specified content type.

func (*Client) PullsGet

func (c *Client) PullsGet(ctx context.Context, owner string, repo string, pullNumber string, reqEditors ...RequestEditorFn) (*http.Response, error)

PullsGet performs a GET /repos/{owner}/{repo}/pulls/{pull_number} (the `PullsGet` operationId) request.

func (*Client) PullsList

func (c *Client) PullsList(ctx context.Context, owner string, repo string, params *PullsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

PullsList performs a GET /repos/{owner}/{repo}/pulls (the `PullsList` operationId) request.

func (*Client) PullsListFiles

func (c *Client) PullsListFiles(ctx context.Context, owner string, repo string, pullNumber string, params *PullsListFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

PullsListFiles performs a GET /repos/{owner}/{repo}/pulls/{pull_number}/files (the `PullsListFiles` operationId) request.

func (*Client) PullsMerge

func (c *Client) PullsMerge(ctx context.Context, owner string, repo string, pullNumber string, body PullsMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PullsMerge performs a PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge (the `PullsMerge` operationId) request. Takes a body of the `application/json` content type.

func (*Client) PullsMergeWithBody

func (c *Client) PullsMergeWithBody(ctx context.Context, owner string, repo string, pullNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PullsMergeWithBody performs a PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge (the `PullsMerge` operationId) request, with any type of body and a specified content type.

func (*Client) RateLimitGet

func (c *Client) RateLimitGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

RateLimitGet performs a GET /rate_limit (the `RateLimitGet` operationId) request.

func (*Client) ReposCheckVulnerabilityAlerts

func (c *Client) ReposCheckVulnerabilityAlerts(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposCheckVulnerabilityAlerts performs a GET /repos/{owner}/{repo}/vulnerability-alerts (the `ReposCheckVulnerabilityAlerts` operationId) request.

func (*Client) ReposGet

func (c *Client) ReposGet(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposGet performs a GET /repos/{owner}/{repo} (the `ReposGet` operationId) request.

func (*Client) ReposGetAllEnvironments

func (c *Client) ReposGetAllEnvironments(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposGetAllEnvironments performs a GET /repos/{owner}/{repo}/environments (the `ReposGetAllEnvironments` operationId) request.

func (*Client) ReposGetBranchRules

func (c *Client) ReposGetBranchRules(ctx context.Context, owner string, repo string, branch string, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposGetBranchRules performs a GET /repos/{owner}/{repo}/rules/branches/{branch} (the `ReposGetBranchRules` operationId) request.

func (*Client) ReposGetCommit

func (c *Client) ReposGetCommit(ctx context.Context, owner string, repo string, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposGetCommit performs a GET /repos/{owner}/{repo}/commits/{ref} (the `ReposGetCommit` operationId) request.

func (*Client) ReposGetContent

func (c *Client) ReposGetContent(ctx context.Context, owner string, repo string, path string, params *ReposGetContentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposGetContent performs a GET /repos/{owner}/{repo}/contents/{path} (the `ReposGetContent` operationId) request.

func (*Client) ReposGetLatestRelease

func (c *Client) ReposGetLatestRelease(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposGetLatestRelease performs a GET /repos/{owner}/{repo}/releases/latest (the `ReposGetLatestRelease` operationId) request.

func (*Client) ReposListCollaborators

func (c *Client) ReposListCollaborators(ctx context.Context, owner string, repo string, params *ReposListCollaboratorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposListCollaborators performs a GET /repos/{owner}/{repo}/collaborators (the `ReposListCollaborators` operationId) request.

func (*Client) ReposListCommits

func (c *Client) ReposListCommits(ctx context.Context, owner string, repo string, params *ReposListCommitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposListCommits performs a GET /repos/{owner}/{repo}/commits (the `ReposListCommits` operationId) request.

func (*Client) ReposListDeployKeys

func (c *Client) ReposListDeployKeys(ctx context.Context, owner string, repo string, params *ReposListDeployKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposListDeployKeys performs a GET /repos/{owner}/{repo}/keys (the `ReposListDeployKeys` operationId) request.

func (*Client) ReposListDeploymentStatuses

func (c *Client) ReposListDeploymentStatuses(ctx context.Context, owner string, repo string, deploymentID string, params *ReposListDeploymentStatusesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposListDeploymentStatuses performs a GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses (the `ReposListDeploymentStatuses` operationId) request.

func (*Client) ReposListDeployments

func (c *Client) ReposListDeployments(ctx context.Context, owner string, repo string, params *ReposListDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposListDeployments performs a GET /repos/{owner}/{repo}/deployments (the `ReposListDeployments` operationId) request.

func (*Client) ReposListPullRequestsAssociatedWithCommit

func (c *Client) ReposListPullRequestsAssociatedWithCommit(ctx context.Context, owner string, repo string, commitSha string, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposListPullRequestsAssociatedWithCommit performs a GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls (the `ReposListPullRequestsAssociatedWithCommit` operationId) request.

func (*Client) ReposListReleases

func (c *Client) ReposListReleases(ctx context.Context, owner string, repo string, params *ReposListReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ReposListReleases performs a GET /repos/{owner}/{repo}/releases (the `ReposListReleases` operationId) request.

func (*Client) SecretScanningListAlertsForRepo

func (c *Client) SecretScanningListAlertsForRepo(ctx context.Context, owner string, repo string, params *SecretScanningListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SecretScanningListAlertsForRepo performs a GET /repos/{owner}/{repo}/secret-scanning/alerts (the `SecretScanningListAlertsForRepo` operationId) request.

func (*Client) SecurityAdvisoriesListRepositoryAdvisories

func (c *Client) SecurityAdvisoriesListRepositoryAdvisories(ctx context.Context, owner string, repo string, params *SecurityAdvisoriesListRepositoryAdvisoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SecurityAdvisoriesListRepositoryAdvisories performs a GET /repos/{owner}/{repo}/security-advisories (the `SecurityAdvisoriesListRepositoryAdvisories` operationId) request.

func (*Client) UsersGetByUsername

func (c *Client) UsersGetByUsername(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*http.Response, error)

UsersGetByUsername performs a GET /users/{username} (the `UsersGetByUsername` operationId) request.

type ClientInterface

type ClientInterface interface {

	// AppsGetAuthenticated performs a GET /app (the `AppsGetAuthenticated` operationId) request.
	AppsGetAuthenticated(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AppsListWebhookDeliveries performs a GET /app/hook/deliveries (the `AppsListWebhookDeliveries` operationId) request.
	AppsListWebhookDeliveries(ctx context.Context, params *AppsListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AppsListInstallations performs a GET /app/installations (the `AppsListInstallations` operationId) request.
	AppsListInstallations(ctx context.Context, params *AppsListInstallationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AppsCreateInstallationAccessTokenWithBody performs a POST /app/installations/{installation_id}/access_tokens (the `AppsCreateInstallationAccessToken` operationId) request,
	// with any type of body and a specified content type.
	AppsCreateInstallationAccessTokenWithBody(ctx context.Context, installationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AppsCreateInstallationAccessToken performs a POST /app/installations/{installation_id}/access_tokens (the `AppsCreateInstallationAccessToken` operationId) request.
	// Takes a body of the `application/json` content type.
	AppsCreateInstallationAccessToken(ctx context.Context, installationID string, body AppsCreateInstallationAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AppsListReposAccessibleToInstallation performs a GET /installation/repositories (the `AppsListReposAccessibleToInstallation` operationId) request.
	AppsListReposAccessibleToInstallation(ctx context.Context, params *AppsListReposAccessibleToInstallationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RateLimitGet performs a GET /rate_limit (the `RateLimitGet` operationId) request.
	RateLimitGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposGet performs a GET /repos/{owner}/{repo} (the `ReposGet` operationId) request.
	ReposGet(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsListArtifactsForRepo performs a GET /repos/{owner}/{repo}/actions/artifacts (the `ActionsListArtifactsForRepo` operationId) request.
	ActionsListArtifactsForRepo(ctx context.Context, owner string, repo string, params *ActionsListArtifactsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsGetJobForWorkflowRun performs a GET /repos/{owner}/{repo}/actions/jobs/{job_id} (the `ActionsGetJobForWorkflowRun` operationId) request.
	ActionsGetJobForWorkflowRun(ctx context.Context, owner string, repo string, jobID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsGetGithubActionsPermissionsRepository performs a GET /repos/{owner}/{repo}/actions/permissions (the `ActionsGetGithubActionsPermissionsRepository` operationId) request.
	ActionsGetGithubActionsPermissionsRepository(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsGetGithubActionsDefaultWorkflowPermissionsRepository performs a GET /repos/{owner}/{repo}/actions/permissions/workflow (the `ActionsGetGithubActionsDefaultWorkflowPermissionsRepository` operationId) request.
	ActionsGetGithubActionsDefaultWorkflowPermissionsRepository(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsListSelfHostedRunnersForRepo performs a GET /repos/{owner}/{repo}/actions/runners (the `ActionsListSelfHostedRunnersForRepo` operationId) request.
	ActionsListSelfHostedRunnersForRepo(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsListWorkflowRunsForRepo performs a GET /repos/{owner}/{repo}/actions/runs (the `ActionsListWorkflowRunsForRepo` operationId) request.
	ActionsListWorkflowRunsForRepo(ctx context.Context, owner string, repo string, params *ActionsListWorkflowRunsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsGetPendingDeploymentsForRun performs a GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments (the `ActionsGetPendingDeploymentsForRun` operationId) request.
	ActionsGetPendingDeploymentsForRun(ctx context.Context, owner string, repo string, runID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsListRepoVariables performs a GET /repos/{owner}/{repo}/actions/variables (the `ActionsListRepoVariables` operationId) request.
	ActionsListRepoVariables(ctx context.Context, owner string, repo string, params *ActionsListRepoVariablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsListRepoWorkflows performs a GET /repos/{owner}/{repo}/actions/workflows (the `ActionsListRepoWorkflows` operationId) request.
	ActionsListRepoWorkflows(ctx context.Context, owner string, repo string, params *ActionsListRepoWorkflowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActionsListWorkflowRuns performs a GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs (the `ActionsListWorkflowRuns` operationId) request.
	ActionsListWorkflowRuns(ctx context.Context, owner string, repo string, workflowID string, params *ActionsListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChecksCreateWithBody performs a POST /repos/{owner}/{repo}/check-runs (the `ChecksCreate` operationId) request,
	// with any type of body and a specified content type.
	ChecksCreateWithBody(ctx context.Context, owner string, repo string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChecksCreate performs a POST /repos/{owner}/{repo}/check-runs (the `ChecksCreate` operationId) request.
	// Takes a body of the `application/json` content type.
	ChecksCreate(ctx context.Context, owner string, repo string, body ChecksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChecksUpdateWithBody performs a PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} (the `ChecksUpdate` operationId) request,
	// with any type of body and a specified content type.
	ChecksUpdateWithBody(ctx context.Context, owner string, repo string, checkRunID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChecksUpdate performs a PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} (the `ChecksUpdate` operationId) request.
	// Takes a body of the `application/json` content type.
	ChecksUpdate(ctx context.Context, owner string, repo string, checkRunID string, body ChecksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChecksListForSuite performs a GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs (the `ChecksListForSuite` operationId) request.
	ChecksListForSuite(ctx context.Context, owner string, repo string, checkSuiteID string, params *ChecksListForSuiteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CodeScanningListAlertsForRepo performs a GET /repos/{owner}/{repo}/code-scanning/alerts (the `CodeScanningListAlertsForRepo` operationId) request.
	CodeScanningListAlertsForRepo(ctx context.Context, owner string, repo string, params *CodeScanningListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposListCollaborators performs a GET /repos/{owner}/{repo}/collaborators (the `ReposListCollaborators` operationId) request.
	ReposListCollaborators(ctx context.Context, owner string, repo string, params *ReposListCollaboratorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposListCommits performs a GET /repos/{owner}/{repo}/commits (the `ReposListCommits` operationId) request.
	ReposListCommits(ctx context.Context, owner string, repo string, params *ReposListCommitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposListPullRequestsAssociatedWithCommit performs a GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls (the `ReposListPullRequestsAssociatedWithCommit` operationId) request.
	ReposListPullRequestsAssociatedWithCommit(ctx context.Context, owner string, repo string, commitSha string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposGetCommit performs a GET /repos/{owner}/{repo}/commits/{ref} (the `ReposGetCommit` operationId) request.
	ReposGetCommit(ctx context.Context, owner string, repo string, ref string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChecksListForRef performs a GET /repos/{owner}/{repo}/commits/{ref}/check-runs (the `ChecksListForRef` operationId) request.
	ChecksListForRef(ctx context.Context, owner string, repo string, ref string, params *ChecksListForRefParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposGetContent performs a GET /repos/{owner}/{repo}/contents/{path} (the `ReposGetContent` operationId) request.
	ReposGetContent(ctx context.Context, owner string, repo string, path string, params *ReposGetContentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DependabotListAlertsForRepo performs a GET /repos/{owner}/{repo}/dependabot/alerts (the `DependabotListAlertsForRepo` operationId) request.
	DependabotListAlertsForRepo(ctx context.Context, owner string, repo string, params *DependabotListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposListDeployments performs a GET /repos/{owner}/{repo}/deployments (the `ReposListDeployments` operationId) request.
	ReposListDeployments(ctx context.Context, owner string, repo string, params *ReposListDeploymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposListDeploymentStatuses performs a GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses (the `ReposListDeploymentStatuses` operationId) request.
	ReposListDeploymentStatuses(ctx context.Context, owner string, repo string, deploymentID string, params *ReposListDeploymentStatusesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposGetAllEnvironments performs a GET /repos/{owner}/{repo}/environments (the `ReposGetAllEnvironments` operationId) request.
	ReposGetAllEnvironments(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetTree performs a GET /repos/{owner}/{repo}/git/trees/{tree_sha} (the `GitGetTree` operationId) request.
	GitGetTree(ctx context.Context, owner string, repo string, treeSha string, params *GitGetTreeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AppsGetRepoInstallation performs a GET /repos/{owner}/{repo}/installation (the `AppsGetRepoInstallation` operationId) request.
	AppsGetRepoInstallation(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssuesListForRepo performs a GET /repos/{owner}/{repo}/issues (the `IssuesListForRepo` operationId) request.
	IssuesListForRepo(ctx context.Context, owner string, repo string, params *IssuesListForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssuesUpdateWithBody performs a PATCH /repos/{owner}/{repo}/issues/{issue_number} (the `IssuesUpdate` operationId) request,
	// with any type of body and a specified content type.
	IssuesUpdateWithBody(ctx context.Context, owner string, repo string, issueNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssuesUpdate performs a PATCH /repos/{owner}/{repo}/issues/{issue_number} (the `IssuesUpdate` operationId) request.
	// Takes a body of the `application/json` content type.
	IssuesUpdate(ctx context.Context, owner string, repo string, issueNumber string, body IssuesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssuesListComments performs a GET /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesListComments` operationId) request.
	IssuesListComments(ctx context.Context, owner string, repo string, issueNumber string, params *IssuesListCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssuesCreateCommentWithBody performs a POST /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesCreateComment` operationId) request,
	// with any type of body and a specified content type.
	IssuesCreateCommentWithBody(ctx context.Context, owner string, repo string, issueNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IssuesCreateComment performs a POST /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesCreateComment` operationId) request.
	// Takes a body of the `application/json` content type.
	IssuesCreateComment(ctx context.Context, owner string, repo string, issueNumber string, body IssuesCreateCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposListDeployKeys performs a GET /repos/{owner}/{repo}/keys (the `ReposListDeployKeys` operationId) request.
	ReposListDeployKeys(ctx context.Context, owner string, repo string, params *ReposListDeployKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PullsList performs a GET /repos/{owner}/{repo}/pulls (the `PullsList` operationId) request.
	PullsList(ctx context.Context, owner string, repo string, params *PullsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PullsGet performs a GET /repos/{owner}/{repo}/pulls/{pull_number} (the `PullsGet` operationId) request.
	PullsGet(ctx context.Context, owner string, repo string, pullNumber string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PullsListFiles performs a GET /repos/{owner}/{repo}/pulls/{pull_number}/files (the `PullsListFiles` operationId) request.
	PullsListFiles(ctx context.Context, owner string, repo string, pullNumber string, params *PullsListFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PullsMergeWithBody performs a PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge (the `PullsMerge` operationId) request,
	// with any type of body and a specified content type.
	PullsMergeWithBody(ctx context.Context, owner string, repo string, pullNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PullsMerge performs a PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge (the `PullsMerge` operationId) request.
	// Takes a body of the `application/json` content type.
	PullsMerge(ctx context.Context, owner string, repo string, pullNumber string, body PullsMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposListReleases performs a GET /repos/{owner}/{repo}/releases (the `ReposListReleases` operationId) request.
	ReposListReleases(ctx context.Context, owner string, repo string, params *ReposListReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposGetLatestRelease performs a GET /repos/{owner}/{repo}/releases/latest (the `ReposGetLatestRelease` operationId) request.
	ReposGetLatestRelease(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposGetBranchRules performs a GET /repos/{owner}/{repo}/rules/branches/{branch} (the `ReposGetBranchRules` operationId) request.
	ReposGetBranchRules(ctx context.Context, owner string, repo string, branch string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SecretScanningListAlertsForRepo performs a GET /repos/{owner}/{repo}/secret-scanning/alerts (the `SecretScanningListAlertsForRepo` operationId) request.
	SecretScanningListAlertsForRepo(ctx context.Context, owner string, repo string, params *SecretScanningListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SecurityAdvisoriesListRepositoryAdvisories performs a GET /repos/{owner}/{repo}/security-advisories (the `SecurityAdvisoriesListRepositoryAdvisories` operationId) request.
	SecurityAdvisoriesListRepositoryAdvisories(ctx context.Context, owner string, repo string, params *SecurityAdvisoriesListRepositoryAdvisoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReposCheckVulnerabilityAlerts performs a GET /repos/{owner}/{repo}/vulnerability-alerts (the `ReposCheckVulnerabilityAlerts` operationId) request.
	ReposCheckVulnerabilityAlerts(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UsersGetByUsername performs a GET /users/{username} (the `UsersGetByUsername` operationId) request.
	UsersGetByUsername(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActivityListReposStarredByUser performs a GET /users/{username}/starred (the `ActivityListReposStarredByUser` operationId) request.
	ActivityListReposStarredByUser(ctx context.Context, username string, params *ActivityListReposStarredByUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryWithResponse

func (c *ClientWithResponses) ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply, error)

ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryWithResponse performs a GET /repos/{owner}/{repo}/actions/permissions/workflow (the `ActionsGetGithubActionsDefaultWorkflowPermissionsRepository` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsGetGithubActionsPermissionsRepositoryWithResponse

func (c *ClientWithResponses) ActionsGetGithubActionsPermissionsRepositoryWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ActionsGetGithubActionsPermissionsRepositoryReply, error)

ActionsGetGithubActionsPermissionsRepositoryWithResponse performs a GET /repos/{owner}/{repo}/actions/permissions (the `ActionsGetGithubActionsPermissionsRepository` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsGetJobForWorkflowRunWithResponse

func (c *ClientWithResponses) ActionsGetJobForWorkflowRunWithResponse(ctx context.Context, owner string, repo string, jobID string, reqEditors ...RequestEditorFn) (*ActionsGetJobForWorkflowRunReply, error)

ActionsGetJobForWorkflowRunWithResponse performs a GET /repos/{owner}/{repo}/actions/jobs/{job_id} (the `ActionsGetJobForWorkflowRun` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsGetPendingDeploymentsForRunWithResponse

func (c *ClientWithResponses) ActionsGetPendingDeploymentsForRunWithResponse(ctx context.Context, owner string, repo string, runID string, reqEditors ...RequestEditorFn) (*ActionsGetPendingDeploymentsForRunReply, error)

ActionsGetPendingDeploymentsForRunWithResponse performs a GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments (the `ActionsGetPendingDeploymentsForRun` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsListArtifactsForRepoWithResponse

func (c *ClientWithResponses) ActionsListArtifactsForRepoWithResponse(ctx context.Context, owner string, repo string, params *ActionsListArtifactsForRepoParams, reqEditors ...RequestEditorFn) (*ActionsListArtifactsForRepoReply, error)

ActionsListArtifactsForRepoWithResponse performs a GET /repos/{owner}/{repo}/actions/artifacts (the `ActionsListArtifactsForRepo` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsListRepoVariablesWithResponse

func (c *ClientWithResponses) ActionsListRepoVariablesWithResponse(ctx context.Context, owner string, repo string, params *ActionsListRepoVariablesParams, reqEditors ...RequestEditorFn) (*ActionsListRepoVariablesReply, error)

ActionsListRepoVariablesWithResponse performs a GET /repos/{owner}/{repo}/actions/variables (the `ActionsListRepoVariables` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsListRepoWorkflowsWithResponse

func (c *ClientWithResponses) ActionsListRepoWorkflowsWithResponse(ctx context.Context, owner string, repo string, params *ActionsListRepoWorkflowsParams, reqEditors ...RequestEditorFn) (*ActionsListRepoWorkflowsReply, error)

ActionsListRepoWorkflowsWithResponse performs a GET /repos/{owner}/{repo}/actions/workflows (the `ActionsListRepoWorkflows` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsListSelfHostedRunnersForRepoWithResponse

func (c *ClientWithResponses) ActionsListSelfHostedRunnersForRepoWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ActionsListSelfHostedRunnersForRepoReply, error)

ActionsListSelfHostedRunnersForRepoWithResponse performs a GET /repos/{owner}/{repo}/actions/runners (the `ActionsListSelfHostedRunnersForRepo` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsListWorkflowRunsForRepoWithResponse

func (c *ClientWithResponses) ActionsListWorkflowRunsForRepoWithResponse(ctx context.Context, owner string, repo string, params *ActionsListWorkflowRunsForRepoParams, reqEditors ...RequestEditorFn) (*ActionsListWorkflowRunsForRepoReply, error)

ActionsListWorkflowRunsForRepoWithResponse performs a GET /repos/{owner}/{repo}/actions/runs (the `ActionsListWorkflowRunsForRepo` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActionsListWorkflowRunsWithResponse

func (c *ClientWithResponses) ActionsListWorkflowRunsWithResponse(ctx context.Context, owner string, repo string, workflowID string, params *ActionsListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*ActionsListWorkflowRunsReply, error)

ActionsListWorkflowRunsWithResponse performs a GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs (the `ActionsListWorkflowRuns` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActivityListReposStarredByUserWithResponse

func (c *ClientWithResponses) ActivityListReposStarredByUserWithResponse(ctx context.Context, username string, params *ActivityListReposStarredByUserParams, reqEditors ...RequestEditorFn) (*ActivityListReposStarredByUserReply, error)

ActivityListReposStarredByUserWithResponse performs a GET /users/{username}/starred (the `ActivityListReposStarredByUser` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) AppsCreateInstallationAccessTokenWithBodyWithResponse

func (c *ClientWithResponses) AppsCreateInstallationAccessTokenWithBodyWithResponse(ctx context.Context, installationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppsCreateInstallationAccessTokenReply, error)

AppsCreateInstallationAccessTokenWithBodyWithResponse performs a POST /app/installations/{installation_id}/access_tokens (the `AppsCreateInstallationAccessToken` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) AppsCreateInstallationAccessTokenWithResponse

func (c *ClientWithResponses) AppsCreateInstallationAccessTokenWithResponse(ctx context.Context, installationID string, body AppsCreateInstallationAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AppsCreateInstallationAccessTokenReply, error)

AppsCreateInstallationAccessTokenWithResponse performs a POST /app/installations/{installation_id}/access_tokens (the `AppsCreateInstallationAccessToken` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) AppsGetAuthenticatedWithResponse

func (c *ClientWithResponses) AppsGetAuthenticatedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AppsGetAuthenticatedReply, error)

AppsGetAuthenticatedWithResponse performs a GET /app (the `AppsGetAuthenticated` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) AppsGetRepoInstallationWithResponse

func (c *ClientWithResponses) AppsGetRepoInstallationWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*AppsGetRepoInstallationReply, error)

AppsGetRepoInstallationWithResponse performs a GET /repos/{owner}/{repo}/installation (the `AppsGetRepoInstallation` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) AppsListInstallationsWithResponse

func (c *ClientWithResponses) AppsListInstallationsWithResponse(ctx context.Context, params *AppsListInstallationsParams, reqEditors ...RequestEditorFn) (*AppsListInstallationsReply, error)

AppsListInstallationsWithResponse performs a GET /app/installations (the `AppsListInstallations` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) AppsListReposAccessibleToInstallationWithResponse

func (c *ClientWithResponses) AppsListReposAccessibleToInstallationWithResponse(ctx context.Context, params *AppsListReposAccessibleToInstallationParams, reqEditors ...RequestEditorFn) (*AppsListReposAccessibleToInstallationReply, error)

AppsListReposAccessibleToInstallationWithResponse performs a GET /installation/repositories (the `AppsListReposAccessibleToInstallation` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) AppsListWebhookDeliveriesWithResponse

func (c *ClientWithResponses) AppsListWebhookDeliveriesWithResponse(ctx context.Context, params *AppsListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*AppsListWebhookDeliveriesReply, error)

AppsListWebhookDeliveriesWithResponse performs a GET /app/hook/deliveries (the `AppsListWebhookDeliveries` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ChecksCreateWithBodyWithResponse

func (c *ClientWithResponses) ChecksCreateWithBodyWithResponse(ctx context.Context, owner string, repo string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChecksCreateReply, error)

ChecksCreateWithBodyWithResponse performs a POST /repos/{owner}/{repo}/check-runs (the `ChecksCreate` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ChecksCreateWithResponse

func (c *ClientWithResponses) ChecksCreateWithResponse(ctx context.Context, owner string, repo string, body ChecksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ChecksCreateReply, error)

ChecksCreateWithResponse performs a POST /repos/{owner}/{repo}/check-runs (the `ChecksCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ChecksListForRefWithResponse

func (c *ClientWithResponses) ChecksListForRefWithResponse(ctx context.Context, owner string, repo string, ref string, params *ChecksListForRefParams, reqEditors ...RequestEditorFn) (*ChecksListForRefReply, error)

ChecksListForRefWithResponse performs a GET /repos/{owner}/{repo}/commits/{ref}/check-runs (the `ChecksListForRef` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ChecksListForSuiteWithResponse

func (c *ClientWithResponses) ChecksListForSuiteWithResponse(ctx context.Context, owner string, repo string, checkSuiteID string, params *ChecksListForSuiteParams, reqEditors ...RequestEditorFn) (*ChecksListForSuiteReply, error)

ChecksListForSuiteWithResponse performs a GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs (the `ChecksListForSuite` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ChecksUpdateWithBodyWithResponse

func (c *ClientWithResponses) ChecksUpdateWithBodyWithResponse(ctx context.Context, owner string, repo string, checkRunID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChecksUpdateReply, error)

ChecksUpdateWithBodyWithResponse performs a PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} (the `ChecksUpdate` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ChecksUpdateWithResponse

func (c *ClientWithResponses) ChecksUpdateWithResponse(ctx context.Context, owner string, repo string, checkRunID string, body ChecksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ChecksUpdateReply, error)

ChecksUpdateWithResponse performs a PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} (the `ChecksUpdate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CodeScanningListAlertsForRepoWithResponse

func (c *ClientWithResponses) CodeScanningListAlertsForRepoWithResponse(ctx context.Context, owner string, repo string, params *CodeScanningListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*CodeScanningListAlertsForRepoReply, error)

CodeScanningListAlertsForRepoWithResponse performs a GET /repos/{owner}/{repo}/code-scanning/alerts (the `CodeScanningListAlertsForRepo` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DependabotListAlertsForRepoWithResponse

func (c *ClientWithResponses) DependabotListAlertsForRepoWithResponse(ctx context.Context, owner string, repo string, params *DependabotListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*DependabotListAlertsForRepoReply, error)

DependabotListAlertsForRepoWithResponse performs a GET /repos/{owner}/{repo}/dependabot/alerts (the `DependabotListAlertsForRepo` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GitGetTreeWithResponse

func (c *ClientWithResponses) GitGetTreeWithResponse(ctx context.Context, owner string, repo string, treeSha string, params *GitGetTreeParams, reqEditors ...RequestEditorFn) (*GitGetTreeReply, error)

GitGetTreeWithResponse performs a GET /repos/{owner}/{repo}/git/trees/{tree_sha} (the `GitGetTree` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuesCreateCommentWithBodyWithResponse

func (c *ClientWithResponses) IssuesCreateCommentWithBodyWithResponse(ctx context.Context, owner string, repo string, issueNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuesCreateCommentReply, error)

IssuesCreateCommentWithBodyWithResponse performs a POST /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesCreateComment` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuesCreateCommentWithResponse

func (c *ClientWithResponses) IssuesCreateCommentWithResponse(ctx context.Context, owner string, repo string, issueNumber string, body IssuesCreateCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuesCreateCommentReply, error)

IssuesCreateCommentWithResponse performs a POST /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesCreateComment` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuesListCommentsWithResponse

func (c *ClientWithResponses) IssuesListCommentsWithResponse(ctx context.Context, owner string, repo string, issueNumber string, params *IssuesListCommentsParams, reqEditors ...RequestEditorFn) (*IssuesListCommentsReply, error)

IssuesListCommentsWithResponse performs a GET /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesListComments` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuesListForRepoWithResponse

func (c *ClientWithResponses) IssuesListForRepoWithResponse(ctx context.Context, owner string, repo string, params *IssuesListForRepoParams, reqEditors ...RequestEditorFn) (*IssuesListForRepoReply, error)

IssuesListForRepoWithResponse performs a GET /repos/{owner}/{repo}/issues (the `IssuesListForRepo` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuesUpdateWithBodyWithResponse

func (c *ClientWithResponses) IssuesUpdateWithBodyWithResponse(ctx context.Context, owner string, repo string, issueNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuesUpdateReply, error)

IssuesUpdateWithBodyWithResponse performs a PATCH /repos/{owner}/{repo}/issues/{issue_number} (the `IssuesUpdate` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) IssuesUpdateWithResponse

func (c *ClientWithResponses) IssuesUpdateWithResponse(ctx context.Context, owner string, repo string, issueNumber string, body IssuesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuesUpdateReply, error)

IssuesUpdateWithResponse performs a PATCH /repos/{owner}/{repo}/issues/{issue_number} (the `IssuesUpdate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PullsGetWithResponse

func (c *ClientWithResponses) PullsGetWithResponse(ctx context.Context, owner string, repo string, pullNumber string, reqEditors ...RequestEditorFn) (*PullsGetReply, error)

PullsGetWithResponse performs a GET /repos/{owner}/{repo}/pulls/{pull_number} (the `PullsGet` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PullsListFilesWithResponse

func (c *ClientWithResponses) PullsListFilesWithResponse(ctx context.Context, owner string, repo string, pullNumber string, params *PullsListFilesParams, reqEditors ...RequestEditorFn) (*PullsListFilesReply, error)

PullsListFilesWithResponse performs a GET /repos/{owner}/{repo}/pulls/{pull_number}/files (the `PullsListFiles` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PullsListWithResponse

func (c *ClientWithResponses) PullsListWithResponse(ctx context.Context, owner string, repo string, params *PullsListParams, reqEditors ...RequestEditorFn) (*PullsListReply, error)

PullsListWithResponse performs a GET /repos/{owner}/{repo}/pulls (the `PullsList` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PullsMergeWithBodyWithResponse

func (c *ClientWithResponses) PullsMergeWithBodyWithResponse(ctx context.Context, owner string, repo string, pullNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PullsMergeReply, error)

PullsMergeWithBodyWithResponse performs a PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge (the `PullsMerge` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PullsMergeWithResponse

func (c *ClientWithResponses) PullsMergeWithResponse(ctx context.Context, owner string, repo string, pullNumber string, body PullsMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*PullsMergeReply, error)

PullsMergeWithResponse performs a PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge (the `PullsMerge` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) RateLimitGetWithResponse

func (c *ClientWithResponses) RateLimitGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RateLimitGetReply, error)

RateLimitGetWithResponse performs a GET /rate_limit (the `RateLimitGet` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposCheckVulnerabilityAlertsWithResponse

func (c *ClientWithResponses) ReposCheckVulnerabilityAlertsWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ReposCheckVulnerabilityAlertsReply, error)

ReposCheckVulnerabilityAlertsWithResponse performs a GET /repos/{owner}/{repo}/vulnerability-alerts (the `ReposCheckVulnerabilityAlerts` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposGetAllEnvironmentsWithResponse

func (c *ClientWithResponses) ReposGetAllEnvironmentsWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ReposGetAllEnvironmentsReply, error)

ReposGetAllEnvironmentsWithResponse performs a GET /repos/{owner}/{repo}/environments (the `ReposGetAllEnvironments` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposGetBranchRulesWithResponse

func (c *ClientWithResponses) ReposGetBranchRulesWithResponse(ctx context.Context, owner string, repo string, branch string, reqEditors ...RequestEditorFn) (*ReposGetBranchRulesReply, error)

ReposGetBranchRulesWithResponse performs a GET /repos/{owner}/{repo}/rules/branches/{branch} (the `ReposGetBranchRules` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposGetCommitWithResponse

func (c *ClientWithResponses) ReposGetCommitWithResponse(ctx context.Context, owner string, repo string, ref string, reqEditors ...RequestEditorFn) (*ReposGetCommitReply, error)

ReposGetCommitWithResponse performs a GET /repos/{owner}/{repo}/commits/{ref} (the `ReposGetCommit` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposGetContentWithResponse

func (c *ClientWithResponses) ReposGetContentWithResponse(ctx context.Context, owner string, repo string, path string, params *ReposGetContentParams, reqEditors ...RequestEditorFn) (*ReposGetContentReply, error)

ReposGetContentWithResponse performs a GET /repos/{owner}/{repo}/contents/{path} (the `ReposGetContent` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposGetLatestReleaseWithResponse

func (c *ClientWithResponses) ReposGetLatestReleaseWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ReposGetLatestReleaseReply, error)

ReposGetLatestReleaseWithResponse performs a GET /repos/{owner}/{repo}/releases/latest (the `ReposGetLatestRelease` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposGetWithResponse

func (c *ClientWithResponses) ReposGetWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ReposGetReply, error)

ReposGetWithResponse performs a GET /repos/{owner}/{repo} (the `ReposGet` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposListCollaboratorsWithResponse

func (c *ClientWithResponses) ReposListCollaboratorsWithResponse(ctx context.Context, owner string, repo string, params *ReposListCollaboratorsParams, reqEditors ...RequestEditorFn) (*ReposListCollaboratorsReply, error)

ReposListCollaboratorsWithResponse performs a GET /repos/{owner}/{repo}/collaborators (the `ReposListCollaborators` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposListCommitsWithResponse

func (c *ClientWithResponses) ReposListCommitsWithResponse(ctx context.Context, owner string, repo string, params *ReposListCommitsParams, reqEditors ...RequestEditorFn) (*ReposListCommitsReply, error)

ReposListCommitsWithResponse performs a GET /repos/{owner}/{repo}/commits (the `ReposListCommits` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposListDeployKeysWithResponse

func (c *ClientWithResponses) ReposListDeployKeysWithResponse(ctx context.Context, owner string, repo string, params *ReposListDeployKeysParams, reqEditors ...RequestEditorFn) (*ReposListDeployKeysReply, error)

ReposListDeployKeysWithResponse performs a GET /repos/{owner}/{repo}/keys (the `ReposListDeployKeys` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposListDeploymentStatusesWithResponse

func (c *ClientWithResponses) ReposListDeploymentStatusesWithResponse(ctx context.Context, owner string, repo string, deploymentID string, params *ReposListDeploymentStatusesParams, reqEditors ...RequestEditorFn) (*ReposListDeploymentStatusesReply, error)

ReposListDeploymentStatusesWithResponse performs a GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses (the `ReposListDeploymentStatuses` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposListDeploymentsWithResponse

func (c *ClientWithResponses) ReposListDeploymentsWithResponse(ctx context.Context, owner string, repo string, params *ReposListDeploymentsParams, reqEditors ...RequestEditorFn) (*ReposListDeploymentsReply, error)

ReposListDeploymentsWithResponse performs a GET /repos/{owner}/{repo}/deployments (the `ReposListDeployments` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposListPullRequestsAssociatedWithCommitWithResponse

func (c *ClientWithResponses) ReposListPullRequestsAssociatedWithCommitWithResponse(ctx context.Context, owner string, repo string, commitSha string, reqEditors ...RequestEditorFn) (*ReposListPullRequestsAssociatedWithCommitReply, error)

ReposListPullRequestsAssociatedWithCommitWithResponse performs a GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls (the `ReposListPullRequestsAssociatedWithCommit` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ReposListReleasesWithResponse

func (c *ClientWithResponses) ReposListReleasesWithResponse(ctx context.Context, owner string, repo string, params *ReposListReleasesParams, reqEditors ...RequestEditorFn) (*ReposListReleasesReply, error)

ReposListReleasesWithResponse performs a GET /repos/{owner}/{repo}/releases (the `ReposListReleases` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SecretScanningListAlertsForRepoWithResponse

func (c *ClientWithResponses) SecretScanningListAlertsForRepoWithResponse(ctx context.Context, owner string, repo string, params *SecretScanningListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*SecretScanningListAlertsForRepoReply, error)

SecretScanningListAlertsForRepoWithResponse performs a GET /repos/{owner}/{repo}/secret-scanning/alerts (the `SecretScanningListAlertsForRepo` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SecurityAdvisoriesListRepositoryAdvisoriesWithResponse

func (c *ClientWithResponses) SecurityAdvisoriesListRepositoryAdvisoriesWithResponse(ctx context.Context, owner string, repo string, params *SecurityAdvisoriesListRepositoryAdvisoriesParams, reqEditors ...RequestEditorFn) (*SecurityAdvisoriesListRepositoryAdvisoriesReply, error)

SecurityAdvisoriesListRepositoryAdvisoriesWithResponse performs a GET /repos/{owner}/{repo}/security-advisories (the `SecurityAdvisoriesListRepositoryAdvisories` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UsersGetByUsernameWithResponse

func (c *ClientWithResponses) UsersGetByUsernameWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*UsersGetByUsernameReply, error)

UsersGetByUsernameWithResponse performs a GET /users/{username} (the `UsersGetByUsername` operationId) request.

Returns a wrapper object for the known response body format(s).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// AppsGetAuthenticatedWithResponse performs a GET /app (the `AppsGetAuthenticated` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	AppsGetAuthenticatedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AppsGetAuthenticatedReply, error)

	// AppsListWebhookDeliveriesWithResponse performs a GET /app/hook/deliveries (the `AppsListWebhookDeliveries` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	AppsListWebhookDeliveriesWithResponse(ctx context.Context, params *AppsListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*AppsListWebhookDeliveriesReply, error)

	// AppsListInstallationsWithResponse performs a GET /app/installations (the `AppsListInstallations` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	AppsListInstallationsWithResponse(ctx context.Context, params *AppsListInstallationsParams, reqEditors ...RequestEditorFn) (*AppsListInstallationsReply, error)

	// AppsCreateInstallationAccessTokenWithBodyWithResponse performs a POST /app/installations/{installation_id}/access_tokens (the `AppsCreateInstallationAccessToken` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	AppsCreateInstallationAccessTokenWithBodyWithResponse(ctx context.Context, installationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppsCreateInstallationAccessTokenReply, error)

	// AppsCreateInstallationAccessTokenWithResponse performs a POST /app/installations/{installation_id}/access_tokens (the `AppsCreateInstallationAccessToken` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	AppsCreateInstallationAccessTokenWithResponse(ctx context.Context, installationID string, body AppsCreateInstallationAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*AppsCreateInstallationAccessTokenReply, error)

	// AppsListReposAccessibleToInstallationWithResponse performs a GET /installation/repositories (the `AppsListReposAccessibleToInstallation` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	AppsListReposAccessibleToInstallationWithResponse(ctx context.Context, params *AppsListReposAccessibleToInstallationParams, reqEditors ...RequestEditorFn) (*AppsListReposAccessibleToInstallationReply, error)

	// RateLimitGetWithResponse performs a GET /rate_limit (the `RateLimitGet` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	RateLimitGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RateLimitGetReply, error)

	// ReposGetWithResponse performs a GET /repos/{owner}/{repo} (the `ReposGet` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposGetWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ReposGetReply, error)

	// ActionsListArtifactsForRepoWithResponse performs a GET /repos/{owner}/{repo}/actions/artifacts (the `ActionsListArtifactsForRepo` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsListArtifactsForRepoWithResponse(ctx context.Context, owner string, repo string, params *ActionsListArtifactsForRepoParams, reqEditors ...RequestEditorFn) (*ActionsListArtifactsForRepoReply, error)

	// ActionsGetJobForWorkflowRunWithResponse performs a GET /repos/{owner}/{repo}/actions/jobs/{job_id} (the `ActionsGetJobForWorkflowRun` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsGetJobForWorkflowRunWithResponse(ctx context.Context, owner string, repo string, jobID string, reqEditors ...RequestEditorFn) (*ActionsGetJobForWorkflowRunReply, error)

	// ActionsGetGithubActionsPermissionsRepositoryWithResponse performs a GET /repos/{owner}/{repo}/actions/permissions (the `ActionsGetGithubActionsPermissionsRepository` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsGetGithubActionsPermissionsRepositoryWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ActionsGetGithubActionsPermissionsRepositoryReply, error)

	// ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryWithResponse performs a GET /repos/{owner}/{repo}/actions/permissions/workflow (the `ActionsGetGithubActionsDefaultWorkflowPermissionsRepository` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryReply, error)

	// ActionsListSelfHostedRunnersForRepoWithResponse performs a GET /repos/{owner}/{repo}/actions/runners (the `ActionsListSelfHostedRunnersForRepo` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsListSelfHostedRunnersForRepoWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ActionsListSelfHostedRunnersForRepoReply, error)

	// ActionsListWorkflowRunsForRepoWithResponse performs a GET /repos/{owner}/{repo}/actions/runs (the `ActionsListWorkflowRunsForRepo` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsListWorkflowRunsForRepoWithResponse(ctx context.Context, owner string, repo string, params *ActionsListWorkflowRunsForRepoParams, reqEditors ...RequestEditorFn) (*ActionsListWorkflowRunsForRepoReply, error)

	// ActionsGetPendingDeploymentsForRunWithResponse performs a GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments (the `ActionsGetPendingDeploymentsForRun` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsGetPendingDeploymentsForRunWithResponse(ctx context.Context, owner string, repo string, runID string, reqEditors ...RequestEditorFn) (*ActionsGetPendingDeploymentsForRunReply, error)

	// ActionsListRepoVariablesWithResponse performs a GET /repos/{owner}/{repo}/actions/variables (the `ActionsListRepoVariables` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsListRepoVariablesWithResponse(ctx context.Context, owner string, repo string, params *ActionsListRepoVariablesParams, reqEditors ...RequestEditorFn) (*ActionsListRepoVariablesReply, error)

	// ActionsListRepoWorkflowsWithResponse performs a GET /repos/{owner}/{repo}/actions/workflows (the `ActionsListRepoWorkflows` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsListRepoWorkflowsWithResponse(ctx context.Context, owner string, repo string, params *ActionsListRepoWorkflowsParams, reqEditors ...RequestEditorFn) (*ActionsListRepoWorkflowsReply, error)

	// ActionsListWorkflowRunsWithResponse performs a GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs (the `ActionsListWorkflowRuns` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActionsListWorkflowRunsWithResponse(ctx context.Context, owner string, repo string, workflowID string, params *ActionsListWorkflowRunsParams, reqEditors ...RequestEditorFn) (*ActionsListWorkflowRunsReply, error)

	// ChecksCreateWithBodyWithResponse performs a POST /repos/{owner}/{repo}/check-runs (the `ChecksCreate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	ChecksCreateWithBodyWithResponse(ctx context.Context, owner string, repo string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChecksCreateReply, error)

	// ChecksCreateWithResponse performs a POST /repos/{owner}/{repo}/check-runs (the `ChecksCreate` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	ChecksCreateWithResponse(ctx context.Context, owner string, repo string, body ChecksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ChecksCreateReply, error)

	// ChecksUpdateWithBodyWithResponse performs a PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} (the `ChecksUpdate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	ChecksUpdateWithBodyWithResponse(ctx context.Context, owner string, repo string, checkRunID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChecksUpdateReply, error)

	// ChecksUpdateWithResponse performs a PATCH /repos/{owner}/{repo}/check-runs/{check_run_id} (the `ChecksUpdate` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	ChecksUpdateWithResponse(ctx context.Context, owner string, repo string, checkRunID string, body ChecksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ChecksUpdateReply, error)

	// ChecksListForSuiteWithResponse performs a GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs (the `ChecksListForSuite` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ChecksListForSuiteWithResponse(ctx context.Context, owner string, repo string, checkSuiteID string, params *ChecksListForSuiteParams, reqEditors ...RequestEditorFn) (*ChecksListForSuiteReply, error)

	// CodeScanningListAlertsForRepoWithResponse performs a GET /repos/{owner}/{repo}/code-scanning/alerts (the `CodeScanningListAlertsForRepo` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	CodeScanningListAlertsForRepoWithResponse(ctx context.Context, owner string, repo string, params *CodeScanningListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*CodeScanningListAlertsForRepoReply, error)

	// ReposListCollaboratorsWithResponse performs a GET /repos/{owner}/{repo}/collaborators (the `ReposListCollaborators` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposListCollaboratorsWithResponse(ctx context.Context, owner string, repo string, params *ReposListCollaboratorsParams, reqEditors ...RequestEditorFn) (*ReposListCollaboratorsReply, error)

	// ReposListCommitsWithResponse performs a GET /repos/{owner}/{repo}/commits (the `ReposListCommits` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposListCommitsWithResponse(ctx context.Context, owner string, repo string, params *ReposListCommitsParams, reqEditors ...RequestEditorFn) (*ReposListCommitsReply, error)

	// ReposListPullRequestsAssociatedWithCommitWithResponse performs a GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls (the `ReposListPullRequestsAssociatedWithCommit` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposListPullRequestsAssociatedWithCommitWithResponse(ctx context.Context, owner string, repo string, commitSha string, reqEditors ...RequestEditorFn) (*ReposListPullRequestsAssociatedWithCommitReply, error)

	// ReposGetCommitWithResponse performs a GET /repos/{owner}/{repo}/commits/{ref} (the `ReposGetCommit` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposGetCommitWithResponse(ctx context.Context, owner string, repo string, ref string, reqEditors ...RequestEditorFn) (*ReposGetCommitReply, error)

	// ChecksListForRefWithResponse performs a GET /repos/{owner}/{repo}/commits/{ref}/check-runs (the `ChecksListForRef` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ChecksListForRefWithResponse(ctx context.Context, owner string, repo string, ref string, params *ChecksListForRefParams, reqEditors ...RequestEditorFn) (*ChecksListForRefReply, error)

	// ReposGetContentWithResponse performs a GET /repos/{owner}/{repo}/contents/{path} (the `ReposGetContent` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposGetContentWithResponse(ctx context.Context, owner string, repo string, path string, params *ReposGetContentParams, reqEditors ...RequestEditorFn) (*ReposGetContentReply, error)

	// DependabotListAlertsForRepoWithResponse performs a GET /repos/{owner}/{repo}/dependabot/alerts (the `DependabotListAlertsForRepo` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	DependabotListAlertsForRepoWithResponse(ctx context.Context, owner string, repo string, params *DependabotListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*DependabotListAlertsForRepoReply, error)

	// ReposListDeploymentsWithResponse performs a GET /repos/{owner}/{repo}/deployments (the `ReposListDeployments` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposListDeploymentsWithResponse(ctx context.Context, owner string, repo string, params *ReposListDeploymentsParams, reqEditors ...RequestEditorFn) (*ReposListDeploymentsReply, error)

	// ReposListDeploymentStatusesWithResponse performs a GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses (the `ReposListDeploymentStatuses` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposListDeploymentStatusesWithResponse(ctx context.Context, owner string, repo string, deploymentID string, params *ReposListDeploymentStatusesParams, reqEditors ...RequestEditorFn) (*ReposListDeploymentStatusesReply, error)

	// ReposGetAllEnvironmentsWithResponse performs a GET /repos/{owner}/{repo}/environments (the `ReposGetAllEnvironments` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposGetAllEnvironmentsWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ReposGetAllEnvironmentsReply, error)

	// GitGetTreeWithResponse performs a GET /repos/{owner}/{repo}/git/trees/{tree_sha} (the `GitGetTree` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GitGetTreeWithResponse(ctx context.Context, owner string, repo string, treeSha string, params *GitGetTreeParams, reqEditors ...RequestEditorFn) (*GitGetTreeReply, error)

	// AppsGetRepoInstallationWithResponse performs a GET /repos/{owner}/{repo}/installation (the `AppsGetRepoInstallation` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	AppsGetRepoInstallationWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*AppsGetRepoInstallationReply, error)

	// IssuesListForRepoWithResponse performs a GET /repos/{owner}/{repo}/issues (the `IssuesListForRepo` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	IssuesListForRepoWithResponse(ctx context.Context, owner string, repo string, params *IssuesListForRepoParams, reqEditors ...RequestEditorFn) (*IssuesListForRepoReply, error)

	// IssuesUpdateWithBodyWithResponse performs a PATCH /repos/{owner}/{repo}/issues/{issue_number} (the `IssuesUpdate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	IssuesUpdateWithBodyWithResponse(ctx context.Context, owner string, repo string, issueNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuesUpdateReply, error)

	// IssuesUpdateWithResponse performs a PATCH /repos/{owner}/{repo}/issues/{issue_number} (the `IssuesUpdate` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	IssuesUpdateWithResponse(ctx context.Context, owner string, repo string, issueNumber string, body IssuesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuesUpdateReply, error)

	// IssuesListCommentsWithResponse performs a GET /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesListComments` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	IssuesListCommentsWithResponse(ctx context.Context, owner string, repo string, issueNumber string, params *IssuesListCommentsParams, reqEditors ...RequestEditorFn) (*IssuesListCommentsReply, error)

	// IssuesCreateCommentWithBodyWithResponse performs a POST /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesCreateComment` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	IssuesCreateCommentWithBodyWithResponse(ctx context.Context, owner string, repo string, issueNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssuesCreateCommentReply, error)

	// IssuesCreateCommentWithResponse performs a POST /repos/{owner}/{repo}/issues/{issue_number}/comments (the `IssuesCreateComment` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	IssuesCreateCommentWithResponse(ctx context.Context, owner string, repo string, issueNumber string, body IssuesCreateCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*IssuesCreateCommentReply, error)

	// ReposListDeployKeysWithResponse performs a GET /repos/{owner}/{repo}/keys (the `ReposListDeployKeys` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposListDeployKeysWithResponse(ctx context.Context, owner string, repo string, params *ReposListDeployKeysParams, reqEditors ...RequestEditorFn) (*ReposListDeployKeysReply, error)

	// PullsListWithResponse performs a GET /repos/{owner}/{repo}/pulls (the `PullsList` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	PullsListWithResponse(ctx context.Context, owner string, repo string, params *PullsListParams, reqEditors ...RequestEditorFn) (*PullsListReply, error)

	// PullsGetWithResponse performs a GET /repos/{owner}/{repo}/pulls/{pull_number} (the `PullsGet` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	PullsGetWithResponse(ctx context.Context, owner string, repo string, pullNumber string, reqEditors ...RequestEditorFn) (*PullsGetReply, error)

	// PullsListFilesWithResponse performs a GET /repos/{owner}/{repo}/pulls/{pull_number}/files (the `PullsListFiles` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	PullsListFilesWithResponse(ctx context.Context, owner string, repo string, pullNumber string, params *PullsListFilesParams, reqEditors ...RequestEditorFn) (*PullsListFilesReply, error)

	// PullsMergeWithBodyWithResponse performs a PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge (the `PullsMerge` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	PullsMergeWithBodyWithResponse(ctx context.Context, owner string, repo string, pullNumber string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PullsMergeReply, error)

	// PullsMergeWithResponse performs a PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge (the `PullsMerge` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	PullsMergeWithResponse(ctx context.Context, owner string, repo string, pullNumber string, body PullsMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*PullsMergeReply, error)

	// ReposListReleasesWithResponse performs a GET /repos/{owner}/{repo}/releases (the `ReposListReleases` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposListReleasesWithResponse(ctx context.Context, owner string, repo string, params *ReposListReleasesParams, reqEditors ...RequestEditorFn) (*ReposListReleasesReply, error)

	// ReposGetLatestReleaseWithResponse performs a GET /repos/{owner}/{repo}/releases/latest (the `ReposGetLatestRelease` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposGetLatestReleaseWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ReposGetLatestReleaseReply, error)

	// ReposGetBranchRulesWithResponse performs a GET /repos/{owner}/{repo}/rules/branches/{branch} (the `ReposGetBranchRules` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposGetBranchRulesWithResponse(ctx context.Context, owner string, repo string, branch string, reqEditors ...RequestEditorFn) (*ReposGetBranchRulesReply, error)

	// SecretScanningListAlertsForRepoWithResponse performs a GET /repos/{owner}/{repo}/secret-scanning/alerts (the `SecretScanningListAlertsForRepo` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	SecretScanningListAlertsForRepoWithResponse(ctx context.Context, owner string, repo string, params *SecretScanningListAlertsForRepoParams, reqEditors ...RequestEditorFn) (*SecretScanningListAlertsForRepoReply, error)

	// SecurityAdvisoriesListRepositoryAdvisoriesWithResponse performs a GET /repos/{owner}/{repo}/security-advisories (the `SecurityAdvisoriesListRepositoryAdvisories` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	SecurityAdvisoriesListRepositoryAdvisoriesWithResponse(ctx context.Context, owner string, repo string, params *SecurityAdvisoriesListRepositoryAdvisoriesParams, reqEditors ...RequestEditorFn) (*SecurityAdvisoriesListRepositoryAdvisoriesReply, error)

	// ReposCheckVulnerabilityAlertsWithResponse performs a GET /repos/{owner}/{repo}/vulnerability-alerts (the `ReposCheckVulnerabilityAlerts` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ReposCheckVulnerabilityAlertsWithResponse(ctx context.Context, owner string, repo string, reqEditors ...RequestEditorFn) (*ReposCheckVulnerabilityAlertsReply, error)

	// UsersGetByUsernameWithResponse performs a GET /users/{username} (the `UsersGetByUsername` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	UsersGetByUsernameWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*UsersGetByUsernameReply, error)

	// ActivityListReposStarredByUserWithResponse performs a GET /users/{username}/starred (the `ActivityListReposStarredByUser` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ActivityListReposStarredByUserWithResponse(ctx context.Context, username string, params *ActivityListReposStarredByUserParams, reqEditors ...RequestEditorFn) (*ActivityListReposStarredByUserReply, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CodeScanningAlertItems

type CodeScanningAlertItems struct {
	Rule CodeScanningAlertRuleSummary `json:"rule"`
}

CodeScanningAlertItems defines model for code-scanning-alert-items.

type CodeScanningAlertRuleSummary

type CodeScanningAlertRuleSummary struct {
	// SecuritySeverityLevel The security severity of the alert.
	SecuritySeverityLevel CodeScanningAlertRuleSummarySecuritySeverityLevel `json:"security_severity_level,omitempty"`

	// Severity The severity of the alert.
	Severity CodeScanningAlertRuleSummarySeverity `json:"severity,omitempty"`
}

CodeScanningAlertRuleSummary defines model for code-scanning-alert-rule-summary.

type CodeScanningAlertRuleSummarySecuritySeverityLevel

type CodeScanningAlertRuleSummarySecuritySeverityLevel string

CodeScanningAlertRuleSummarySecuritySeverityLevel The security severity of the alert.

const (
	CodeScanningAlertRuleSummarySecuritySeverityLevelCritical CodeScanningAlertRuleSummarySecuritySeverityLevel = "critical"
	CodeScanningAlertRuleSummarySecuritySeverityLevelHigh     CodeScanningAlertRuleSummarySecuritySeverityLevel = "high"
	CodeScanningAlertRuleSummarySecuritySeverityLevelLow      CodeScanningAlertRuleSummarySecuritySeverityLevel = "low"
	CodeScanningAlertRuleSummarySecuritySeverityLevelMedium   CodeScanningAlertRuleSummarySecuritySeverityLevel = "medium"
)

Defines values for CodeScanningAlertRuleSummarySecuritySeverityLevel.

func (CodeScanningAlertRuleSummarySecuritySeverityLevel) Valid

Valid indicates whether the value is a known member of the CodeScanningAlertRuleSummarySecuritySeverityLevel enum.

type CodeScanningAlertRuleSummarySeverity

type CodeScanningAlertRuleSummarySeverity string

CodeScanningAlertRuleSummarySeverity The severity of the alert.

const (
	CodeScanningAlertRuleSummarySeverityError   CodeScanningAlertRuleSummarySeverity = "error"
	CodeScanningAlertRuleSummarySeverityNone    CodeScanningAlertRuleSummarySeverity = "none"
	CodeScanningAlertRuleSummarySeverityNote    CodeScanningAlertRuleSummarySeverity = "note"
	CodeScanningAlertRuleSummarySeverityWarning CodeScanningAlertRuleSummarySeverity = "warning"
)

Defines values for CodeScanningAlertRuleSummarySeverity.

func (CodeScanningAlertRuleSummarySeverity) Valid

Valid indicates whether the value is a known member of the CodeScanningAlertRuleSummarySeverity enum.

type CodeScanningListAlertsForRepoParams

type CodeScanningListAlertsForRepoParams struct {
	// State If specified, only code scanning alerts with this state will be returned.
	State *CodeScanningListAlertsForRepoParamsState `form:"state,omitempty" json:"state,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

CodeScanningListAlertsForRepoParams defines parameters for CodeScanningListAlertsForRepo.

type CodeScanningListAlertsForRepoParamsState

type CodeScanningListAlertsForRepoParamsState string

CodeScanningListAlertsForRepoParamsState defines parameters for CodeScanningListAlertsForRepo.

const (
	CodeScanningListAlertsForRepoParamsStateClosed    CodeScanningListAlertsForRepoParamsState = "closed"
	CodeScanningListAlertsForRepoParamsStateDismissed CodeScanningListAlertsForRepoParamsState = "dismissed"
	CodeScanningListAlertsForRepoParamsStateFixed     CodeScanningListAlertsForRepoParamsState = "fixed"
	CodeScanningListAlertsForRepoParamsStateOpen      CodeScanningListAlertsForRepoParamsState = "open"
)

Defines values for CodeScanningListAlertsForRepoParamsState.

func (CodeScanningListAlertsForRepoParamsState) Valid

Valid indicates whether the value is a known member of the CodeScanningListAlertsForRepoParamsState enum.

type CodeScanningListAlertsForRepoReply

type CodeScanningListAlertsForRepoReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]CodeScanningAlertItems
}

func ParseCodeScanningListAlertsForRepoReply

func ParseCodeScanningListAlertsForRepoReply(rsp *http.Response) (*CodeScanningListAlertsForRepoReply, error)

ParseCodeScanningListAlertsForRepoReply parses an HTTP response from a CodeScanningListAlertsForRepoWithResponse call

func (CodeScanningListAlertsForRepoReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CodeScanningListAlertsForRepoReply) GetBody

GetBody returns the raw response body bytes

func (CodeScanningListAlertsForRepoReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CodeScanningListAlertsForRepoReply) Status

Status returns HTTPResponse.Status

func (CodeScanningListAlertsForRepoReply) StatusCode

func (r CodeScanningListAlertsForRepoReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Collaborator

type Collaborator struct {
	Login    string `json:"login"`
	RoleName string `json:"role_name"`
}

Collaborator Collaborator

type Commit

type Commit struct {
	Author Commit_Author `json:"author"`
	Commit struct {
		// Author Metaproperties for Git author/committer information.
		Author       NullableGitUser `json:"author"`
		CommentCount int             `json:"comment_count"`

		// Committer Metaproperties for Git author/committer information.
		Committer NullableGitUser `json:"committer"`
		Message   string          `json:"message"`
		Tree      struct {
			Sha string `json:"sha"`
			URL string `json:"url"`
		} `json:"tree"`
		URL          string       `json:"url"`
		Verification Verification `json:"verification,omitempty"`
	} `json:"commit"`
	HTMLURL string `json:"html_url"`
	Sha     string `json:"sha"`
}

Commit Commit

type Commit_Author

type Commit_Author struct {
	// contains filtered or unexported fields
}

Commit_Author defines model for Commit.Author.

func (Commit_Author) AsEmptyObject

func (t Commit_Author) AsEmptyObject() (EmptyObject, error)

AsEmptyObject returns the union data inside the Commit_Author as a EmptyObject

func (Commit_Author) AsSimpleUser

func (t Commit_Author) AsSimpleUser() (SimpleUser, error)

AsSimpleUser returns the union data inside the Commit_Author as a SimpleUser

func (*Commit_Author) FromEmptyObject

func (t *Commit_Author) FromEmptyObject(v EmptyObject) error

FromEmptyObject overwrites any union data inside the Commit_Author as the provided EmptyObject

func (*Commit_Author) FromSimpleUser

func (t *Commit_Author) FromSimpleUser(v SimpleUser) error

FromSimpleUser overwrites any union data inside the Commit_Author as the provided SimpleUser

func (Commit_Author) MarshalJSON

func (t Commit_Author) MarshalJSON() ([]byte, error)

func (*Commit_Author) MergeEmptyObject

func (t *Commit_Author) MergeEmptyObject(v EmptyObject) error

MergeEmptyObject performs a merge with any union data inside the Commit_Author, using the provided EmptyObject

func (*Commit_Author) MergeSimpleUser

func (t *Commit_Author) MergeSimpleUser(v SimpleUser) error

MergeSimpleUser performs a merge with any union data inside the Commit_Author, using the provided SimpleUser

func (*Commit_Author) UnmarshalJSON

func (t *Commit_Author) UnmarshalJSON(b []byte) error

type ContentFile

type ContentFile struct {
	Content  string `json:"content"`
	Encoding string `json:"encoding"`
}

ContentFile Content File

type DependabotAlert

type DependabotAlert struct {
	// Dependency Details for the vulnerable dependency.
	Dependency struct {
		// ManifestPath The full path to the dependency manifest file, relative to the root of the repository.
		ManifestPath string `json:"manifest_path,omitempty"`

		// Package Details for the vulnerable package.
		Package DependabotAlertPackage `json:"package,omitempty"`
	} `json:"dependency"`

	// HTMLURL The GitHub URL of the alert resource.
	HTMLURL AlertHTMLURL `json:"html_url"`

	// Number The security alert number.
	Number AlertNumber `json:"number"`

	// SecurityAdvisory Details for the GitHub Security Advisory.
	SecurityAdvisory DependabotAlertSecurityAdvisory `json:"security_advisory"`

	// SecurityVulnerability Details pertaining to one vulnerable version range for the advisory.
	SecurityVulnerability DependabotAlertSecurityVulnerability `json:"security_vulnerability"`
}

DependabotAlert A Dependabot alert.

type DependabotAlertPackage

type DependabotAlertPackage struct {
	// Ecosystem The package's language or package management ecosystem.
	Ecosystem string `json:"ecosystem"`

	// Name The unique package name within its ecosystem.
	Name string `json:"name"`
}

DependabotAlertPackage Details for the vulnerable package.

type DependabotAlertSecurityAdvisory

type DependabotAlertSecurityAdvisory struct {
	// Severity The severity of the advisory.
	Severity DependabotAlertSecurityAdvisorySeverity `json:"severity"`
}

DependabotAlertSecurityAdvisory Details for the GitHub Security Advisory.

type DependabotAlertSecurityAdvisorySeverity

type DependabotAlertSecurityAdvisorySeverity string

DependabotAlertSecurityAdvisorySeverity The severity of the advisory.

const (
	DependabotAlertSecurityAdvisorySeverityCritical DependabotAlertSecurityAdvisorySeverity = "critical"
	DependabotAlertSecurityAdvisorySeverityHigh     DependabotAlertSecurityAdvisorySeverity = "high"
	DependabotAlertSecurityAdvisorySeverityLow      DependabotAlertSecurityAdvisorySeverity = "low"
	DependabotAlertSecurityAdvisorySeverityMedium   DependabotAlertSecurityAdvisorySeverity = "medium"
)

Defines values for DependabotAlertSecurityAdvisorySeverity.

func (DependabotAlertSecurityAdvisorySeverity) Valid

Valid indicates whether the value is a known member of the DependabotAlertSecurityAdvisorySeverity enum.

type DependabotAlertSecurityVulnerability

type DependabotAlertSecurityVulnerability struct {
	// FirstPatchedVersion Details pertaining to the package version that patches this vulnerability.
	FirstPatchedVersion struct {
		// Identifier The package version that patches this vulnerability.
		Identifier string `json:"identifier"`
	} `json:"first_patched_version"`

	// Package Details for the vulnerable package.
	Package DependabotAlertPackage `json:"package"`
}

DependabotAlertSecurityVulnerability Details pertaining to one vulnerable version range for the advisory.

type DependabotListAlertsForRepoParams

type DependabotListAlertsForRepoParams struct {
	// State A comma-separated list of states. If specified, only alerts with these states will be returned.
	//
	// Can be: `auto_dismissed`, `dismissed`, `fixed`, `open`
	State *string `form:"state,omitempty" json:"state,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

DependabotListAlertsForRepoParams defines parameters for DependabotListAlertsForRepo.

type DependabotListAlertsForRepoReply

type DependabotListAlertsForRepoReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]DependabotAlert
}

func ParseDependabotListAlertsForRepoReply

func ParseDependabotListAlertsForRepoReply(rsp *http.Response) (*DependabotListAlertsForRepoReply, error)

ParseDependabotListAlertsForRepoReply parses an HTTP response from a DependabotListAlertsForRepoWithResponse call

func (DependabotListAlertsForRepoReply) ContentType

func (r DependabotListAlertsForRepoReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DependabotListAlertsForRepoReply) GetBody

func (r DependabotListAlertsForRepoReply) GetBody() []byte

GetBody returns the raw response body bytes

func (DependabotListAlertsForRepoReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DependabotListAlertsForRepoReply) Status

Status returns HTTPResponse.Status

func (DependabotListAlertsForRepoReply) StatusCode

func (r DependabotListAlertsForRepoReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeployKey

type DeployKey struct {
	CreatedAt string `json:"created_at"`
	LastUsed  string `json:"last_used,omitempty"`
	ReadOnly  bool   `json:"read_only"`
	Title     string `json:"title"`
}

DeployKey An SSH key granting access to a single repository.

type Deployment

type Deployment struct {
	CreatedAt string `json:"created_at"`

	// Environment Name for the target deployment environment.
	Environment string `json:"environment"`

	// ID Unique identifier of the deployment
	ID      int             `json:"id"`
	Payload json.RawMessage `json:"payload"`
	Sha     string          `json:"sha"`
}

Deployment A request for a specific ref(branch,sha,tag) to be deployed

type DeploymentBranchPolicySettings

type DeploymentBranchPolicySettings struct {
	// CustomBranchPolicies Whether only branches that match the specified name patterns can deploy to this environment.  If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`.
	CustomBranchPolicies bool `json:"custom_branch_policies"`

	// ProtectedBranches Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`.
	ProtectedBranches bool `json:"protected_branches"`
}

DeploymentBranchPolicySettings The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.

type DeploymentReviewerType

type DeploymentReviewerType string

DeploymentReviewerType The type of reviewer.

const (
	DeploymentReviewerTypeTeam DeploymentReviewerType = "Team"
	DeploymentReviewerTypeUser DeploymentReviewerType = "User"
)

Defines values for DeploymentReviewerType.

func (DeploymentReviewerType) Valid

func (e DeploymentReviewerType) Valid() bool

Valid indicates whether the value is a known member of the DeploymentReviewerType enum.

type DeploymentStatus

type DeploymentStatus struct {
	// Description A short description of the status.
	Description string `json:"description"`

	// LogURL The URL to associate with this status.
	LogURL string `json:"log_url,omitempty"`

	// State The state of the status.
	State DeploymentStatusState `json:"state"`

	// TargetURL Closing down notice: the URL to associate with this status.
	TargetURL string `json:"target_url"`
}

DeploymentStatus The status of a deployment.

type DeploymentStatusState

type DeploymentStatusState string

DeploymentStatusState The state of the status.

const (
	DeploymentStatusStateError      DeploymentStatusState = "error"
	DeploymentStatusStateFailure    DeploymentStatusState = "failure"
	DeploymentStatusStateInProgress DeploymentStatusState = "in_progress"
	DeploymentStatusStateInactive   DeploymentStatusState = "inactive"
	DeploymentStatusStatePending    DeploymentStatusState = "pending"
	DeploymentStatusStateQueued     DeploymentStatusState = "queued"
	DeploymentStatusStateSuccess    DeploymentStatusState = "success"
)

Defines values for DeploymentStatusState.

func (DeploymentStatusState) Valid

func (e DeploymentStatusState) Valid() bool

Valid indicates whether the value is a known member of the DeploymentStatusState enum.

type DiffEntry

type DiffEntry struct {
	Additions int             `json:"additions"`
	Deletions int             `json:"deletions"`
	Filename  string          `json:"filename"`
	Status    DiffEntryStatus `json:"status"`
}

DiffEntry Diff Entry

type DiffEntryStatus

type DiffEntryStatus string

DiffEntryStatus defines model for DiffEntry.Status.

const (
	Added     DiffEntryStatus = "added"
	Changed   DiffEntryStatus = "changed"
	Copied    DiffEntryStatus = "copied"
	Modified  DiffEntryStatus = "modified"
	Removed   DiffEntryStatus = "removed"
	Renamed   DiffEntryStatus = "renamed"
	Unchanged DiffEntryStatus = "unchanged"
)

Defines values for DiffEntryStatus.

func (DiffEntryStatus) Valid

func (e DiffEntryStatus) Valid() bool

Valid indicates whether the value is a known member of the DiffEntryStatus enum.

type EmptyObject

type EmptyObject = map[string]any

EmptyObject An object without any properties.

type Enterprise

type Enterprise struct {
	AvatarURL string `json:"avatar_url"`
	CreatedAt string `json:"created_at"`

	// Description A short description of the enterprise.
	Description string `json:"description,omitempty"`
	HTMLURL     string `json:"html_url"`

	// ID Unique identifier of the enterprise
	ID int `json:"id"`

	// Name The name of the enterprise.
	Name   string `json:"name"`
	NodeID string `json:"node_id"`

	// Slug The slug url identifier for the enterprise.
	Slug      string `json:"slug"`
	UpdatedAt string `json:"updated_at"`

	// WebsiteURL The enterprise's website URL.
	WebsiteURL string `json:"website_url,omitempty"`
}

Enterprise An enterprise on GitHub.

type Environment

type Environment struct {
	// DeploymentBranchPolicy The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.
	DeploymentBranchPolicy DeploymentBranchPolicySettings `json:"deployment_branch_policy,omitempty"`

	// Name The name of the environment.
	Name string `json:"name"`

	// ProtectionRules Built-in deployment protection rules for the environment.
	ProtectionRules []Environment_ProtectionRules_Item `json:"protection_rules,omitempty"`
}

Environment Details of a deployment environment

type EnvironmentProtectionRules0

type EnvironmentProtectionRules0 struct {
	ID     int    `json:"id"`
	NodeID string `json:"node_id"`
	Type   string `json:"type"`

	// WaitTimer The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).
	WaitTimer WaitTimer `json:"wait_timer,omitempty"`
}

EnvironmentProtectionRules0 defines model for Environment.ProtectionRules.0.

type EnvironmentProtectionRules1

type EnvironmentProtectionRules1 struct {
	ID     int    `json:"id"`
	NodeID string `json:"node_id"`

	// PreventSelfReview Whether deployments to this environment can be approved by the user who created the deployment.
	PreventSelfReview bool `json:"prevent_self_review,omitempty"`

	// Reviewers The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
	Reviewers []struct {
		Reviewer Environment_ProtectionRules_1_Reviewers_Reviewer `json:"reviewer,omitempty"`

		// Type The type of reviewer.
		Type DeploymentReviewerType `json:"type,omitempty"`
	} `json:"reviewers,omitempty"`
	Type string `json:"type"`
}

EnvironmentProtectionRules1 defines model for Environment.ProtectionRules.1.

type EnvironmentProtectionRules2

type EnvironmentProtectionRules2 struct {
	ID     int    `json:"id"`
	NodeID string `json:"node_id"`
	Type   string `json:"type"`
}

EnvironmentProtectionRules2 defines model for Environment.ProtectionRules.2.

type Environment_ProtectionRules_1_Reviewers_Reviewer

type Environment_ProtectionRules_1_Reviewers_Reviewer struct {
	// contains filtered or unexported fields
}

Environment_ProtectionRules_1_Reviewers_Reviewer defines model for Environment.ProtectionRules.1.Reviewers.Reviewer.

func (Environment_ProtectionRules_1_Reviewers_Reviewer) AsSimpleUser

AsSimpleUser returns the union data inside the Environment_ProtectionRules_1_Reviewers_Reviewer as a SimpleUser

func (Environment_ProtectionRules_1_Reviewers_Reviewer) AsTeam

AsTeam returns the union data inside the Environment_ProtectionRules_1_Reviewers_Reviewer as a Team

func (*Environment_ProtectionRules_1_Reviewers_Reviewer) FromSimpleUser

FromSimpleUser overwrites any union data inside the Environment_ProtectionRules_1_Reviewers_Reviewer as the provided SimpleUser

func (*Environment_ProtectionRules_1_Reviewers_Reviewer) FromTeam

FromTeam overwrites any union data inside the Environment_ProtectionRules_1_Reviewers_Reviewer as the provided Team

func (Environment_ProtectionRules_1_Reviewers_Reviewer) MarshalJSON

func (*Environment_ProtectionRules_1_Reviewers_Reviewer) MergeSimpleUser

MergeSimpleUser performs a merge with any union data inside the Environment_ProtectionRules_1_Reviewers_Reviewer, using the provided SimpleUser

func (*Environment_ProtectionRules_1_Reviewers_Reviewer) MergeTeam

MergeTeam performs a merge with any union data inside the Environment_ProtectionRules_1_Reviewers_Reviewer, using the provided Team

func (*Environment_ProtectionRules_1_Reviewers_Reviewer) UnmarshalJSON

type Environment_ProtectionRules_Item

type Environment_ProtectionRules_Item struct {
	// contains filtered or unexported fields
}

Environment_ProtectionRules_Item defines model for environment.protection_rules.Item.

func (Environment_ProtectionRules_Item) AsEnvironmentProtectionRules0

func (t Environment_ProtectionRules_Item) AsEnvironmentProtectionRules0() (EnvironmentProtectionRules0, error)

AsEnvironmentProtectionRules0 returns the union data inside the Environment_ProtectionRules_Item as a EnvironmentProtectionRules0

func (Environment_ProtectionRules_Item) AsEnvironmentProtectionRules1

func (t Environment_ProtectionRules_Item) AsEnvironmentProtectionRules1() (EnvironmentProtectionRules1, error)

AsEnvironmentProtectionRules1 returns the union data inside the Environment_ProtectionRules_Item as a EnvironmentProtectionRules1

func (Environment_ProtectionRules_Item) AsEnvironmentProtectionRules2

func (t Environment_ProtectionRules_Item) AsEnvironmentProtectionRules2() (EnvironmentProtectionRules2, error)

AsEnvironmentProtectionRules2 returns the union data inside the Environment_ProtectionRules_Item as a EnvironmentProtectionRules2

func (*Environment_ProtectionRules_Item) FromEnvironmentProtectionRules0

func (t *Environment_ProtectionRules_Item) FromEnvironmentProtectionRules0(v EnvironmentProtectionRules0) error

FromEnvironmentProtectionRules0 overwrites any union data inside the Environment_ProtectionRules_Item as the provided EnvironmentProtectionRules0

func (*Environment_ProtectionRules_Item) FromEnvironmentProtectionRules1

func (t *Environment_ProtectionRules_Item) FromEnvironmentProtectionRules1(v EnvironmentProtectionRules1) error

FromEnvironmentProtectionRules1 overwrites any union data inside the Environment_ProtectionRules_Item as the provided EnvironmentProtectionRules1

func (*Environment_ProtectionRules_Item) FromEnvironmentProtectionRules2

func (t *Environment_ProtectionRules_Item) FromEnvironmentProtectionRules2(v EnvironmentProtectionRules2) error

FromEnvironmentProtectionRules2 overwrites any union data inside the Environment_ProtectionRules_Item as the provided EnvironmentProtectionRules2

func (Environment_ProtectionRules_Item) MarshalJSON

func (t Environment_ProtectionRules_Item) MarshalJSON() ([]byte, error)

func (*Environment_ProtectionRules_Item) MergeEnvironmentProtectionRules0

func (t *Environment_ProtectionRules_Item) MergeEnvironmentProtectionRules0(v EnvironmentProtectionRules0) error

MergeEnvironmentProtectionRules0 performs a merge with any union data inside the Environment_ProtectionRules_Item, using the provided EnvironmentProtectionRules0

func (*Environment_ProtectionRules_Item) MergeEnvironmentProtectionRules1

func (t *Environment_ProtectionRules_Item) MergeEnvironmentProtectionRules1(v EnvironmentProtectionRules1) error

MergeEnvironmentProtectionRules1 performs a merge with any union data inside the Environment_ProtectionRules_Item, using the provided EnvironmentProtectionRules1

func (*Environment_ProtectionRules_Item) MergeEnvironmentProtectionRules2

func (t *Environment_ProtectionRules_Item) MergeEnvironmentProtectionRules2(v EnvironmentProtectionRules2) error

MergeEnvironmentProtectionRules2 performs a merge with any union data inside the Environment_ProtectionRules_Item, using the provided EnvironmentProtectionRules2

func (*Environment_ProtectionRules_Item) UnmarshalJSON

func (t *Environment_ProtectionRules_Item) UnmarshalJSON(b []byte) error

type FullRepository

type FullRepository struct {
	Archived      bool   `json:"archived"`
	DefaultBranch string `json:"default_branch"`
	HTMLURL       string `json:"html_url"`
	Private       bool   `json:"private"`
	PushedAt      string `json:"pushed_at"`

	// Visibility The repository visibility: public, private, or internal.
	Visibility string `json:"visibility,omitempty"`
}

FullRepository Full Repository

type GitGetTreeParams

type GitGetTreeParams struct {
	// Recursive Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in `:tree_sha`. For example, setting `recursive` to any of the following will enable returning objects or subtrees: `0`, `1`, `"true"`, and `"false"`. Omit this parameter to prevent recursively returning objects or subtrees.
	Recursive *string `form:"recursive,omitempty" json:"recursive,omitempty"`
}

GitGetTreeParams defines parameters for GitGetTree.

type GitGetTreeReply

type GitGetTreeReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GitTree
}

func ParseGitGetTreeReply

func ParseGitGetTreeReply(rsp *http.Response) (*GitGetTreeReply, error)

ParseGitGetTreeReply parses an HTTP response from a GitGetTreeWithResponse call

func (GitGetTreeReply) ContentType

func (r GitGetTreeReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetTreeReply) GetBody

func (r GitGetTreeReply) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetTreeReply) GetJSON200

func (r GitGetTreeReply) GetJSON200() *GitTree

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetTreeReply) Status

func (r GitGetTreeReply) Status() string

Status returns HTTPResponse.Status

func (GitGetTreeReply) StatusCode

func (r GitGetTreeReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitTree

type GitTree struct {
	// Tree Objects specifying a tree structure
	Tree []struct {
		Mode string `json:"mode"`
		Path string `json:"path"`
		Sha  string `json:"sha"`
		Size int    `json:"size,omitempty"`
		Type string `json:"type"`
		URL  string `json:"url,omitempty"`
	} `json:"tree"`
	Truncated bool `json:"truncated"`
}

GitTree The hierarchy between files in a Git repository.

type HookDeliveryItem

type HookDeliveryItem struct {
	// Action The type of activity for the event that triggered the delivery.
	Action string `json:"action"`

	// DeliveredAt Time when the webhook delivery occurred.
	DeliveredAt string `json:"delivered_at"`

	// Event The event that triggered the delivery.
	Event string `json:"event"`

	// Status Describes the response returned after attempting the delivery.
	Status string `json:"status"`

	// StatusCode Status code received when delivery was made.
	StatusCode int `json:"status_code"`
}

HookDeliveryItem Delivery made by a webhook, without request and response information.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Installation

type Installation struct {
	Account Installation_Account `json:"account"`

	// ID The ID of the installation.
	ID int `json:"id"`
}

Installation Installation

type InstallationToken

type InstallationToken struct {
	ExpiresAt string `json:"expires_at"`
	Token     string `json:"token"`
}

InstallationToken Authentication token for a GitHub App installed on a user or org.

type Installation_Account

type Installation_Account struct {
	// contains filtered or unexported fields
}

Installation_Account defines model for Installation.Account.

func (Installation_Account) AsEnterprise

func (t Installation_Account) AsEnterprise() (Enterprise, error)

AsEnterprise returns the union data inside the Installation_Account as a Enterprise

func (Installation_Account) AsSimpleUser

func (t Installation_Account) AsSimpleUser() (SimpleUser, error)

AsSimpleUser returns the union data inside the Installation_Account as a SimpleUser

func (*Installation_Account) FromEnterprise

func (t *Installation_Account) FromEnterprise(v Enterprise) error

FromEnterprise overwrites any union data inside the Installation_Account as the provided Enterprise

func (*Installation_Account) FromSimpleUser

func (t *Installation_Account) FromSimpleUser(v SimpleUser) error

FromSimpleUser overwrites any union data inside the Installation_Account as the provided SimpleUser

func (Installation_Account) MarshalJSON

func (t Installation_Account) MarshalJSON() ([]byte, error)

func (*Installation_Account) MergeEnterprise

func (t *Installation_Account) MergeEnterprise(v Enterprise) error

MergeEnterprise performs a merge with any union data inside the Installation_Account, using the provided Enterprise

func (*Installation_Account) MergeSimpleUser

func (t *Installation_Account) MergeSimpleUser(v SimpleUser) error

MergeSimpleUser performs a merge with any union data inside the Installation_Account, using the provided SimpleUser

func (*Installation_Account) UnmarshalJSON

func (t *Installation_Account) UnmarshalJSON(b []byte) error

type Integration

type Integration struct {
	// Events The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation.
	Events []string          `json:"events"`
	Owner  Integration_Owner `json:"owner"`

	// Slug The slug name of the GitHub app
	Slug string `json:"slug,omitempty"`
}

Integration GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.

type Integration_Owner

type Integration_Owner struct {
	// contains filtered or unexported fields
}

Integration_Owner defines model for Integration.Owner.

func (Integration_Owner) AsEnterprise

func (t Integration_Owner) AsEnterprise() (Enterprise, error)

AsEnterprise returns the union data inside the Integration_Owner as a Enterprise

func (Integration_Owner) AsSimpleUser

func (t Integration_Owner) AsSimpleUser() (SimpleUser, error)

AsSimpleUser returns the union data inside the Integration_Owner as a SimpleUser

func (*Integration_Owner) FromEnterprise

func (t *Integration_Owner) FromEnterprise(v Enterprise) error

FromEnterprise overwrites any union data inside the Integration_Owner as the provided Enterprise

func (*Integration_Owner) FromSimpleUser

func (t *Integration_Owner) FromSimpleUser(v SimpleUser) error

FromSimpleUser overwrites any union data inside the Integration_Owner as the provided SimpleUser

func (Integration_Owner) MarshalJSON

func (t Integration_Owner) MarshalJSON() ([]byte, error)

func (*Integration_Owner) MergeEnterprise

func (t *Integration_Owner) MergeEnterprise(v Enterprise) error

MergeEnterprise performs a merge with any union data inside the Integration_Owner, using the provided Enterprise

func (*Integration_Owner) MergeSimpleUser

func (t *Integration_Owner) MergeSimpleUser(v SimpleUser) error

MergeSimpleUser performs a merge with any union data inside the Integration_Owner, using the provided SimpleUser

func (*Integration_Owner) UnmarshalJSON

func (t *Integration_Owner) UnmarshalJSON(b []byte) error

type Issue

type Issue struct {
	// Body Contents of the issue
	Body    string `json:"body,omitempty"`
	HTMLURL string `json:"html_url"`

	// Number Number uniquely identifying the issue within its repository
	Number      int `json:"number"`
	PullRequest struct {
		DiffURL  string `json:"diff_url"`
		HTMLURL  string `json:"html_url"`
		MergedAt string `json:"merged_at,omitempty"`
		PatchURL string `json:"patch_url"`
		URL      string `json:"url"`
	} `json:"pull_request,omitempty"`

	// Title Title of the issue
	Title string `json:"title"`

	// User A GitHub user.
	User NullableSimpleUser `json:"user"`
}

Issue Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.

type IssueComment

type IssueComment struct {
	// Body Contents of the issue comment
	Body string `json:"body,omitempty"`

	// User A GitHub user.
	User NullableSimpleUser `json:"user"`
}

IssueComment Comments provide a way for people to collaborate on an issue.

type IssuesCreateCommentJSONBody

type IssuesCreateCommentJSONBody struct {
	// Body The contents of the comment.
	Body string `json:"body"`
}

IssuesCreateCommentJSONBody defines body for IssuesCreateComment for application/json ContentType.

type IssuesCreateCommentJSONRequestBody

type IssuesCreateCommentJSONRequestBody IssuesCreateCommentJSONBody

IssuesCreateCommentJSONRequestBody defines body for IssuesCreateComment for application/json ContentType.

type IssuesCreateCommentReply

type IssuesCreateCommentReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *IssueComment
}

func ParseIssuesCreateCommentReply

func ParseIssuesCreateCommentReply(rsp *http.Response) (*IssuesCreateCommentReply, error)

ParseIssuesCreateCommentReply parses an HTTP response from a IssuesCreateCommentWithResponse call

func (IssuesCreateCommentReply) ContentType

func (r IssuesCreateCommentReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuesCreateCommentReply) GetBody

func (r IssuesCreateCommentReply) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuesCreateCommentReply) GetJSON201

func (r IssuesCreateCommentReply) GetJSON201() *IssueComment

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (IssuesCreateCommentReply) Status

func (r IssuesCreateCommentReply) Status() string

Status returns HTTPResponse.Status

func (IssuesCreateCommentReply) StatusCode

func (r IssuesCreateCommentReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IssuesListCommentsParams

type IssuesListCommentsParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

IssuesListCommentsParams defines parameters for IssuesListComments.

type IssuesListCommentsReply

type IssuesListCommentsReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]IssueComment
}

func ParseIssuesListCommentsReply

func ParseIssuesListCommentsReply(rsp *http.Response) (*IssuesListCommentsReply, error)

ParseIssuesListCommentsReply parses an HTTP response from a IssuesListCommentsWithResponse call

func (IssuesListCommentsReply) ContentType

func (r IssuesListCommentsReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuesListCommentsReply) GetBody

func (r IssuesListCommentsReply) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuesListCommentsReply) GetJSON200

func (r IssuesListCommentsReply) GetJSON200() *[]IssueComment

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssuesListCommentsReply) Status

func (r IssuesListCommentsReply) Status() string

Status returns HTTPResponse.Status

func (IssuesListCommentsReply) StatusCode

func (r IssuesListCommentsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IssuesListForRepoParams

type IssuesListForRepoParams struct {
	// State Indicates the state of the issues to return.
	State *IssuesListForRepoParamsState `form:"state,omitempty" json:"state,omitempty"`

	// Sort What to sort results by.
	Sort *IssuesListForRepoParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

IssuesListForRepoParams defines parameters for IssuesListForRepo.

type IssuesListForRepoParamsSort

type IssuesListForRepoParamsSort string

IssuesListForRepoParamsSort defines parameters for IssuesListForRepo.

const (
	IssuesListForRepoParamsSortComments IssuesListForRepoParamsSort = "comments"
	IssuesListForRepoParamsSortCreated  IssuesListForRepoParamsSort = "created"
	IssuesListForRepoParamsSortUpdated  IssuesListForRepoParamsSort = "updated"
)

Defines values for IssuesListForRepoParamsSort.

func (IssuesListForRepoParamsSort) Valid

Valid indicates whether the value is a known member of the IssuesListForRepoParamsSort enum.

type IssuesListForRepoParamsState

type IssuesListForRepoParamsState string

IssuesListForRepoParamsState defines parameters for IssuesListForRepo.

const (
	IssuesListForRepoParamsStateAll    IssuesListForRepoParamsState = "all"
	IssuesListForRepoParamsStateClosed IssuesListForRepoParamsState = "closed"
	IssuesListForRepoParamsStateOpen   IssuesListForRepoParamsState = "open"
)

Defines values for IssuesListForRepoParamsState.

func (IssuesListForRepoParamsState) Valid

Valid indicates whether the value is a known member of the IssuesListForRepoParamsState enum.

type IssuesListForRepoReply

type IssuesListForRepoReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Issue
}

func ParseIssuesListForRepoReply

func ParseIssuesListForRepoReply(rsp *http.Response) (*IssuesListForRepoReply, error)

ParseIssuesListForRepoReply parses an HTTP response from a IssuesListForRepoWithResponse call

func (IssuesListForRepoReply) ContentType

func (r IssuesListForRepoReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuesListForRepoReply) GetBody

func (r IssuesListForRepoReply) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuesListForRepoReply) GetJSON200

func (r IssuesListForRepoReply) GetJSON200() *[]Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssuesListForRepoReply) Status

func (r IssuesListForRepoReply) Status() string

Status returns HTTPResponse.Status

func (IssuesListForRepoReply) StatusCode

func (r IssuesListForRepoReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence

type IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence string

IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence defines model for IssuesUpdate200JSONResponseBody.Suggestions.Assignees.Confidence.

const (
	IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidenceHigh   IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence = "high"
	IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidenceLow    IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence = "low"
	IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidenceMedium IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence = "medium"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence.

func (IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence enum.

type IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason

type IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason string

IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason defines model for IssuesUpdate200JSONResponseBody.Suggestions.Assignees.IgnoredReason.

const (
	IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReasonAlreadyApplied     IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason = "already_applied"
	IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReasonIssueAlreadyClosed IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason = "issue_already_closed"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason.

func (IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason enum.

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence string

IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence defines model for IssuesUpdate200JSONResponseBody.Suggestions.IssueFieldValues.Confidence.

const (
	IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidenceHigh   IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence = "high"
	IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidenceLow    IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence = "low"
	IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidenceMedium IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence = "medium"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence.

func (IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence enum.

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason string

IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason defines model for IssuesUpdate200JSONResponseBody.Suggestions.IssueFieldValues.IgnoredReason.

const (
	IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReasonAlreadyApplied     IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason = "already_applied"
	IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReasonIssueAlreadyClosed IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason = "issue_already_closed"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason.

func (IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason enum.

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0 = string

IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0 defines model for IssuesUpdate200JSONResponseBody.Suggestions.IssueFieldValues.Value.0.

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1 = float32

IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1 defines model for IssuesUpdate200JSONResponseBody.Suggestions.IssueFieldValues.Value.1.

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2

type IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2 = []string

IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2 defines model for IssuesUpdate200JSONResponseBody.Suggestions.IssueFieldValues.Value.2.

type IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence

type IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence string

IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence defines model for IssuesUpdate200JSONResponseBody.Suggestions.Labels.Confidence.

const (
	IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidenceHigh   IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence = "high"
	IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidenceLow    IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence = "low"
	IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidenceMedium IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence = "medium"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence.

func (IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence enum.

type IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason

type IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason string

IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason defines model for IssuesUpdate200JSONResponseBody.Suggestions.Labels.IgnoredReason.

const (
	IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReasonAlreadyApplied     IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason = "already_applied"
	IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReasonIssueAlreadyClosed IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason = "issue_already_closed"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason.

func (IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason enum.

type IssuesUpdate200JSONResponseBodySuggestionsStateConfidence

type IssuesUpdate200JSONResponseBodySuggestionsStateConfidence string

IssuesUpdate200JSONResponseBodySuggestionsStateConfidence defines model for IssuesUpdate200JSONResponseBody.Suggestions.State.Confidence.

const (
	IssuesUpdate200JSONResponseBodySuggestionsStateConfidenceHigh   IssuesUpdate200JSONResponseBodySuggestionsStateConfidence = "high"
	IssuesUpdate200JSONResponseBodySuggestionsStateConfidenceLow    IssuesUpdate200JSONResponseBodySuggestionsStateConfidence = "low"
	IssuesUpdate200JSONResponseBodySuggestionsStateConfidenceMedium IssuesUpdate200JSONResponseBodySuggestionsStateConfidence = "medium"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsStateConfidence.

func (IssuesUpdate200JSONResponseBodySuggestionsStateConfidence) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsStateConfidence enum.

type IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason

type IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason string

IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason defines model for IssuesUpdate200JSONResponseBody.Suggestions.State.IgnoredReason.

const (
	IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReasonAlreadyApplied     IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason = "already_applied"
	IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReasonIssueAlreadyClosed IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason = "issue_already_closed"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason.

func (IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason enum.

type IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence

type IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence string

IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence defines model for IssuesUpdate200JSONResponseBody.Suggestions.Type.Confidence.

const (
	IssuesUpdate200JSONResponseBodySuggestionsTypeConfidenceHigh   IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence = "high"
	IssuesUpdate200JSONResponseBodySuggestionsTypeConfidenceLow    IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence = "low"
	IssuesUpdate200JSONResponseBodySuggestionsTypeConfidenceMedium IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence = "medium"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence.

func (IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence enum.

type IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason

type IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason string

IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason defines model for IssuesUpdate200JSONResponseBody.Suggestions.Type.IgnoredReason.

const (
	IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReasonAlreadyApplied     IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason = "already_applied"
	IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReasonIssueAlreadyClosed IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason = "issue_already_closed"
)

Defines values for IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason.

func (IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason) Valid

Valid indicates whether the value is a known member of the IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason enum.

type IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value

type IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value struct {
	// contains filtered or unexported fields
}

IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value defines model for IssuesUpdate200JSONResponseBody.Suggestions.IssueFieldValues.Value.

func (IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) AsIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0

AsIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0 returns the union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value as a IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0

func (IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) AsIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1

AsIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1 returns the union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value as a IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1

func (IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) AsIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2

AsIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2 returns the union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value as a IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2

func (*IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) FromIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0

FromIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0 overwrites any union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value as the provided IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0

func (*IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) FromIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1

FromIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1 overwrites any union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value as the provided IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1

func (*IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) FromIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2

FromIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2 overwrites any union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value as the provided IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2

func (IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) MarshalJSON

func (*IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) MergeIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0

MergeIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0 performs a merge with any union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value, using the provided IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue0

func (*IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) MergeIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1

MergeIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1 performs a merge with any union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value, using the provided IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue1

func (*IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) MergeIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2

MergeIssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2 performs a merge with any union data inside the IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value, using the provided IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesValue2

func (*IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value) UnmarshalJSON

type IssuesUpdateJSONBody

type IssuesUpdateJSONBody = any

IssuesUpdateJSONBody defines body for IssuesUpdate for application/json ContentType.

type IssuesUpdateJSONRequestBody

type IssuesUpdateJSONRequestBody = IssuesUpdateJSONBody

IssuesUpdateJSONRequestBody defines body for IssuesUpdate for application/json ContentType.

type IssuesUpdateReply

type IssuesUpdateReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		// Body Contents of the issue
		Body    string `json:"body,omitempty"`
		HTMLURL string `json:"html_url"`

		// Number Number uniquely identifying the issue within its repository
		Number      int `json:"number"`
		PullRequest struct {
			DiffURL  string `json:"diff_url"`
			HTMLURL  string `json:"html_url"`
			MergedAt string `json:"merged_at,omitempty"`
			PatchURL string `json:"patch_url"`
			URL      string `json:"url"`
		} `json:"pull_request,omitempty"`

		// Suggestions Pending suggestions for each suggestible field (`type`,
		// `issue_field_values`, `labels`, `assignees`, `state`) the
		// request touched. Omitted for fields not in the request or
		// with no pending or ignored suggestions. Items tagged
		// `ignored` are echoes of the current request's inputs that
		// were not persisted as pending suggestions.
		Suggestions struct {
			Assignees []struct {
				Confidence    IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence    `json:"confidence,omitempty"`
				Ignored       bool                                                             `json:"ignored,omitempty"`
				IgnoredReason IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason `json:"ignored_reason,omitempty"`
				Login         string                                                           `json:"login,omitempty"`
				Rationale     string                                                           `json:"rationale,omitempty"`
				Suggest       bool                                                             `json:"suggest,omitempty"`
			} `json:"assignees,omitempty"`
			IssueFieldValues []struct {
				Confidence    IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence    `json:"confidence,omitempty"`
				FieldID       int                                                                     `json:"field_id,omitempty"`
				Ignored       bool                                                                    `json:"ignored,omitempty"`
				IgnoredReason IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason `json:"ignored_reason,omitempty"`
				Rationale     string                                                                  `json:"rationale,omitempty"`
				Suggest       bool                                                                    `json:"suggest,omitempty"`
				Value         IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value      `json:"value,omitempty"`
			} `json:"issue_field_values,omitempty"`
			Labels []struct {
				Confidence    IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence    `json:"confidence,omitempty"`
				Ignored       bool                                                          `json:"ignored,omitempty"`
				IgnoredReason IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason `json:"ignored_reason,omitempty"`
				Name          string                                                        `json:"name,omitempty"`
				Rationale     string                                                        `json:"rationale,omitempty"`
				Suggest       bool                                                          `json:"suggest,omitempty"`
			} `json:"labels,omitempty"`
			State []struct {
				Confidence       IssuesUpdate200JSONResponseBodySuggestionsStateConfidence    `json:"confidence,omitempty"`
				DuplicateIssueID int                                                          `json:"duplicate_issue_id,omitempty"`
				Ignored          bool                                                         `json:"ignored,omitempty"`
				IgnoredReason    IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason `json:"ignored_reason,omitempty"`
				Rationale        string                                                       `json:"rationale,omitempty"`
				StateReason      string                                                       `json:"state_reason,omitempty"`
				Suggest          bool                                                         `json:"suggest,omitempty"`
				Value            string                                                       `json:"value,omitempty"`
			} `json:"state,omitempty"`
			Type []struct {
				Confidence    IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence    `json:"confidence,omitempty"`
				Ignored       bool                                                        `json:"ignored,omitempty"`
				IgnoredReason IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason `json:"ignored_reason,omitempty"`
				Rationale     string                                                      `json:"rationale,omitempty"`
				Suggest       bool                                                        `json:"suggest,omitempty"`
				Value         string                                                      `json:"value,omitempty"`
			} `json:"type,omitempty"`
		} `json:"suggestions,omitempty"`

		// Title Title of the issue
		Title string `json:"title"`

		// User A GitHub user.
		User NullableSimpleUser `json:"user"`
	}
}

func ParseIssuesUpdateReply

func ParseIssuesUpdateReply(rsp *http.Response) (*IssuesUpdateReply, error)

ParseIssuesUpdateReply parses an HTTP response from a IssuesUpdateWithResponse call

func (IssuesUpdateReply) ContentType

func (r IssuesUpdateReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (IssuesUpdateReply) GetBody

func (r IssuesUpdateReply) GetBody() []byte

GetBody returns the raw response body bytes

func (IssuesUpdateReply) GetJSON200

func (r IssuesUpdateReply) GetJSON200() *struct {
	// Body Contents of the issue
	Body    string `json:"body,omitempty"`
	HTMLURL string `json:"html_url"`

	// Number Number uniquely identifying the issue within its repository
	Number      int `json:"number"`
	PullRequest struct {
		DiffURL  string `json:"diff_url"`
		HTMLURL  string `json:"html_url"`
		MergedAt string `json:"merged_at,omitempty"`
		PatchURL string `json:"patch_url"`
		URL      string `json:"url"`
	} `json:"pull_request,omitempty"`

	// Suggestions Pending suggestions for each suggestible field (`type`,
	// `issue_field_values`, `labels`, `assignees`, `state`) the
	// request touched. Omitted for fields not in the request or
	// with no pending or ignored suggestions. Items tagged
	// `ignored` are echoes of the current request's inputs that
	// were not persisted as pending suggestions.
	Suggestions struct {
		Assignees []struct {
			Confidence    IssuesUpdate200JSONResponseBodySuggestionsAssigneesConfidence    `json:"confidence,omitempty"`
			Ignored       bool                                                             `json:"ignored,omitempty"`
			IgnoredReason IssuesUpdate200JSONResponseBodySuggestionsAssigneesIgnoredReason `json:"ignored_reason,omitempty"`
			Login         string                                                           `json:"login,omitempty"`
			Rationale     string                                                           `json:"rationale,omitempty"`
			Suggest       bool                                                             `json:"suggest,omitempty"`
		} `json:"assignees,omitempty"`
		IssueFieldValues []struct {
			Confidence    IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesConfidence    `json:"confidence,omitempty"`
			FieldID       int                                                                     `json:"field_id,omitempty"`
			Ignored       bool                                                                    `json:"ignored,omitempty"`
			IgnoredReason IssuesUpdate200JSONResponseBodySuggestionsIssueFieldValuesIgnoredReason `json:"ignored_reason,omitempty"`
			Rationale     string                                                                  `json:"rationale,omitempty"`
			Suggest       bool                                                                    `json:"suggest,omitempty"`
			Value         IssuesUpdate200JSONResponseBody_Suggestions_IssueFieldValues_Value      `json:"value,omitempty"`
		} `json:"issue_field_values,omitempty"`
		Labels []struct {
			Confidence    IssuesUpdate200JSONResponseBodySuggestionsLabelsConfidence    `json:"confidence,omitempty"`
			Ignored       bool                                                          `json:"ignored,omitempty"`
			IgnoredReason IssuesUpdate200JSONResponseBodySuggestionsLabelsIgnoredReason `json:"ignored_reason,omitempty"`
			Name          string                                                        `json:"name,omitempty"`
			Rationale     string                                                        `json:"rationale,omitempty"`
			Suggest       bool                                                          `json:"suggest,omitempty"`
		} `json:"labels,omitempty"`
		State []struct {
			Confidence       IssuesUpdate200JSONResponseBodySuggestionsStateConfidence    `json:"confidence,omitempty"`
			DuplicateIssueID int                                                          `json:"duplicate_issue_id,omitempty"`
			Ignored          bool                                                         `json:"ignored,omitempty"`
			IgnoredReason    IssuesUpdate200JSONResponseBodySuggestionsStateIgnoredReason `json:"ignored_reason,omitempty"`
			Rationale        string                                                       `json:"rationale,omitempty"`
			StateReason      string                                                       `json:"state_reason,omitempty"`
			Suggest          bool                                                         `json:"suggest,omitempty"`
			Value            string                                                       `json:"value,omitempty"`
		} `json:"state,omitempty"`
		Type []struct {
			Confidence    IssuesUpdate200JSONResponseBodySuggestionsTypeConfidence    `json:"confidence,omitempty"`
			Ignored       bool                                                        `json:"ignored,omitempty"`
			IgnoredReason IssuesUpdate200JSONResponseBodySuggestionsTypeIgnoredReason `json:"ignored_reason,omitempty"`
			Rationale     string                                                      `json:"rationale,omitempty"`
			Suggest       bool                                                        `json:"suggest,omitempty"`
			Value         string                                                      `json:"value,omitempty"`
		} `json:"type,omitempty"`
	} `json:"suggestions,omitempty"`

	// Title Title of the issue
	Title string `json:"title"`

	// User A GitHub user.
	User NullableSimpleUser `json:"user"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (IssuesUpdateReply) Status

func (r IssuesUpdateReply) Status() string

Status returns HTTPResponse.Status

func (IssuesUpdateReply) StatusCode

func (r IssuesUpdateReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Job

type Job struct {
	// Steps Steps in this job.
	Steps []struct {
		// CompletedAt The time that the job finished, in ISO 8601 format.
		CompletedAt string `json:"completed_at,omitempty"`

		// Conclusion The outcome of the job.
		Conclusion string `json:"conclusion"`

		// Name The name of the job.
		Name   string `json:"name"`
		Number int    `json:"number"`

		// StartedAt The time that the step started, in ISO 8601 format.
		StartedAt string `json:"started_at,omitempty"`

		// Status The phase of the lifecycle that the job is currently in.
		Status JobStepsStatus `json:"status"`
	} `json:"steps,omitempty"`
}

Job Information of a job execution in a workflow run

type JobStepsStatus

type JobStepsStatus string

JobStepsStatus The phase of the lifecycle that the job is currently in.

const (
	JobStepsStatusCompleted  JobStepsStatus = "completed"
	JobStepsStatusInProgress JobStepsStatus = "in_progress"
	JobStepsStatusQueued     JobStepsStatus = "queued"
)

Defines values for JobStepsStatus.

func (JobStepsStatus) Valid

func (e JobStepsStatus) Valid() bool

Valid indicates whether the value is a known member of the JobStepsStatus enum.

type NullableGitUser

type NullableGitUser struct {
	Date string `json:"date,omitempty"`
	Name string `json:"name,omitempty"`
}

NullableGitUser Metaproperties for Git author/committer information.

type NullableSimpleUser

type NullableSimpleUser struct {
	Login string `json:"login"`
}

NullableSimpleUser A GitHub user.

type PendingDeployment

type PendingDeployment struct {
	Environment struct {
		HTMLURL string `json:"html_url,omitempty"`

		// ID The id of the environment.
		ID int `json:"id,omitempty"`

		// Name The name of the environment.
		Name   string `json:"name,omitempty"`
		NodeID string `json:"node_id,omitempty"`
		URL    string `json:"url,omitempty"`
	} `json:"environment"`
}

PendingDeployment Details of a deployment that is waiting for protection rules to pass

type PublicUser

type PublicUser struct {
	AvatarURL       string `json:"avatar_url"`
	Bio             string `json:"bio"`
	Blog            string `json:"blog"`
	Company         string `json:"company"`
	CreatedAt       string `json:"created_at"`
	Followers       int    `json:"followers"`
	Following       int    `json:"following"`
	Hireable        bool   `json:"hireable"`
	HTMLURL         string `json:"html_url"`
	Location        string `json:"location"`
	Login           string `json:"login"`
	Name            string `json:"name"`
	PublicGists     int    `json:"public_gists"`
	PublicRepos     int    `json:"public_repos"`
	TwitterUsername string `json:"twitter_username,omitempty"`
}

PublicUser Public User

type PullRequest

type PullRequest struct {
	ChangedFiles int `json:"changed_files"`
}

PullRequest Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.

type PullRequestMergeResult

type PullRequestMergeResult struct {
	Merged  bool   `json:"merged"`
	Message string `json:"message"`
	Sha     string `json:"sha"`
}

PullRequestMergeResult Pull Request Merge Result

type PullRequestSimple

type PullRequestSimple struct {
	Base struct {
		Label string `json:"label"`
		Ref   string `json:"ref"`

		// Repo A repository on GitHub.
		Repo Repository `json:"repo"`
		Sha  string     `json:"sha"`

		// User A GitHub user.
		User NullableSimpleUser `json:"user"`
	} `json:"base"`
	CreatedAt string `json:"created_at"`

	// Draft Indicates whether or not the pull request is a draft.
	Draft bool `json:"draft,omitempty"`
	Head  struct {
		Label string `json:"label"`
		Ref   string `json:"ref"`

		// Repo A repository on GitHub.
		Repo Repository `json:"repo"`
		Sha  string     `json:"sha"`

		// User A GitHub user.
		User NullableSimpleUser `json:"user"`
	} `json:"head"`
	HTMLURL string `json:"html_url"`
	Labels  []struct {
		// ArchivedBy The user who archived the label, or `null` if it has not been archived.
		ArchivedBy  SimpleUser `json:"archived_by"`
		Color       string     `json:"color"`
		Default     bool       `json:"default"`
		Description string     `json:"description"`
		ID          int        `json:"id"`
		Name        string     `json:"name"`
		NodeID      string     `json:"node_id"`
		URL         string     `json:"url"`
	} `json:"labels"`
	MergedAt  string `json:"merged_at"`
	Number    int    `json:"number"`
	Title     string `json:"title"`
	UpdatedAt string `json:"updated_at"`

	// User A GitHub user.
	User NullableSimpleUser `json:"user"`
}

PullRequestSimple Pull Request Simple

type PullsGetReply

type PullsGetReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PullRequest
}

func ParsePullsGetReply

func ParsePullsGetReply(rsp *http.Response) (*PullsGetReply, error)

ParsePullsGetReply parses an HTTP response from a PullsGetWithResponse call

func (PullsGetReply) ContentType

func (r PullsGetReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PullsGetReply) GetBody

func (r PullsGetReply) GetBody() []byte

GetBody returns the raw response body bytes

func (PullsGetReply) GetJSON200

func (r PullsGetReply) GetJSON200() *PullRequest

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PullsGetReply) Status

func (r PullsGetReply) Status() string

Status returns HTTPResponse.Status

func (PullsGetReply) StatusCode

func (r PullsGetReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PullsListFilesParams

type PullsListFilesParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

PullsListFilesParams defines parameters for PullsListFiles.

type PullsListFilesReply

type PullsListFilesReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]DiffEntry
}

func ParsePullsListFilesReply

func ParsePullsListFilesReply(rsp *http.Response) (*PullsListFilesReply, error)

ParsePullsListFilesReply parses an HTTP response from a PullsListFilesWithResponse call

func (PullsListFilesReply) ContentType

func (r PullsListFilesReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PullsListFilesReply) GetBody

func (r PullsListFilesReply) GetBody() []byte

GetBody returns the raw response body bytes

func (PullsListFilesReply) GetJSON200

func (r PullsListFilesReply) GetJSON200() *[]DiffEntry

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PullsListFilesReply) Status

func (r PullsListFilesReply) Status() string

Status returns HTTPResponse.Status

func (PullsListFilesReply) StatusCode

func (r PullsListFilesReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PullsListParams

type PullsListParams struct {
	// State Either `open`, `closed`, or `all` to filter by state.
	State *PullsListParamsState `form:"state,omitempty" json:"state,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

PullsListParams defines parameters for PullsList.

type PullsListParamsState

type PullsListParamsState string

PullsListParamsState defines parameters for PullsList.

const (
	PullsListParamsStateAll    PullsListParamsState = "all"
	PullsListParamsStateClosed PullsListParamsState = "closed"
	PullsListParamsStateOpen   PullsListParamsState = "open"
)

Defines values for PullsListParamsState.

func (PullsListParamsState) Valid

func (e PullsListParamsState) Valid() bool

Valid indicates whether the value is a known member of the PullsListParamsState enum.

type PullsListReply

type PullsListReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]PullRequestSimple
}

func ParsePullsListReply

func ParsePullsListReply(rsp *http.Response) (*PullsListReply, error)

ParsePullsListReply parses an HTTP response from a PullsListWithResponse call

func (PullsListReply) ContentType

func (r PullsListReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PullsListReply) GetBody

func (r PullsListReply) GetBody() []byte

GetBody returns the raw response body bytes

func (PullsListReply) GetJSON200

func (r PullsListReply) GetJSON200() *[]PullRequestSimple

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PullsListReply) Status

func (r PullsListReply) Status() string

Status returns HTTPResponse.Status

func (PullsListReply) StatusCode

func (r PullsListReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PullsMergeJSONBody

type PullsMergeJSONBody struct {
	// CommitMessage Extra detail to append to automatic commit message.
	CommitMessage string `json:"commit_message,omitempty"`

	// CommitTitle Title for the automatic commit message.
	CommitTitle string `json:"commit_title,omitempty"`

	// MergeMethod The merge method to use.
	MergeMethod PullsMergeJSONBodyMergeMethod `json:"merge_method,omitempty"`

	// Sha SHA that pull request head must match to allow merge.
	Sha string `json:"sha,omitempty"`
}

PullsMergeJSONBody defines body for PullsMerge for application/json ContentType.

type PullsMergeJSONBodyMergeMethod

type PullsMergeJSONBodyMergeMethod string

PullsMergeJSONBodyMergeMethod defines model for PullsMergeJSONBody.MergeMethod.

const (
	PullsMergeJSONBodyMergeMethodMerge  PullsMergeJSONBodyMergeMethod = "merge"
	PullsMergeJSONBodyMergeMethodRebase PullsMergeJSONBodyMergeMethod = "rebase"
	PullsMergeJSONBodyMergeMethodSquash PullsMergeJSONBodyMergeMethod = "squash"
)

Defines values for PullsMergeJSONBodyMergeMethod.

func (PullsMergeJSONBodyMergeMethod) Valid

Valid indicates whether the value is a known member of the PullsMergeJSONBodyMergeMethod enum.

type PullsMergeJSONRequestBody

type PullsMergeJSONRequestBody PullsMergeJSONBody

PullsMergeJSONRequestBody defines body for PullsMerge for application/json ContentType.

type PullsMergeReply

type PullsMergeReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PullRequestMergeResult
}

func ParsePullsMergeReply

func ParsePullsMergeReply(rsp *http.Response) (*PullsMergeReply, error)

ParsePullsMergeReply parses an HTTP response from a PullsMergeWithResponse call

func (PullsMergeReply) ContentType

func (r PullsMergeReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PullsMergeReply) GetBody

func (r PullsMergeReply) GetBody() []byte

GetBody returns the raw response body bytes

func (PullsMergeReply) GetJSON200

func (r PullsMergeReply) GetJSON200() *PullRequestMergeResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PullsMergeReply) Status

func (r PullsMergeReply) Status() string

Status returns HTTPResponse.Status

func (PullsMergeReply) StatusCode

func (r PullsMergeReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RateLimit

type RateLimit struct {
	Limit     int `json:"limit"`
	Remaining int `json:"remaining"`
	Reset     int `json:"reset"`
	Used      int `json:"used"`
}

RateLimit defines model for rate-limit.

type RateLimitGetReply

type RateLimitGetReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RateLimitOverview
}

func ParseRateLimitGetReply

func ParseRateLimitGetReply(rsp *http.Response) (*RateLimitGetReply, error)

ParseRateLimitGetReply parses an HTTP response from a RateLimitGetWithResponse call

func (RateLimitGetReply) ContentType

func (r RateLimitGetReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RateLimitGetReply) GetBody

func (r RateLimitGetReply) GetBody() []byte

GetBody returns the raw response body bytes

func (RateLimitGetReply) GetJSON200

func (r RateLimitGetReply) GetJSON200() *RateLimitOverview

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RateLimitGetReply) Status

func (r RateLimitGetReply) Status() string

Status returns HTTPResponse.Status

func (RateLimitGetReply) StatusCode

func (r RateLimitGetReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RateLimitOverview

type RateLimitOverview struct {
	Resources struct {
		ActionsRunnerRegistration RateLimit `json:"actions_runner_registration,omitempty"`
		CodeScanningAutofix       RateLimit `json:"code_scanning_autofix,omitempty"`
		CodeSearch                RateLimit `json:"code_search,omitempty"`
		CopilotUsageRecords       RateLimit `json:"copilot_usage_records,omitempty"`
		Core                      RateLimit `json:"core"`
		DependencySbom            RateLimit `json:"dependency_sbom,omitempty"`
		DependencySnapshots       RateLimit `json:"dependency_snapshots,omitempty"`
		Graphql                   RateLimit `json:"graphql,omitempty"`
		IntegrationManifest       RateLimit `json:"integration_manifest,omitempty"`
		Scim                      RateLimit `json:"scim,omitempty"`
		Search                    RateLimit `json:"search"`
		SourceImport              RateLimit `json:"source_import,omitempty"`
	} `json:"resources"`
}

RateLimitOverview Rate Limit Overview

type Release

type Release struct {
	HTMLURL     string `json:"html_url"`
	PublishedAt string `json:"published_at"`

	// TagName The name of the tag.
	TagName string `json:"tag_name"`
}

Release A release.

type ReposCheckVulnerabilityAlertsReply

type ReposCheckVulnerabilityAlertsReply struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseReposCheckVulnerabilityAlertsReply

func ParseReposCheckVulnerabilityAlertsReply(rsp *http.Response) (*ReposCheckVulnerabilityAlertsReply, error)

ParseReposCheckVulnerabilityAlertsReply parses an HTTP response from a ReposCheckVulnerabilityAlertsWithResponse call

func (ReposCheckVulnerabilityAlertsReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposCheckVulnerabilityAlertsReply) GetBody

GetBody returns the raw response body bytes

func (ReposCheckVulnerabilityAlertsReply) Status

Status returns HTTPResponse.Status

func (ReposCheckVulnerabilityAlertsReply) StatusCode

func (r ReposCheckVulnerabilityAlertsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposGetAllEnvironmentsReply

type ReposGetAllEnvironmentsReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Environments []Environment `json:"environments,omitempty"`

		// TotalCount The number of environments in this repository
		TotalCount int `json:"total_count,omitempty"`
	}
}

func ParseReposGetAllEnvironmentsReply

func ParseReposGetAllEnvironmentsReply(rsp *http.Response) (*ReposGetAllEnvironmentsReply, error)

ParseReposGetAllEnvironmentsReply parses an HTTP response from a ReposGetAllEnvironmentsWithResponse call

func (ReposGetAllEnvironmentsReply) ContentType

func (r ReposGetAllEnvironmentsReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposGetAllEnvironmentsReply) GetBody

func (r ReposGetAllEnvironmentsReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposGetAllEnvironmentsReply) GetJSON200

func (r ReposGetAllEnvironmentsReply) GetJSON200() *struct {
	Environments []Environment `json:"environments,omitempty"`

	// TotalCount The number of environments in this repository
	TotalCount int `json:"total_count,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposGetAllEnvironmentsReply) Status

Status returns HTTPResponse.Status

func (ReposGetAllEnvironmentsReply) StatusCode

func (r ReposGetAllEnvironmentsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposGetBranchRulesReply

type ReposGetBranchRulesReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]RepositoryRuleDetailed
}

func ParseReposGetBranchRulesReply

func ParseReposGetBranchRulesReply(rsp *http.Response) (*ReposGetBranchRulesReply, error)

ParseReposGetBranchRulesReply parses an HTTP response from a ReposGetBranchRulesWithResponse call

func (ReposGetBranchRulesReply) ContentType

func (r ReposGetBranchRulesReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposGetBranchRulesReply) GetBody

func (r ReposGetBranchRulesReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposGetBranchRulesReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposGetBranchRulesReply) Status

func (r ReposGetBranchRulesReply) Status() string

Status returns HTTPResponse.Status

func (ReposGetBranchRulesReply) StatusCode

func (r ReposGetBranchRulesReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposGetCommitReply

type ReposGetCommitReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Commit
}

func ParseReposGetCommitReply

func ParseReposGetCommitReply(rsp *http.Response) (*ReposGetCommitReply, error)

ParseReposGetCommitReply parses an HTTP response from a ReposGetCommitWithResponse call

func (ReposGetCommitReply) ContentType

func (r ReposGetCommitReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposGetCommitReply) GetBody

func (r ReposGetCommitReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposGetCommitReply) GetJSON200

func (r ReposGetCommitReply) GetJSON200() *Commit

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposGetCommitReply) Status

func (r ReposGetCommitReply) Status() string

Status returns HTTPResponse.Status

func (ReposGetCommitReply) StatusCode

func (r ReposGetCommitReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposGetContentParams

type ReposGetContentParams struct {
	// Ref The name of the commit/branch/tag. Default: the repository’s default branch.
	Ref *string `form:"ref,omitempty" json:"ref,omitempty"`
}

ReposGetContentParams defines parameters for ReposGetContent.

type ReposGetContentReply

type ReposGetContentReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ContentFile
}

func ParseReposGetContentReply

func ParseReposGetContentReply(rsp *http.Response) (*ReposGetContentReply, error)

ParseReposGetContentReply parses an HTTP response from a ReposGetContentWithResponse call

func (ReposGetContentReply) ContentType

func (r ReposGetContentReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposGetContentReply) GetBody

func (r ReposGetContentReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposGetContentReply) GetJSON200

func (r ReposGetContentReply) GetJSON200() *ContentFile

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposGetContentReply) Status

func (r ReposGetContentReply) Status() string

Status returns HTTPResponse.Status

func (ReposGetContentReply) StatusCode

func (r ReposGetContentReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposGetLatestReleaseReply

type ReposGetLatestReleaseReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Release
}

func ParseReposGetLatestReleaseReply

func ParseReposGetLatestReleaseReply(rsp *http.Response) (*ReposGetLatestReleaseReply, error)

ParseReposGetLatestReleaseReply parses an HTTP response from a ReposGetLatestReleaseWithResponse call

func (ReposGetLatestReleaseReply) ContentType

func (r ReposGetLatestReleaseReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposGetLatestReleaseReply) GetBody

func (r ReposGetLatestReleaseReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposGetLatestReleaseReply) GetJSON200

func (r ReposGetLatestReleaseReply) GetJSON200() *Release

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposGetLatestReleaseReply) Status

Status returns HTTPResponse.Status

func (ReposGetLatestReleaseReply) StatusCode

func (r ReposGetLatestReleaseReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposGetReply

type ReposGetReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FullRepository
}

func ParseReposGetReply

func ParseReposGetReply(rsp *http.Response) (*ReposGetReply, error)

ParseReposGetReply parses an HTTP response from a ReposGetWithResponse call

func (ReposGetReply) ContentType

func (r ReposGetReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposGetReply) GetBody

func (r ReposGetReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposGetReply) GetJSON200

func (r ReposGetReply) GetJSON200() *FullRepository

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposGetReply) Status

func (r ReposGetReply) Status() string

Status returns HTTPResponse.Status

func (ReposGetReply) StatusCode

func (r ReposGetReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposListCollaboratorsParams

type ReposListCollaboratorsParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ReposListCollaboratorsParams defines parameters for ReposListCollaborators.

type ReposListCollaboratorsReply

type ReposListCollaboratorsReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Collaborator
}

func ParseReposListCollaboratorsReply

func ParseReposListCollaboratorsReply(rsp *http.Response) (*ReposListCollaboratorsReply, error)

ParseReposListCollaboratorsReply parses an HTTP response from a ReposListCollaboratorsWithResponse call

func (ReposListCollaboratorsReply) ContentType

func (r ReposListCollaboratorsReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposListCollaboratorsReply) GetBody

func (r ReposListCollaboratorsReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposListCollaboratorsReply) GetJSON200

func (r ReposListCollaboratorsReply) GetJSON200() *[]Collaborator

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposListCollaboratorsReply) Status

Status returns HTTPResponse.Status

func (ReposListCollaboratorsReply) StatusCode

func (r ReposListCollaboratorsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposListCommitsParams

type ReposListCommitsParams struct {
	// Sha SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`).
	Sha *string `form:"sha,omitempty" json:"sha,omitempty"`

	// Path Only commits containing this file path will be returned.
	Path *string `form:"path,omitempty" json:"path,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ReposListCommitsParams defines parameters for ReposListCommits.

type ReposListCommitsReply

type ReposListCommitsReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Commit
}

func ParseReposListCommitsReply

func ParseReposListCommitsReply(rsp *http.Response) (*ReposListCommitsReply, error)

ParseReposListCommitsReply parses an HTTP response from a ReposListCommitsWithResponse call

func (ReposListCommitsReply) ContentType

func (r ReposListCommitsReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposListCommitsReply) GetBody

func (r ReposListCommitsReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposListCommitsReply) GetJSON200

func (r ReposListCommitsReply) GetJSON200() *[]Commit

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposListCommitsReply) Status

func (r ReposListCommitsReply) Status() string

Status returns HTTPResponse.Status

func (ReposListCommitsReply) StatusCode

func (r ReposListCommitsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposListDeployKeysParams

type ReposListDeployKeysParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ReposListDeployKeysParams defines parameters for ReposListDeployKeys.

type ReposListDeployKeysReply

type ReposListDeployKeysReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]DeployKey
}

func ParseReposListDeployKeysReply

func ParseReposListDeployKeysReply(rsp *http.Response) (*ReposListDeployKeysReply, error)

ParseReposListDeployKeysReply parses an HTTP response from a ReposListDeployKeysWithResponse call

func (ReposListDeployKeysReply) ContentType

func (r ReposListDeployKeysReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposListDeployKeysReply) GetBody

func (r ReposListDeployKeysReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposListDeployKeysReply) GetJSON200

func (r ReposListDeployKeysReply) GetJSON200() *[]DeployKey

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposListDeployKeysReply) Status

func (r ReposListDeployKeysReply) Status() string

Status returns HTTPResponse.Status

func (ReposListDeployKeysReply) StatusCode

func (r ReposListDeployKeysReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposListDeploymentStatusesParams

type ReposListDeploymentStatusesParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ReposListDeploymentStatusesParams defines parameters for ReposListDeploymentStatuses.

type ReposListDeploymentStatusesReply

type ReposListDeploymentStatusesReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]DeploymentStatus
}

func ParseReposListDeploymentStatusesReply

func ParseReposListDeploymentStatusesReply(rsp *http.Response) (*ReposListDeploymentStatusesReply, error)

ParseReposListDeploymentStatusesReply parses an HTTP response from a ReposListDeploymentStatusesWithResponse call

func (ReposListDeploymentStatusesReply) ContentType

func (r ReposListDeploymentStatusesReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposListDeploymentStatusesReply) GetBody

func (r ReposListDeploymentStatusesReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposListDeploymentStatusesReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposListDeploymentStatusesReply) Status

Status returns HTTPResponse.Status

func (ReposListDeploymentStatusesReply) StatusCode

func (r ReposListDeploymentStatusesReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposListDeploymentsParams

type ReposListDeploymentsParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ReposListDeploymentsParams defines parameters for ReposListDeployments.

type ReposListDeploymentsReply

type ReposListDeploymentsReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Deployment
}

func ParseReposListDeploymentsReply

func ParseReposListDeploymentsReply(rsp *http.Response) (*ReposListDeploymentsReply, error)

ParseReposListDeploymentsReply parses an HTTP response from a ReposListDeploymentsWithResponse call

func (ReposListDeploymentsReply) ContentType

func (r ReposListDeploymentsReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposListDeploymentsReply) GetBody

func (r ReposListDeploymentsReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposListDeploymentsReply) GetJSON200

func (r ReposListDeploymentsReply) GetJSON200() *[]Deployment

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposListDeploymentsReply) Status

func (r ReposListDeploymentsReply) Status() string

Status returns HTTPResponse.Status

func (ReposListDeploymentsReply) StatusCode

func (r ReposListDeploymentsReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReposListPullRequestsAssociatedWithCommitReply

type ReposListPullRequestsAssociatedWithCommitReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]PullRequestSimple
}

func ParseReposListPullRequestsAssociatedWithCommitReply

func ParseReposListPullRequestsAssociatedWithCommitReply(rsp *http.Response) (*ReposListPullRequestsAssociatedWithCommitReply, error)

ParseReposListPullRequestsAssociatedWithCommitReply parses an HTTP response from a ReposListPullRequestsAssociatedWithCommitWithResponse call

func (ReposListPullRequestsAssociatedWithCommitReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposListPullRequestsAssociatedWithCommitReply) GetBody

GetBody returns the raw response body bytes

func (ReposListPullRequestsAssociatedWithCommitReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposListPullRequestsAssociatedWithCommitReply) Status

Status returns HTTPResponse.Status

func (ReposListPullRequestsAssociatedWithCommitReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ReposListReleasesParams

type ReposListReleasesParams struct {
	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ReposListReleasesParams defines parameters for ReposListReleases.

type ReposListReleasesReply

type ReposListReleasesReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Release
}

func ParseReposListReleasesReply

func ParseReposListReleasesReply(rsp *http.Response) (*ReposListReleasesReply, error)

ParseReposListReleasesReply parses an HTTP response from a ReposListReleasesWithResponse call

func (ReposListReleasesReply) ContentType

func (r ReposListReleasesReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReposListReleasesReply) GetBody

func (r ReposListReleasesReply) GetBody() []byte

GetBody returns the raw response body bytes

func (ReposListReleasesReply) GetJSON200

func (r ReposListReleasesReply) GetJSON200() *[]Release

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReposListReleasesReply) Status

func (r ReposListReleasesReply) Status() string

Status returns HTTPResponse.Status

func (ReposListReleasesReply) StatusCode

func (r ReposListReleasesReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Repository

type Repository struct {
	Description     string `json:"description"`
	FullName        string `json:"full_name"`
	HTMLURL         string `json:"html_url"`
	Language        string `json:"language"`
	StargazersCount int    `json:"stargazers_count"`
}

Repository A repository on GitHub.

type RepositoryAdvisory

type RepositoryAdvisory struct {
	// CveID The Common Vulnerabilities and Exposures (CVE) ID.
	CveID string `json:"cve_id"`

	// GhsaID The GitHub Security Advisory ID.
	GhsaID string `json:"ghsa_id"`

	// HTMLURL The URL for the advisory.
	HTMLURL string `json:"html_url"`

	// PublishedAt The date and time of when the advisory was published, in ISO 8601 format.
	PublishedAt string `json:"published_at"`

	// Severity The severity of the advisory.
	Severity RepositoryAdvisorySeverity `json:"severity"`

	// Summary A short summary of the advisory.
	Summary string `json:"summary"`
}

RepositoryAdvisory A repository security advisory.

type RepositoryAdvisorySeverity

type RepositoryAdvisorySeverity string

RepositoryAdvisorySeverity The severity of the advisory.

const (
	RepositoryAdvisorySeverityCritical RepositoryAdvisorySeverity = "critical"
	RepositoryAdvisorySeverityHigh     RepositoryAdvisorySeverity = "high"
	RepositoryAdvisorySeverityLow      RepositoryAdvisorySeverity = "low"
	RepositoryAdvisorySeverityMedium   RepositoryAdvisorySeverity = "medium"
)

Defines values for RepositoryAdvisorySeverity.

func (RepositoryAdvisorySeverity) Valid

func (e RepositoryAdvisorySeverity) Valid() bool

Valid indicates whether the value is a known member of the RepositoryAdvisorySeverity enum.

type RepositoryRuleDetailed

type RepositoryRuleDetailed struct {
	// contains filtered or unexported fields
}

RepositoryRuleDetailed A repository rule with ruleset details.

func (RepositoryRuleDetailed) AsRepositoryRuleDetailed0

func (t RepositoryRuleDetailed) AsRepositoryRuleDetailed0() (RepositoryRuleDetailed0, error)

AsRepositoryRuleDetailed0 returns the union data inside the RepositoryRuleDetailed as a RepositoryRuleDetailed0

func (RepositoryRuleDetailed) AsRepositoryRuleDetailed1

func (t RepositoryRuleDetailed) AsRepositoryRuleDetailed1() (RepositoryRuleDetailed1, error)

AsRepositoryRuleDetailed1 returns the union data inside the RepositoryRuleDetailed as a RepositoryRuleDetailed1

func (*RepositoryRuleDetailed) FromRepositoryRuleDetailed0

func (t *RepositoryRuleDetailed) FromRepositoryRuleDetailed0(v RepositoryRuleDetailed0) error

FromRepositoryRuleDetailed0 overwrites any union data inside the RepositoryRuleDetailed as the provided RepositoryRuleDetailed0

func (*RepositoryRuleDetailed) FromRepositoryRuleDetailed1

func (t *RepositoryRuleDetailed) FromRepositoryRuleDetailed1(v RepositoryRuleDetailed1) error

FromRepositoryRuleDetailed1 overwrites any union data inside the RepositoryRuleDetailed as the provided RepositoryRuleDetailed1

func (RepositoryRuleDetailed) MarshalJSON

func (t RepositoryRuleDetailed) MarshalJSON() ([]byte, error)

func (*RepositoryRuleDetailed) MergeRepositoryRuleDetailed0

func (t *RepositoryRuleDetailed) MergeRepositoryRuleDetailed0(v RepositoryRuleDetailed0) error

MergeRepositoryRuleDetailed0 performs a merge with any union data inside the RepositoryRuleDetailed, using the provided RepositoryRuleDetailed0

func (*RepositoryRuleDetailed) MergeRepositoryRuleDetailed1

func (t *RepositoryRuleDetailed) MergeRepositoryRuleDetailed1(v RepositoryRuleDetailed1) error

MergeRepositoryRuleDetailed1 performs a merge with any union data inside the RepositoryRuleDetailed, using the provided RepositoryRuleDetailed1

func (*RepositoryRuleDetailed) UnmarshalJSON

func (t *RepositoryRuleDetailed) UnmarshalJSON(b []byte) error

type RepositoryRuleDetailed0

type RepositoryRuleDetailed0 struct {
	Parameters struct {
		// AllowedMergeMethods Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.
		AllowedMergeMethods []RepositoryRuleDetailed0ParametersAllowedMergeMethods `json:"allowed_merge_methods,omitempty"`

		// DismissStaleReviewsOnPush New, reviewable commits pushed will dismiss previous pull request review approvals.
		DismissStaleReviewsOnPush bool `json:"dismiss_stale_reviews_on_push"`

		// DismissalRestriction Specify people, teams, or apps allowed to dismiss pull request reviews.
		DismissalRestriction RepositoryRuleParamsDismissalRestriction `json:"dismissal_restriction,omitempty"`

		// RequireCodeOwnerReview Require an approving review in pull requests that modify files that have a designated code owner.
		RequireCodeOwnerReview bool `json:"require_code_owner_review"`

		// RequireLastPushApproval Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
		RequireLastPushApproval bool `json:"require_last_push_approval"`

		// RequiredApprovingReviewCount The number of approving reviews that are required before a pull request can be merged.
		RequiredApprovingReviewCount int `json:"required_approving_review_count"`

		// RequiredReviewThreadResolution All conversations on code must be resolved before a pull request can be merged.
		RequiredReviewThreadResolution bool `json:"required_review_thread_resolution"`

		// RequiredReviewers > [!NOTE]
		// > `required_reviewers` is in beta and subject to change.
		//
		// A collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.
		RequiredReviewers []RepositoryRuleParamsRequiredReviewerConfiguration `json:"required_reviewers,omitempty"`
	} `json:"parameters,omitempty"`

	// RulesetID The ID of the ruleset that includes this rule.
	RulesetID int `json:"ruleset_id,omitempty"`

	// RulesetSource The name of the source of the ruleset that includes this rule.
	RulesetSource string `json:"ruleset_source,omitempty"`

	// RulesetSourceType The type of source for the ruleset that includes this rule.
	RulesetSourceType RepositoryRuleDetailed0RulesetSourceType `json:"ruleset_source_type,omitempty"`
}

RepositoryRuleDetailed0 defines model for RepositoryRuleDetailed.0.

type RepositoryRuleDetailed0ParametersAllowedMergeMethods

type RepositoryRuleDetailed0ParametersAllowedMergeMethods string

RepositoryRuleDetailed0ParametersAllowedMergeMethods defines model for RepositoryRuleDetailed.0.Parameters.AllowedMergeMethods.

const (
	RepositoryRuleDetailed0ParametersAllowedMergeMethodsMerge  RepositoryRuleDetailed0ParametersAllowedMergeMethods = "merge"
	RepositoryRuleDetailed0ParametersAllowedMergeMethodsRebase RepositoryRuleDetailed0ParametersAllowedMergeMethods = "rebase"
	RepositoryRuleDetailed0ParametersAllowedMergeMethodsSquash RepositoryRuleDetailed0ParametersAllowedMergeMethods = "squash"
)

Defines values for RepositoryRuleDetailed0ParametersAllowedMergeMethods.

func (RepositoryRuleDetailed0ParametersAllowedMergeMethods) Valid

Valid indicates whether the value is a known member of the RepositoryRuleDetailed0ParametersAllowedMergeMethods enum.

type RepositoryRuleDetailed0RulesetSourceType

type RepositoryRuleDetailed0RulesetSourceType string

RepositoryRuleDetailed0RulesetSourceType The type of source for the ruleset that includes this rule.

const (
	RepositoryRuleDetailed0RulesetSourceTypeOrganization RepositoryRuleDetailed0RulesetSourceType = "Organization"
	RepositoryRuleDetailed0RulesetSourceTypeRepository   RepositoryRuleDetailed0RulesetSourceType = "Repository"
)

Defines values for RepositoryRuleDetailed0RulesetSourceType.

func (RepositoryRuleDetailed0RulesetSourceType) Valid

Valid indicates whether the value is a known member of the RepositoryRuleDetailed0RulesetSourceType enum.

type RepositoryRuleDetailed1

type RepositoryRuleDetailed1 struct {
	Parameters struct {
		// DoNotEnforceOnCreate Allow repositories and branches to be created if a check would otherwise prohibit it.
		DoNotEnforceOnCreate bool `json:"do_not_enforce_on_create,omitempty"`

		// RequiredStatusChecks Status checks that are required.
		RequiredStatusChecks []RepositoryRuleParamsStatusCheckConfiguration `json:"required_status_checks"`

		// StrictRequiredStatusChecksPolicy Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
		StrictRequiredStatusChecksPolicy bool `json:"strict_required_status_checks_policy"`
	} `json:"parameters,omitempty"`

	// RulesetID The ID of the ruleset that includes this rule.
	RulesetID int `json:"ruleset_id,omitempty"`

	// RulesetSource The name of the source of the ruleset that includes this rule.
	RulesetSource string `json:"ruleset_source,omitempty"`

	// RulesetSourceType The type of source for the ruleset that includes this rule.
	RulesetSourceType RepositoryRuleDetailed1RulesetSourceType `json:"ruleset_source_type,omitempty"`
}

RepositoryRuleDetailed1 defines model for RepositoryRuleDetailed.1.

type RepositoryRuleDetailed1RulesetSourceType

type RepositoryRuleDetailed1RulesetSourceType string

RepositoryRuleDetailed1RulesetSourceType The type of source for the ruleset that includes this rule.

const (
	RepositoryRuleDetailed1RulesetSourceTypeOrganization RepositoryRuleDetailed1RulesetSourceType = "Organization"
	RepositoryRuleDetailed1RulesetSourceTypeRepository   RepositoryRuleDetailed1RulesetSourceType = "Repository"
)

Defines values for RepositoryRuleDetailed1RulesetSourceType.

func (RepositoryRuleDetailed1RulesetSourceType) Valid

Valid indicates whether the value is a known member of the RepositoryRuleDetailed1RulesetSourceType enum.

type RepositoryRuleParamsActor

type RepositoryRuleParamsActor struct {
	// ID ID of the actor that can dismiss reviews.
	ID int `json:"id"`

	// Type The type of the actor
	Type RepositoryRuleParamsActorType `json:"type"`
}

RepositoryRuleParamsActor An actor allowed to dismiss pull request reviews

type RepositoryRuleParamsActorType

type RepositoryRuleParamsActorType string

RepositoryRuleParamsActorType The type of the actor

const (
	RepositoryRuleParamsActorTypeIntegrationInstallation RepositoryRuleParamsActorType = "IntegrationInstallation"
	RepositoryRuleParamsActorTypeRepositoryRole          RepositoryRuleParamsActorType = "RepositoryRole"
	RepositoryRuleParamsActorTypeTeam                    RepositoryRuleParamsActorType = "Team"
	RepositoryRuleParamsActorTypeUser                    RepositoryRuleParamsActorType = "User"
)

Defines values for RepositoryRuleParamsActorType.

func (RepositoryRuleParamsActorType) Valid

Valid indicates whether the value is a known member of the RepositoryRuleParamsActorType enum.

type RepositoryRuleParamsDismissalRestriction

type RepositoryRuleParamsDismissalRestriction struct {
	// AllowedActors Specify people, teams, or apps allowed to dismiss pull request reviews.
	AllowedActors []RepositoryRuleParamsActor `json:"allowed_actors,omitempty"`

	// Enabled Whether to restrict review dismissal to specific actors.
	Enabled bool `json:"enabled"`
}

RepositoryRuleParamsDismissalRestriction Specify people, teams, or apps allowed to dismiss pull request reviews.

type RepositoryRuleParamsRequiredReviewerConfiguration

type RepositoryRuleParamsRequiredReviewerConfiguration struct {
	// FilePatterns Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax.
	FilePatterns []string `json:"file_patterns"`

	// MinimumApprovals Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional.
	MinimumApprovals int `json:"minimum_approvals"`

	// Reviewer A required reviewing team
	Reviewer RepositoryRuleParamsReviewer `json:"reviewer"`
}

RepositoryRuleParamsRequiredReviewerConfiguration A reviewing team, and file patterns describing which files they must approve changes to.

type RepositoryRuleParamsReviewer

type RepositoryRuleParamsReviewer struct {
	// ID ID of the reviewer which must review changes to matching files.
	ID int `json:"id"`

	// Type The type of the reviewer
	Type RepositoryRuleParamsReviewerType `json:"type"`
}

RepositoryRuleParamsReviewer A required reviewing team

type RepositoryRuleParamsReviewerType

type RepositoryRuleParamsReviewerType string

RepositoryRuleParamsReviewerType The type of the reviewer

const (
	RepositoryRuleParamsReviewerTypeTeam RepositoryRuleParamsReviewerType = "Team"
)

Defines values for RepositoryRuleParamsReviewerType.

func (RepositoryRuleParamsReviewerType) Valid

Valid indicates whether the value is a known member of the RepositoryRuleParamsReviewerType enum.

type RepositoryRuleParamsStatusCheckConfiguration

type RepositoryRuleParamsStatusCheckConfiguration struct {
	// Context The status check context name that must be present on the commit.
	Context string `json:"context"`
}

RepositoryRuleParamsStatusCheckConfiguration Required status check

type RepositoryRulePullRequest

type RepositoryRulePullRequest struct {
	Parameters struct {
		// AllowedMergeMethods Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.
		AllowedMergeMethods []RepositoryRulePullRequestParametersAllowedMergeMethods `json:"allowed_merge_methods,omitempty"`

		// DismissStaleReviewsOnPush New, reviewable commits pushed will dismiss previous pull request review approvals.
		DismissStaleReviewsOnPush bool `json:"dismiss_stale_reviews_on_push"`

		// DismissalRestriction Specify people, teams, or apps allowed to dismiss pull request reviews.
		DismissalRestriction RepositoryRuleParamsDismissalRestriction `json:"dismissal_restriction,omitempty"`

		// RequireCodeOwnerReview Require an approving review in pull requests that modify files that have a designated code owner.
		RequireCodeOwnerReview bool `json:"require_code_owner_review"`

		// RequireLastPushApproval Whether the most recent reviewable push must be approved by someone other than the person who pushed it.
		RequireLastPushApproval bool `json:"require_last_push_approval"`

		// RequiredApprovingReviewCount The number of approving reviews that are required before a pull request can be merged.
		RequiredApprovingReviewCount int `json:"required_approving_review_count"`

		// RequiredReviewThreadResolution All conversations on code must be resolved before a pull request can be merged.
		RequiredReviewThreadResolution bool `json:"required_review_thread_resolution"`

		// RequiredReviewers > [!NOTE]
		// > `required_reviewers` is in beta and subject to change.
		//
		// A collection of reviewers and associated file patterns. Each reviewer has a list of file patterns which determine the files that reviewer is required to review.
		RequiredReviewers []RepositoryRuleParamsRequiredReviewerConfiguration `json:"required_reviewers,omitempty"`
	} `json:"parameters,omitempty"`
}

RepositoryRulePullRequest Require all commits be made to a non-target branch and submitted via a pull request before they can be merged.

type RepositoryRulePullRequestParametersAllowedMergeMethods

type RepositoryRulePullRequestParametersAllowedMergeMethods string

RepositoryRulePullRequestParametersAllowedMergeMethods defines model for RepositoryRulePullRequest.Parameters.AllowedMergeMethods.

const (
	RepositoryRulePullRequestParametersAllowedMergeMethodsMerge  RepositoryRulePullRequestParametersAllowedMergeMethods = "merge"
	RepositoryRulePullRequestParametersAllowedMergeMethodsRebase RepositoryRulePullRequestParametersAllowedMergeMethods = "rebase"
	RepositoryRulePullRequestParametersAllowedMergeMethodsSquash RepositoryRulePullRequestParametersAllowedMergeMethods = "squash"
)

Defines values for RepositoryRulePullRequestParametersAllowedMergeMethods.

func (RepositoryRulePullRequestParametersAllowedMergeMethods) Valid

Valid indicates whether the value is a known member of the RepositoryRulePullRequestParametersAllowedMergeMethods enum.

type RepositoryRuleRequiredStatusChecks

type RepositoryRuleRequiredStatusChecks struct {
	Parameters struct {
		// DoNotEnforceOnCreate Allow repositories and branches to be created if a check would otherwise prohibit it.
		DoNotEnforceOnCreate bool `json:"do_not_enforce_on_create,omitempty"`

		// RequiredStatusChecks Status checks that are required.
		RequiredStatusChecks []RepositoryRuleParamsStatusCheckConfiguration `json:"required_status_checks"`

		// StrictRequiredStatusChecksPolicy Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled.
		StrictRequiredStatusChecksPolicy bool `json:"strict_required_status_checks_policy"`
	} `json:"parameters,omitempty"`
}

RepositoryRuleRequiredStatusChecks Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.

type RepositoryRuleRulesetInfo

type RepositoryRuleRulesetInfo struct {
	// RulesetID The ID of the ruleset that includes this rule.
	RulesetID int `json:"ruleset_id,omitempty"`

	// RulesetSource The name of the source of the ruleset that includes this rule.
	RulesetSource string `json:"ruleset_source,omitempty"`

	// RulesetSourceType The type of source for the ruleset that includes this rule.
	RulesetSourceType RepositoryRuleRulesetInfoRulesetSourceType `json:"ruleset_source_type,omitempty"`
}

RepositoryRuleRulesetInfo User-defined metadata to store domain-specific information limited to 8 keys with scalar values.

type RepositoryRuleRulesetInfoRulesetSourceType

type RepositoryRuleRulesetInfoRulesetSourceType string

RepositoryRuleRulesetInfoRulesetSourceType The type of source for the ruleset that includes this rule.

const (
	RepositoryRuleRulesetInfoRulesetSourceTypeOrganization RepositoryRuleRulesetInfoRulesetSourceType = "Organization"
	RepositoryRuleRulesetInfoRulesetSourceTypeRepository   RepositoryRuleRulesetInfoRulesetSourceType = "Repository"
)

Defines values for RepositoryRuleRulesetInfoRulesetSourceType.

func (RepositoryRuleRulesetInfoRulesetSourceType) Valid

Valid indicates whether the value is a known member of the RepositoryRuleRulesetInfoRulesetSourceType enum.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Runner

type Runner struct {
	Busy   bool          `json:"busy"`
	Labels []RunnerLabel `json:"labels"`

	// Name The name of the runner.
	Name string `json:"name"`

	// Status The status of the runner.
	Status string `json:"status"`
}

Runner A self hosted runner

type RunnerLabel

type RunnerLabel struct {
	// Name Name of the label.
	Name string `json:"name"`
}

RunnerLabel A label for a self hosted runner

type SecretScanningAlert

type SecretScanningAlert = map[string]any

SecretScanningAlert defines model for secret-scanning-alert.

type SecretScanningListAlertsForRepoParams

type SecretScanningListAlertsForRepoParams struct {
	// State Set to `open` or `resolved` to only list secret scanning alerts in a specific state.
	State *SecretScanningListAlertsForRepoParamsState `form:"state,omitempty" json:"state,omitempty"`

	// PerPage The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

SecretScanningListAlertsForRepoParams defines parameters for SecretScanningListAlertsForRepo.

type SecretScanningListAlertsForRepoParamsState

type SecretScanningListAlertsForRepoParamsState string

SecretScanningListAlertsForRepoParamsState defines parameters for SecretScanningListAlertsForRepo.

const (
	SecretScanningListAlertsForRepoParamsStateOpen     SecretScanningListAlertsForRepoParamsState = "open"
	SecretScanningListAlertsForRepoParamsStateResolved SecretScanningListAlertsForRepoParamsState = "resolved"
)

Defines values for SecretScanningListAlertsForRepoParamsState.

func (SecretScanningListAlertsForRepoParamsState) Valid

Valid indicates whether the value is a known member of the SecretScanningListAlertsForRepoParamsState enum.

type SecretScanningListAlertsForRepoReply

type SecretScanningListAlertsForRepoReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]SecretScanningAlert
}

func ParseSecretScanningListAlertsForRepoReply

func ParseSecretScanningListAlertsForRepoReply(rsp *http.Response) (*SecretScanningListAlertsForRepoReply, error)

ParseSecretScanningListAlertsForRepoReply parses an HTTP response from a SecretScanningListAlertsForRepoWithResponse call

func (SecretScanningListAlertsForRepoReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SecretScanningListAlertsForRepoReply) GetBody

GetBody returns the raw response body bytes

func (SecretScanningListAlertsForRepoReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SecretScanningListAlertsForRepoReply) Status

Status returns HTTPResponse.Status

func (SecretScanningListAlertsForRepoReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SecurityAdvisoriesListRepositoryAdvisoriesParams

type SecurityAdvisoriesListRepositoryAdvisoriesParams struct {
	// State Filter by state of the repository advisories. Only advisories of this state will be returned.
	State *SecurityAdvisoriesListRepositoryAdvisoriesParamsState `form:"state,omitempty" json:"state,omitempty"`

	// Sort The property to sort the results by.
	Sort *SecurityAdvisoriesListRepositoryAdvisoriesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Direction The direction to sort the results by.
	Direction *SecurityAdvisoriesListRepositoryAdvisoriesParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`

	// PerPage The number of advisories to return per page. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

SecurityAdvisoriesListRepositoryAdvisoriesParams defines parameters for SecurityAdvisoriesListRepositoryAdvisories.

type SecurityAdvisoriesListRepositoryAdvisoriesParamsDirection

type SecurityAdvisoriesListRepositoryAdvisoriesParamsDirection string

SecurityAdvisoriesListRepositoryAdvisoriesParamsDirection defines parameters for SecurityAdvisoriesListRepositoryAdvisories.

Defines values for SecurityAdvisoriesListRepositoryAdvisoriesParamsDirection.

func (SecurityAdvisoriesListRepositoryAdvisoriesParamsDirection) Valid

Valid indicates whether the value is a known member of the SecurityAdvisoriesListRepositoryAdvisoriesParamsDirection enum.

type SecurityAdvisoriesListRepositoryAdvisoriesParamsSort

type SecurityAdvisoriesListRepositoryAdvisoriesParamsSort string

SecurityAdvisoriesListRepositoryAdvisoriesParamsSort defines parameters for SecurityAdvisoriesListRepositoryAdvisories.

const (
	SecurityAdvisoriesListRepositoryAdvisoriesParamsSortCreated   SecurityAdvisoriesListRepositoryAdvisoriesParamsSort = "created"
	SecurityAdvisoriesListRepositoryAdvisoriesParamsSortPublished SecurityAdvisoriesListRepositoryAdvisoriesParamsSort = "published"
	SecurityAdvisoriesListRepositoryAdvisoriesParamsSortUpdated   SecurityAdvisoriesListRepositoryAdvisoriesParamsSort = "updated"
)

Defines values for SecurityAdvisoriesListRepositoryAdvisoriesParamsSort.

func (SecurityAdvisoriesListRepositoryAdvisoriesParamsSort) Valid

Valid indicates whether the value is a known member of the SecurityAdvisoriesListRepositoryAdvisoriesParamsSort enum.

type SecurityAdvisoriesListRepositoryAdvisoriesParamsState

type SecurityAdvisoriesListRepositoryAdvisoriesParamsState string

SecurityAdvisoriesListRepositoryAdvisoriesParamsState defines parameters for SecurityAdvisoriesListRepositoryAdvisories.

const (
	SecurityAdvisoriesListRepositoryAdvisoriesParamsStateClosed    SecurityAdvisoriesListRepositoryAdvisoriesParamsState = "closed"
	SecurityAdvisoriesListRepositoryAdvisoriesParamsStateDraft     SecurityAdvisoriesListRepositoryAdvisoriesParamsState = "draft"
	SecurityAdvisoriesListRepositoryAdvisoriesParamsStatePublished SecurityAdvisoriesListRepositoryAdvisoriesParamsState = "published"
	SecurityAdvisoriesListRepositoryAdvisoriesParamsStateTriage    SecurityAdvisoriesListRepositoryAdvisoriesParamsState = "triage"
)

Defines values for SecurityAdvisoriesListRepositoryAdvisoriesParamsState.

func (SecurityAdvisoriesListRepositoryAdvisoriesParamsState) Valid

Valid indicates whether the value is a known member of the SecurityAdvisoriesListRepositoryAdvisoriesParamsState enum.

type SecurityAdvisoriesListRepositoryAdvisoriesReply

type SecurityAdvisoriesListRepositoryAdvisoriesReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]RepositoryAdvisory
}

func ParseSecurityAdvisoriesListRepositoryAdvisoriesReply

func ParseSecurityAdvisoriesListRepositoryAdvisoriesReply(rsp *http.Response) (*SecurityAdvisoriesListRepositoryAdvisoriesReply, error)

ParseSecurityAdvisoriesListRepositoryAdvisoriesReply parses an HTTP response from a SecurityAdvisoriesListRepositoryAdvisoriesWithResponse call

func (SecurityAdvisoriesListRepositoryAdvisoriesReply) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SecurityAdvisoriesListRepositoryAdvisoriesReply) GetBody

GetBody returns the raw response body bytes

func (SecurityAdvisoriesListRepositoryAdvisoriesReply) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SecurityAdvisoriesListRepositoryAdvisoriesReply) Status

Status returns HTTPResponse.Status

func (SecurityAdvisoriesListRepositoryAdvisoriesReply) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ShaPinningRequired

type ShaPinningRequired = bool

ShaPinningRequired Whether actions must be pinned to a full-length commit SHA.

type SimpleUser

type SimpleUser struct {
	Login string `json:"login"`
	Type  string `json:"type"`
}

SimpleUser A GitHub user.

type StarredRepository

type StarredRepository struct {
	// Repo A repository on GitHub.
	Repo      Repository `json:"repo"`
	StarredAt string     `json:"starred_at"`
}

StarredRepository Starred Repository

type Team

type Team struct {
	Name string `json:"name"`
}

Team Groups of organization members that gives permissions on specified repositories.

type UsersGetByUsernameReply

type UsersGetByUsernameReply struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PublicUser
}

func ParseUsersGetByUsernameReply

func ParseUsersGetByUsernameReply(rsp *http.Response) (*UsersGetByUsernameReply, error)

ParseUsersGetByUsernameReply parses an HTTP response from a UsersGetByUsernameWithResponse call

func (UsersGetByUsernameReply) ContentType

func (r UsersGetByUsernameReply) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UsersGetByUsernameReply) GetBody

func (r UsersGetByUsernameReply) GetBody() []byte

GetBody returns the raw response body bytes

func (UsersGetByUsernameReply) GetJSON200

func (r UsersGetByUsernameReply) GetJSON200() *PublicUser

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UsersGetByUsernameReply) Status

func (r UsersGetByUsernameReply) Status() string

Status returns HTTPResponse.Status

func (UsersGetByUsernameReply) StatusCode

func (r UsersGetByUsernameReply) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Verification

type Verification struct {
	Payload    string `json:"payload"`
	Reason     string `json:"reason"`
	Signature  string `json:"signature"`
	Verified   bool   `json:"verified"`
	VerifiedAt string `json:"verified_at"`
}

Verification defines model for verification.

type WaitTimer

type WaitTimer = int

WaitTimer The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).

type Workflow

type Workflow struct {
	ID    int           `json:"id"`
	Name  string        `json:"name"`
	State WorkflowState `json:"state"`
}

Workflow A GitHub Actions workflow

type WorkflowRun

type WorkflowRun struct {
	// CheckSuiteID The ID of the associated check suite.
	CheckSuiteID int    `json:"check_suite_id,omitempty"`
	Conclusion   string `json:"conclusion"`
	CreatedAt    string `json:"created_at"`
	Event        string `json:"event"`
	HeadBranch   string `json:"head_branch"`

	// HeadSha The SHA of the head commit that points to the version of the workflow being run.
	HeadSha string `json:"head_sha"`
	HTMLURL string `json:"html_url"`

	// ID The ID of the workflow run.
	ID int `json:"id"`

	// Name The name of the workflow run.
	Name      string `json:"name,omitempty"`
	Status    string `json:"status"`
	UpdatedAt string `json:"updated_at"`

	// WorkflowID The ID of the parent workflow.
	WorkflowID int `json:"workflow_id"`
}

WorkflowRun An invocation of a workflow

type WorkflowState

type WorkflowState string

WorkflowState defines model for Workflow.State.

const (
	WorkflowStateActive             WorkflowState = "active"
	WorkflowStateDeleted            WorkflowState = "deleted"
	WorkflowStateDisabledFork       WorkflowState = "disabled_fork"
	WorkflowStateDisabledInactivity WorkflowState = "disabled_inactivity"
	WorkflowStateDisabledManually   WorkflowState = "disabled_manually"
)

Defines values for WorkflowState.

func (WorkflowState) Valid

func (e WorkflowState) Valid() bool

Valid indicates whether the value is a known member of the WorkflowState enum.

Jump to

Keyboard shortcuts

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