issues

package
v0.0.7-GHES.3.12 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGetDirectionQueryParameterType

func ParseGetDirectionQueryParameterType(v string) (any, error)

func ParseGetFilterQueryParameterType

func ParseGetFilterQueryParameterType(v string) (any, error)

func ParseGetSortQueryParameterType

func ParseGetSortQueryParameterType(v string) (any, error)

func ParseGetStateQueryParameterType

func ParseGetStateQueryParameterType(v string) (any, error)

func SerializeGetDirectionQueryParameterType

func SerializeGetDirectionQueryParameterType(values []GetDirectionQueryParameterType) []string

func SerializeGetFilterQueryParameterType

func SerializeGetFilterQueryParameterType(values []GetFilterQueryParameterType) []string

func SerializeGetSortQueryParameterType

func SerializeGetSortQueryParameterType(values []GetSortQueryParameterType) []string

func SerializeGetStateQueryParameterType

func SerializeGetStateQueryParameterType(values []GetStateQueryParameterType) []string

Types

type GetDirectionQueryParameterType

type GetDirectionQueryParameterType int
const (
	ASC_GETDIRECTIONQUERYPARAMETERTYPE GetDirectionQueryParameterType = iota
	DESC_GETDIRECTIONQUERYPARAMETERTYPE
)

func (GetDirectionQueryParameterType) String

type GetFilterQueryParameterType

type GetFilterQueryParameterType int
const (
	ASSIGNED_GETFILTERQUERYPARAMETERTYPE GetFilterQueryParameterType = iota
	CREATED_GETFILTERQUERYPARAMETERTYPE
	MENTIONED_GETFILTERQUERYPARAMETERTYPE
	SUBSCRIBED_GETFILTERQUERYPARAMETERTYPE
	REPOS_GETFILTERQUERYPARAMETERTYPE
	ALL_GETFILTERQUERYPARAMETERTYPE
)

func (GetFilterQueryParameterType) String

type GetSortQueryParameterType

type GetSortQueryParameterType int
const (
	CREATED_GETSORTQUERYPARAMETERTYPE GetSortQueryParameterType = iota
	UPDATED_GETSORTQUERYPARAMETERTYPE
	COMMENTS_GETSORTQUERYPARAMETERTYPE
)

func (GetSortQueryParameterType) String

func (i GetSortQueryParameterType) String() string

type GetStateQueryParameterType

type GetStateQueryParameterType int
const (
	OPEN_GETSTATEQUERYPARAMETERTYPE GetStateQueryParameterType = iota
	CLOSED_GETSTATEQUERYPARAMETERTYPE
	ALL_GETSTATEQUERYPARAMETERTYPE
)

func (GetStateQueryParameterType) String

type IssuesRequestBuilder

IssuesRequestBuilder builds and executes requests for operations under \issues

func NewIssuesRequestBuilder

NewIssuesRequestBuilder instantiates a new IssuesRequestBuilder and sets the default values.

func NewIssuesRequestBuilderInternal

func NewIssuesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *IssuesRequestBuilder

NewIssuesRequestBuilderInternal instantiates a new IssuesRequestBuilder and sets the default values.

func (*IssuesRequestBuilder) Get

Get list issues assigned to the authenticated user across all visible repositories including owned repositories, memberrepositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are notnecessarily assigned to you.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-server@3.12/rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.12/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. returns a []Issueable when successful returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*IssuesRequestBuilder) ToGetRequestInformation

ToGetRequestInformation list issues assigned to the authenticated user across all visible repositories including owned repositories, memberrepositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are notnecessarily assigned to you.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-server@3.12/rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.12/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. returns a *RequestInformation when successful

func (*IssuesRequestBuilder) WithUrl

func (m *IssuesRequestBuilder) WithUrl(rawUrl string) *IssuesRequestBuilder

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. returns a *IssuesRequestBuilder when successful

type IssuesRequestBuilderGetQueryParameters

type IssuesRequestBuilderGetQueryParameters struct {
	Collab *bool `uriparametername:"collab"`
	// The direction to sort the results by.
	Direction *GetDirectionQueryParameterType `uriparametername:"direction"`
	// Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means issues created by you. `mentioned` means issues mentioning you. `subscribed` means issues you're subscribed to updates for. `all` or `repos` means all issues you can see, regardless of participation or creation.
	Filter *GetFilterQueryParameterType `uriparametername:"filter"`
	// A list of comma separated label names. Example: `bug,ui,@high`
	Labels *string `uriparametername:"labels"`
	Orgs   *bool   `uriparametername:"orgs"`
	Owned  *bool   `uriparametername:"owned"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.12/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.12/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	Pulls    *bool  `uriparametername:"pulls"`
	// Only show results that were last updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	Since *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time `uriparametername:"since"`
	// What to sort results by.
	Sort *GetSortQueryParameterType `uriparametername:"sort"`
	// Indicates the state of the issues to return.
	State *GetStateQueryParameterType `uriparametername:"state"`
}

IssuesRequestBuilderGetQueryParameters list issues assigned to the authenticated user across all visible repositories including owned repositories, memberrepositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are notnecessarily assigned to you.> [!NOTE]> GitHub's REST API considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/enterprise-server@3.12/rest/pulls/pulls#list-pull-requests)" endpoint.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-server@3.12/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`.

Jump to

Keyboard shortcuts

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