Documentation
¶
Index ¶
- func ParseGetDirectionQueryParameterType(v string) (any, error)
- func ParseGetFilterQueryParameterType(v string) (any, error)
- func ParseGetSortQueryParameterType(v string) (any, error)
- func ParseGetStateQueryParameterType(v string) (any, error)
- func SerializeGetDirectionQueryParameterType(values []GetDirectionQueryParameterType) []string
- func SerializeGetFilterQueryParameterType(values []GetFilterQueryParameterType) []string
- func SerializeGetSortQueryParameterType(values []GetSortQueryParameterType) []string
- func SerializeGetStateQueryParameterType(values []GetStateQueryParameterType) []string
- type GetDirectionQueryParameterType
- type GetFilterQueryParameterType
- type GetSortQueryParameterType
- type GetStateQueryParameterType
- type IssuesRequestBuilder
- func (m *IssuesRequestBuilder) Get(ctx context.Context, ...) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Issueable, ...)
- func (m *IssuesRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *IssuesRequestBuilder) WithUrl(rawUrl string) *IssuesRequestBuilder
- type IssuesRequestBuilderGetQueryParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (i GetDirectionQueryParameterType) String() string
type GetFilterQueryParameterType ¶
type GetFilterQueryParameterType int
const ( ASSIGNED_GETFILTERQUERYPARAMETERTYPE GetFilterQueryParameterType = iota CREATED_GETFILTERQUERYPARAMETERTYPE MENTIONED_GETFILTERQUERYPARAMETERTYPE SUBSCRIBED_GETFILTERQUERYPARAMETERTYPE REPOS_GETFILTERQUERYPARAMETERTYPE ALL_GETFILTERQUERYPARAMETERTYPE )
func (GetFilterQueryParameterType) String ¶
func (i GetFilterQueryParameterType) String() 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 ¶
func (i GetStateQueryParameterType) String() string
type IssuesRequestBuilder ¶
type IssuesRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
IssuesRequestBuilder builds and executes requests for operations under \issues
func NewIssuesRequestBuilder ¶
func NewIssuesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *IssuesRequestBuilder
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 ¶
func (m *IssuesRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[IssuesRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Issueable, error)
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 ¶
func (m *IssuesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[IssuesRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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`.