issues

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAssigneesReq

type AddAssigneesReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	RequestBody AddAssigneesReqBody
	// contains filtered or unexported fields
}

AddAssigneesReq is request data for Client.AddAssignees

https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*AddAssigneesReq) HTTPRequest

func (r *AddAssigneesReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddAssigneesReq) Rel

func (r *AddAssigneesReq) Rel(link string, resp *AddAssigneesResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type AddAssigneesReqBody

type AddAssigneesReqBody struct {

	/*
		Usernames of people to assign this issue to. _NOTE: Only users with push access
		can add assignees to an issue. Assignees are silently ignored otherwise._
	*/
	Assignees []string `json:"assignees,omitempty"`
}

AddAssigneesReqBody is a request body for issues/add-assignees

https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue

type AddAssigneesResponse

type AddAssigneesResponse struct {
	Data components.IssueSimple
	// contains filtered or unexported fields
}

AddAssigneesResponse is a response for AddAssignees

https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue

func AddAssignees

func AddAssignees(ctx context.Context, req *AddAssigneesReq, opt ...requests.Option) (*AddAssigneesResponse, error)

AddAssignees performs requests for "issues/add-assignees"

Add assignees to an issue.

POST /repos/{owner}/{repo}/issues/{issue_number}/assignees

https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue

func (*AddAssigneesResponse) HTTPResponse

func (r *AddAssigneesResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*AddAssigneesResponse) ReadResponse

func (r *AddAssigneesResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type AddLabelsReq

type AddLabelsReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	RequestBody AddLabelsReqBody
	// contains filtered or unexported fields
}

AddLabelsReq is request data for Client.AddLabels

https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*AddLabelsReq) HTTPRequest

func (r *AddLabelsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddLabelsReq) Rel

func (r *AddLabelsReq) Rel(link string, resp *AddLabelsResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type AddLabelsReqBody

type AddLabelsReqBody struct {

	/*
		The name of the label to add to the issue. Must contain at least one label.
		**Note:** Alternatively, you can pass a single label as a `string` or an `array`
		of labels directly, but GitHub recommends passing an object with the `labels`
		key.
	*/
	Labels []string `json:"labels"`
}

AddLabelsReqBody is a request body for issues/add-labels

https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue

type AddLabelsResponse

type AddLabelsResponse struct {
	Data []components.Label
	// contains filtered or unexported fields
}

AddLabelsResponse is a response for AddLabels

https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue

func AddLabels

func AddLabels(ctx context.Context, req *AddLabelsReq, opt ...requests.Option) (*AddLabelsResponse, error)

AddLabels performs requests for "issues/add-labels"

Add labels to an issue.

POST /repos/{owner}/{repo}/issues/{issue_number}/labels

https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue

func (*AddLabelsResponse) HTTPResponse

func (r *AddLabelsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*AddLabelsResponse) ReadResponse

func (r *AddLabelsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type CheckUserCanBeAssignedReq

type CheckUserCanBeAssignedReq struct {
	Owner string
	Repo  string

	// assignee parameter
	Assignee string
	// contains filtered or unexported fields
}

CheckUserCanBeAssignedReq is request data for Client.CheckUserCanBeAssigned

https://developer.github.com/v3/issues/assignees/#check-if-a-user-can-be-assigned

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CheckUserCanBeAssignedReq) HTTPRequest

func (r *CheckUserCanBeAssignedReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CheckUserCanBeAssignedReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CheckUserCanBeAssignedResponse

type CheckUserCanBeAssignedResponse struct {
	Data bool
	// contains filtered or unexported fields
}

CheckUserCanBeAssignedResponse is a response for CheckUserCanBeAssigned

https://developer.github.com/v3/issues/assignees/#check-if-a-user-can-be-assigned

func CheckUserCanBeAssigned

func CheckUserCanBeAssigned(ctx context.Context, req *CheckUserCanBeAssignedReq, opt ...requests.Option) (*CheckUserCanBeAssignedResponse, error)

CheckUserCanBeAssigned performs requests for "issues/check-user-can-be-assigned"

Check if a user can be assigned.

GET /repos/{owner}/{repo}/assignees/{assignee}

https://developer.github.com/v3/issues/assignees/#check-if-a-user-can-be-assigned

func (*CheckUserCanBeAssignedResponse) HTTPResponse

func (r *CheckUserCanBeAssignedResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CheckUserCanBeAssignedResponse) ReadResponse

func (r *CheckUserCanBeAssignedResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type Client

type Client []requests.Option

Client is a set of options to apply to requests

func NewClient

func NewClient(opt ...requests.Option) Client

NewClient returns a new Client

func (Client) AddAssignees

func (c Client) AddAssignees(ctx context.Context, req *AddAssigneesReq, opt ...requests.Option) (*AddAssigneesResponse, error)

AddAssignees performs requests for "issues/add-assignees"

Add assignees to an issue.

POST /repos/{owner}/{repo}/issues/{issue_number}/assignees

https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) AddLabels

func (c Client) AddLabels(ctx context.Context, req *AddLabelsReq, opt ...requests.Option) (*AddLabelsResponse, error)

AddLabels performs requests for "issues/add-labels"

Add labels to an issue.

POST /repos/{owner}/{repo}/issues/{issue_number}/labels

https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CheckUserCanBeAssigned

func (c Client) CheckUserCanBeAssigned(ctx context.Context, req *CheckUserCanBeAssignedReq, opt ...requests.Option) (*CheckUserCanBeAssignedResponse, error)

CheckUserCanBeAssigned performs requests for "issues/check-user-can-be-assigned"

Check if a user can be assigned.

GET /repos/{owner}/{repo}/assignees/{assignee}

https://developer.github.com/v3/issues/assignees/#check-if-a-user-can-be-assigned

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) Create

func (c Client) Create(ctx context.Context, req *CreateReq, opt ...requests.Option) (*CreateResponse, error)

Create performs requests for "issues/create"

Create an issue.

POST /repos/{owner}/{repo}/issues

https://developer.github.com/v3/issues/#create-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CreateComment

func (c Client) CreateComment(ctx context.Context, req *CreateCommentReq, opt ...requests.Option) (*CreateCommentResponse, error)

CreateComment performs requests for "issues/create-comment"

Create an issue comment.

POST /repos/{owner}/{repo}/issues/{issue_number}/comments

https://developer.github.com/v3/issues/comments/#create-an-issue-comment

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CreateLabel

func (c Client) CreateLabel(ctx context.Context, req *CreateLabelReq, opt ...requests.Option) (*CreateLabelResponse, error)

CreateLabel performs requests for "issues/create-label"

Create a label.

POST /repos/{owner}/{repo}/labels

https://developer.github.com/v3/issues/labels/#create-a-label

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) CreateMilestone

func (c Client) CreateMilestone(ctx context.Context, req *CreateMilestoneReq, opt ...requests.Option) (*CreateMilestoneResponse, error)

CreateMilestone performs requests for "issues/create-milestone"

Create a milestone.

POST /repos/{owner}/{repo}/milestones

https://developer.github.com/v3/issues/milestones/#create-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) DeleteComment

func (c Client) DeleteComment(ctx context.Context, req *DeleteCommentReq, opt ...requests.Option) (*DeleteCommentResponse, error)

DeleteComment performs requests for "issues/delete-comment"

Delete an issue comment.

DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}

https://developer.github.com/v3/issues/comments/#delete-an-issue-comment

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) DeleteLabel

func (c Client) DeleteLabel(ctx context.Context, req *DeleteLabelReq, opt ...requests.Option) (*DeleteLabelResponse, error)

DeleteLabel performs requests for "issues/delete-label"

Delete a label.

DELETE /repos/{owner}/{repo}/labels/{name}

https://developer.github.com/v3/issues/labels/#delete-a-label

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) DeleteMilestone

func (c Client) DeleteMilestone(ctx context.Context, req *DeleteMilestoneReq, opt ...requests.Option) (*DeleteMilestoneResponse, error)

DeleteMilestone performs requests for "issues/delete-milestone"

Delete a milestone.

DELETE /repos/{owner}/{repo}/milestones/{milestone_number}

https://developer.github.com/v3/issues/milestones/#delete-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) Get

func (c Client) Get(ctx context.Context, req *GetReq, opt ...requests.Option) (*GetResponse, error)

Get performs requests for "issues/get"

Get an issue.

GET /repos/{owner}/{repo}/issues/{issue_number}

https://developer.github.com/v3/issues/#get-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetComment

func (c Client) GetComment(ctx context.Context, req *GetCommentReq, opt ...requests.Option) (*GetCommentResponse, error)

GetComment performs requests for "issues/get-comment"

Get an issue comment.

GET /repos/{owner}/{repo}/issues/comments/{comment_id}

https://developer.github.com/v3/issues/comments/#get-an-issue-comment

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetEvent

func (c Client) GetEvent(ctx context.Context, req *GetEventReq, opt ...requests.Option) (*GetEventResponse, error)

GetEvent performs requests for "issues/get-event"

Get an issue event.

GET /repos/{owner}/{repo}/issues/events/{event_id}

https://developer.github.com/v3/issues/events/#get-an-issue-event

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetLabel

func (c Client) GetLabel(ctx context.Context, req *GetLabelReq, opt ...requests.Option) (*GetLabelResponse, error)

GetLabel performs requests for "issues/get-label"

Get a label.

GET /repos/{owner}/{repo}/labels/{name}

https://developer.github.com/v3/issues/labels/#get-a-label

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetMilestone

func (c Client) GetMilestone(ctx context.Context, req *GetMilestoneReq, opt ...requests.Option) (*GetMilestoneResponse, error)

GetMilestone performs requests for "issues/get-milestone"

Get a milestone.

GET /repos/{owner}/{repo}/milestones/{milestone_number}

https://developer.github.com/v3/issues/milestones/#get-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) List

func (c Client) List(ctx context.Context, req *ListReq, opt ...requests.Option) (*ListResponse, error)

List performs requests for "issues/list"

List issues assigned to the authenticated user.

GET /issues

https://developer.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListAssignees

func (c Client) ListAssignees(ctx context.Context, req *ListAssigneesReq, opt ...requests.Option) (*ListAssigneesResponse, error)

ListAssignees performs requests for "issues/list-assignees"

List assignees.

GET /repos/{owner}/{repo}/assignees

https://developer.github.com/v3/issues/assignees/#list-assignees

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListComments

func (c Client) ListComments(ctx context.Context, req *ListCommentsReq, opt ...requests.Option) (*ListCommentsResponse, error)

ListComments performs requests for "issues/list-comments"

List issue comments.

GET /repos/{owner}/{repo}/issues/{issue_number}/comments

https://developer.github.com/v3/issues/comments/#list-issue-comments

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListCommentsForRepo

func (c Client) ListCommentsForRepo(ctx context.Context, req *ListCommentsForRepoReq, opt ...requests.Option) (*ListCommentsForRepoResponse, error)

ListCommentsForRepo performs requests for "issues/list-comments-for-repo"

List issue comments for a repository.

GET /repos/{owner}/{repo}/issues/comments

https://developer.github.com/v3/issues/comments/#list-issue-comments-for-a-repository

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListEvents

func (c Client) ListEvents(ctx context.Context, req *ListEventsReq, opt ...requests.Option) (*ListEventsResponse, error)

ListEvents performs requests for "issues/list-events"

List issue events.

GET /repos/{owner}/{repo}/issues/{issue_number}/events

https://developer.github.com/v3/issues/events/#list-issue-events

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListEventsForRepo

func (c Client) ListEventsForRepo(ctx context.Context, req *ListEventsForRepoReq, opt ...requests.Option) (*ListEventsForRepoResponse, error)

ListEventsForRepo performs requests for "issues/list-events-for-repo"

List issue events for a repository.

GET /repos/{owner}/{repo}/issues/events

https://developer.github.com/v3/issues/events/#list-issue-events-for-a-repository

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListEventsForTimeline

func (c Client) ListEventsForTimeline(ctx context.Context, req *ListEventsForTimelineReq, opt ...requests.Option) (*ListEventsForTimelineResponse, error)

ListEventsForTimeline performs requests for "issues/list-events-for-timeline"

List timeline events for an issue.

GET /repos/{owner}/{repo}/issues/{issue_number}/timeline

https://developer.github.com/v3/issues/timeline/#list-timeline-events-for-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListForAuthenticatedUser

func (c Client) ListForAuthenticatedUser(ctx context.Context, req *ListForAuthenticatedUserReq, opt ...requests.Option) (*ListForAuthenticatedUserResponse, error)

ListForAuthenticatedUser performs requests for "issues/list-for-authenticated-user"

List user account issues assigned to the authenticated user.

GET /user/issues

https://developer.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListForOrg

func (c Client) ListForOrg(ctx context.Context, req *ListForOrgReq, opt ...requests.Option) (*ListForOrgResponse, error)

ListForOrg performs requests for "issues/list-for-org"

List organization issues assigned to the authenticated user.

GET /orgs/{org}/issues

https://developer.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListForRepo

func (c Client) ListForRepo(ctx context.Context, req *ListForRepoReq, opt ...requests.Option) (*ListForRepoResponse, error)

ListForRepo performs requests for "issues/list-for-repo"

List repository issues.

GET /repos/{owner}/{repo}/issues

https://developer.github.com/v3/issues/#list-repository-issues

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListLabelsForMilestone

func (c Client) ListLabelsForMilestone(ctx context.Context, req *ListLabelsForMilestoneReq, opt ...requests.Option) (*ListLabelsForMilestoneResponse, error)

ListLabelsForMilestone performs requests for "issues/list-labels-for-milestone"

List labels for issues in a milestone.

GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels

https://developer.github.com/v3/issues/labels/#list-labels-for-issues-in-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListLabelsForRepo

func (c Client) ListLabelsForRepo(ctx context.Context, req *ListLabelsForRepoReq, opt ...requests.Option) (*ListLabelsForRepoResponse, error)

ListLabelsForRepo performs requests for "issues/list-labels-for-repo"

List labels for a repository.

GET /repos/{owner}/{repo}/labels

https://developer.github.com/v3/issues/labels/#list-labels-for-a-repository

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListLabelsOnIssue

func (c Client) ListLabelsOnIssue(ctx context.Context, req *ListLabelsOnIssueReq, opt ...requests.Option) (*ListLabelsOnIssueResponse, error)

ListLabelsOnIssue performs requests for "issues/list-labels-on-issue"

List labels for an issue.

GET /repos/{owner}/{repo}/issues/{issue_number}/labels

https://developer.github.com/v3/issues/labels/#list-labels-for-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListMilestones

func (c Client) ListMilestones(ctx context.Context, req *ListMilestonesReq, opt ...requests.Option) (*ListMilestonesResponse, error)

ListMilestones performs requests for "issues/list-milestones"

List milestones.

GET /repos/{owner}/{repo}/milestones

https://developer.github.com/v3/issues/milestones/#list-milestones

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) Lock

func (c Client) Lock(ctx context.Context, req *LockReq, opt ...requests.Option) (*LockResponse, error)

Lock performs requests for "issues/lock"

Lock an issue.

PUT /repos/{owner}/{repo}/issues/{issue_number}/lock

https://developer.github.com/v3/issues/#lock-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) RemoveAllLabels

func (c Client) RemoveAllLabels(ctx context.Context, req *RemoveAllLabelsReq, opt ...requests.Option) (*RemoveAllLabelsResponse, error)

RemoveAllLabels performs requests for "issues/remove-all-labels"

Remove all labels from an issue.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels

https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) RemoveAssignees

func (c Client) RemoveAssignees(ctx context.Context, req *RemoveAssigneesReq, opt ...requests.Option) (*RemoveAssigneesResponse, error)

RemoveAssignees performs requests for "issues/remove-assignees"

Remove assignees from an issue.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees

https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) RemoveLabel

func (c Client) RemoveLabel(ctx context.Context, req *RemoveLabelReq, opt ...requests.Option) (*RemoveLabelResponse, error)

RemoveLabel performs requests for "issues/remove-label"

Remove a label from an issue.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}

https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) SetLabels

func (c Client) SetLabels(ctx context.Context, req *SetLabelsReq, opt ...requests.Option) (*SetLabelsResponse, error)

SetLabels performs requests for "issues/set-labels"

Set labels for an issue.

PUT /repos/{owner}/{repo}/issues/{issue_number}/labels

https://developer.github.com/v3/issues/labels/#set-labels-for-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) Unlock

func (c Client) Unlock(ctx context.Context, req *UnlockReq, opt ...requests.Option) (*UnlockResponse, error)

Unlock performs requests for "issues/unlock"

Unlock an issue.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock

https://developer.github.com/v3/issues/#unlock-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) Update

func (c Client) Update(ctx context.Context, req *UpdateReq, opt ...requests.Option) (*UpdateResponse, error)

Update performs requests for "issues/update"

Update an issue.

PATCH /repos/{owner}/{repo}/issues/{issue_number}

https://developer.github.com/v3/issues/#update-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) UpdateComment

func (c Client) UpdateComment(ctx context.Context, req *UpdateCommentReq, opt ...requests.Option) (*UpdateCommentResponse, error)

UpdateComment performs requests for "issues/update-comment"

Update an issue comment.

PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}

https://developer.github.com/v3/issues/comments/#update-an-issue-comment

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) UpdateLabel

func (c Client) UpdateLabel(ctx context.Context, req *UpdateLabelReq, opt ...requests.Option) (*UpdateLabelResponse, error)

UpdateLabel performs requests for "issues/update-label"

Update a label.

PATCH /repos/{owner}/{repo}/labels/{name}

https://developer.github.com/v3/issues/labels/#update-a-label

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) UpdateMilestone

func (c Client) UpdateMilestone(ctx context.Context, req *UpdateMilestoneReq, opt ...requests.Option) (*UpdateMilestoneResponse, error)

UpdateMilestone performs requests for "issues/update-milestone"

Update a milestone.

PATCH /repos/{owner}/{repo}/milestones/{milestone_number}

https://developer.github.com/v3/issues/milestones/#update-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

type CreateCommentReq

type CreateCommentReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	RequestBody CreateCommentReqBody
	// contains filtered or unexported fields
}

CreateCommentReq is request data for Client.CreateComment

https://developer.github.com/v3/issues/comments/#create-an-issue-comment

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateCommentReq) HTTPRequest

func (r *CreateCommentReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateCommentReq) Rel

func (r *CreateCommentReq) Rel(link string, resp *CreateCommentResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateCommentReqBody

type CreateCommentReqBody struct {

	// The contents of the comment.
	Body *string `json:"body"`
}

CreateCommentReqBody is a request body for issues/create-comment

https://developer.github.com/v3/issues/comments/#create-an-issue-comment

type CreateCommentResponse

type CreateCommentResponse struct {
	Data components.IssueComment
	// contains filtered or unexported fields
}

CreateCommentResponse is a response for CreateComment

https://developer.github.com/v3/issues/comments/#create-an-issue-comment

func CreateComment

func CreateComment(ctx context.Context, req *CreateCommentReq, opt ...requests.Option) (*CreateCommentResponse, error)

CreateComment performs requests for "issues/create-comment"

Create an issue comment.

POST /repos/{owner}/{repo}/issues/{issue_number}/comments

https://developer.github.com/v3/issues/comments/#create-an-issue-comment

func (*CreateCommentResponse) HTTPResponse

func (r *CreateCommentResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CreateCommentResponse) ReadResponse

func (r *CreateCommentResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type CreateLabelReq

type CreateLabelReq struct {
	Owner       string
	Repo        string
	RequestBody CreateLabelReqBody
	// contains filtered or unexported fields
}

CreateLabelReq is request data for Client.CreateLabel

https://developer.github.com/v3/issues/labels/#create-a-label

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateLabelReq) HTTPRequest

func (r *CreateLabelReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateLabelReq) Rel

func (r *CreateLabelReq) Rel(link string, resp *CreateLabelResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateLabelReqBody

type CreateLabelReqBody struct {

	// The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.
	Color *string `json:"color,omitempty"`

	// A short description of the label.
	Description *string `json:"description,omitempty"`

	/*
		The name of the label. Emoji can be added to label names, using either native
		emoji or colon-style markup. For example, typing `:strawberry:` will render the
		emoji
		![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png
		":strawberry:"). For a full list of available emoji and codes, see
		[emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).
	*/
	Name *string `json:"name"`
}

CreateLabelReqBody is a request body for issues/create-label

https://developer.github.com/v3/issues/labels/#create-a-label

type CreateLabelResponse

type CreateLabelResponse struct {
	Data components.Label
	// contains filtered or unexported fields
}

CreateLabelResponse is a response for CreateLabel

https://developer.github.com/v3/issues/labels/#create-a-label

func CreateLabel

func CreateLabel(ctx context.Context, req *CreateLabelReq, opt ...requests.Option) (*CreateLabelResponse, error)

CreateLabel performs requests for "issues/create-label"

Create a label.

POST /repos/{owner}/{repo}/labels

https://developer.github.com/v3/issues/labels/#create-a-label

func (*CreateLabelResponse) HTTPResponse

func (r *CreateLabelResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CreateLabelResponse) ReadResponse

func (r *CreateLabelResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type CreateMilestoneReq

type CreateMilestoneReq struct {
	Owner       string
	Repo        string
	RequestBody CreateMilestoneReqBody
	// contains filtered or unexported fields
}

CreateMilestoneReq is request data for Client.CreateMilestone

https://developer.github.com/v3/issues/milestones/#create-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateMilestoneReq) HTTPRequest

func (r *CreateMilestoneReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateMilestoneReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateMilestoneReqBody

type CreateMilestoneReqBody struct {

	// A description of the milestone.
	Description *string `json:"description,omitempty"`

	/*
		The milestone due date. This is a timestamp in [ISO
		8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	*/
	DueOn *string `json:"due_on,omitempty"`

	// The state of the milestone. Either `open` or `closed`.
	State *string `json:"state,omitempty"`

	// The title of the milestone.
	Title *string `json:"title"`
}

CreateMilestoneReqBody is a request body for issues/create-milestone

https://developer.github.com/v3/issues/milestones/#create-a-milestone

type CreateMilestoneResponse

type CreateMilestoneResponse struct {
	Data components.Milestone
	// contains filtered or unexported fields
}

CreateMilestoneResponse is a response for CreateMilestone

https://developer.github.com/v3/issues/milestones/#create-a-milestone

func CreateMilestone

func CreateMilestone(ctx context.Context, req *CreateMilestoneReq, opt ...requests.Option) (*CreateMilestoneResponse, error)

CreateMilestone performs requests for "issues/create-milestone"

Create a milestone.

POST /repos/{owner}/{repo}/milestones

https://developer.github.com/v3/issues/milestones/#create-a-milestone

func (*CreateMilestoneResponse) HTTPResponse

func (r *CreateMilestoneResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CreateMilestoneResponse) ReadResponse

func (r *CreateMilestoneResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type CreateReq

type CreateReq struct {
	Owner       string
	Repo        string
	RequestBody CreateReqBody
	// contains filtered or unexported fields
}

CreateReq is request data for Client.Create

https://developer.github.com/v3/issues/#create-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CreateReq) HTTPRequest

func (r *CreateReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateReq) Rel

func (r *CreateReq) Rel(link string, resp *CreateResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CreateReqBody

type CreateReqBody struct {

	/*
		Login for the user that this issue should be assigned to. _NOTE: Only users with
		push access can set the assignee for new issues. The assignee is silently
		dropped otherwise. **This field is deprecated.**_
	*/
	Assignee *string `json:"assignee,omitempty"`

	/*
		Logins for Users to assign to this issue. _NOTE: Only users with push access can
		set assignees for new issues. Assignees are silently dropped otherwise._
	*/
	Assignees []string `json:"assignees,omitempty"`

	// The contents of the issue.
	Body *string `json:"body,omitempty"`

	/*
		Labels to associate with this issue. _NOTE: Only users with push access can set
		labels for new issues. Labels are silently dropped otherwise._
	*/
	Labels []string `json:"labels,omitempty"`

	/*
		The `number` of the milestone to associate this issue with. _NOTE: Only users
		with push access can set the milestone for new issues. The milestone is silently
		dropped otherwise._
	*/
	Milestone *int64 `json:"milestone,omitempty"`

	// The title of the issue.
	Title *string `json:"title"`
}

CreateReqBody is a request body for issues/create

https://developer.github.com/v3/issues/#create-an-issue

type CreateResponse

type CreateResponse struct {
	Data components.Issue
	// contains filtered or unexported fields
}

CreateResponse is a response for Create

https://developer.github.com/v3/issues/#create-an-issue

func Create

func Create(ctx context.Context, req *CreateReq, opt ...requests.Option) (*CreateResponse, error)

Create performs requests for "issues/create"

Create an issue.

POST /repos/{owner}/{repo}/issues

https://developer.github.com/v3/issues/#create-an-issue

func (*CreateResponse) HTTPResponse

func (r *CreateResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*CreateResponse) ReadResponse

func (r *CreateResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type DeleteCommentReq

type DeleteCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId int64
	// contains filtered or unexported fields
}

DeleteCommentReq is request data for Client.DeleteComment

https://developer.github.com/v3/issues/comments/#delete-an-issue-comment

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*DeleteCommentReq) HTTPRequest

func (r *DeleteCommentReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteCommentReq) Rel

func (r *DeleteCommentReq) Rel(link string, resp *DeleteCommentResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type DeleteCommentResponse

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

DeleteCommentResponse is a response for DeleteComment

https://developer.github.com/v3/issues/comments/#delete-an-issue-comment

func DeleteComment

func DeleteComment(ctx context.Context, req *DeleteCommentReq, opt ...requests.Option) (*DeleteCommentResponse, error)

DeleteComment performs requests for "issues/delete-comment"

Delete an issue comment.

DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}

https://developer.github.com/v3/issues/comments/#delete-an-issue-comment

func (*DeleteCommentResponse) HTTPResponse

func (r *DeleteCommentResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*DeleteCommentResponse) ReadResponse

func (r *DeleteCommentResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type DeleteLabelReq

type DeleteLabelReq struct {
	Owner string
	Repo  string

	// name parameter
	Name string
	// contains filtered or unexported fields
}

DeleteLabelReq is request data for Client.DeleteLabel

https://developer.github.com/v3/issues/labels/#delete-a-label

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*DeleteLabelReq) HTTPRequest

func (r *DeleteLabelReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteLabelReq) Rel

func (r *DeleteLabelReq) Rel(link string, resp *DeleteLabelResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type DeleteLabelResponse

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

DeleteLabelResponse is a response for DeleteLabel

https://developer.github.com/v3/issues/labels/#delete-a-label

func DeleteLabel

func DeleteLabel(ctx context.Context, req *DeleteLabelReq, opt ...requests.Option) (*DeleteLabelResponse, error)

DeleteLabel performs requests for "issues/delete-label"

Delete a label.

DELETE /repos/{owner}/{repo}/labels/{name}

https://developer.github.com/v3/issues/labels/#delete-a-label

func (*DeleteLabelResponse) HTTPResponse

func (r *DeleteLabelResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*DeleteLabelResponse) ReadResponse

func (r *DeleteLabelResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type DeleteMilestoneReq

type DeleteMilestoneReq struct {
	Owner string
	Repo  string

	// milestone_number parameter
	MilestoneNumber int64
	// contains filtered or unexported fields
}

DeleteMilestoneReq is request data for Client.DeleteMilestone

https://developer.github.com/v3/issues/milestones/#delete-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*DeleteMilestoneReq) HTTPRequest

func (r *DeleteMilestoneReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteMilestoneReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type DeleteMilestoneResponse

type DeleteMilestoneResponse struct {
	Data bool
	// contains filtered or unexported fields
}

DeleteMilestoneResponse is a response for DeleteMilestone

https://developer.github.com/v3/issues/milestones/#delete-a-milestone

func DeleteMilestone

func DeleteMilestone(ctx context.Context, req *DeleteMilestoneReq, opt ...requests.Option) (*DeleteMilestoneResponse, error)

DeleteMilestone performs requests for "issues/delete-milestone"

Delete a milestone.

DELETE /repos/{owner}/{repo}/milestones/{milestone_number}

https://developer.github.com/v3/issues/milestones/#delete-a-milestone

func (*DeleteMilestoneResponse) HTTPResponse

func (r *DeleteMilestoneResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*DeleteMilestoneResponse) ReadResponse

func (r *DeleteMilestoneResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetCommentReq

type GetCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId int64

	/*
		To access the API with your GitHub App, you must set this to true for your
		requests.
	*/
	MachineManPreview bool

	/*
		An additional `reactions` object in the issue comment payload is currently
		available for developers to preview. During the preview period, the APIs may
		change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for
		full details.

		To access the API you must set this to true.
	*/
	SquirrelGirlPreview bool
	// contains filtered or unexported fields
}

GetCommentReq is request data for Client.GetComment

https://developer.github.com/v3/issues/comments/#get-an-issue-comment

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetCommentReq) HTTPRequest

func (r *GetCommentReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetCommentReq) Rel

func (r *GetCommentReq) Rel(link string, resp *GetCommentResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetCommentResponse

type GetCommentResponse struct {
	Data components.IssueComment
	// contains filtered or unexported fields
}

GetCommentResponse is a response for GetComment

https://developer.github.com/v3/issues/comments/#get-an-issue-comment

func GetComment

func GetComment(ctx context.Context, req *GetCommentReq, opt ...requests.Option) (*GetCommentResponse, error)

GetComment performs requests for "issues/get-comment"

Get an issue comment.

GET /repos/{owner}/{repo}/issues/comments/{comment_id}

https://developer.github.com/v3/issues/comments/#get-an-issue-comment

func (*GetCommentResponse) HTTPResponse

func (r *GetCommentResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetCommentResponse) ReadResponse

func (r *GetCommentResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetEventReq

type GetEventReq struct {
	Owner string
	Repo  string

	// event_id parameter
	EventId int64

	/*
		Project card details are now shown in REST API v3 responses for project-related
		issue and timeline events. This feature is now available for developers to
		preview. For details, see the [blog
		post](https://developer.github.com/changes/2018-09-05-project-card-events).

		To receive the `project_card` attribute, project boards must be
		[enabled](https://help.github.com/articles/disabling-project-boards-in-a-repository)
		for a repository, and you must set this to true.
	*/
	StarfoxPreview bool

	/*
		To access the API with your GitHub App, you must set this to true for your
		requests.
	*/
	MachineManPreview bool

	/*
		You can now use the REST API to add a reason when you lock an issue, and you
		will see lock reasons in responses that include issues or pull requests. You
		will also see lock reasons in `locked` events. This feature is currently
		available for developers to preview. See the [blog
		post](https://developer.github.com/changes/2018-01-10-lock-reason-api-preview)
		for full details. To access this feature, you must set this to true.
	*/
	SailorVPreview bool
	// contains filtered or unexported fields
}

GetEventReq is request data for Client.GetEvent

https://developer.github.com/v3/issues/events/#get-an-issue-event

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetEventReq) HTTPRequest

func (r *GetEventReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetEventReq) Rel

func (r *GetEventReq) Rel(link string, resp *GetEventResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetEventResponse

type GetEventResponse struct {
	Data components.IssueEvent
	// contains filtered or unexported fields
}

GetEventResponse is a response for GetEvent

https://developer.github.com/v3/issues/events/#get-an-issue-event

func GetEvent

func GetEvent(ctx context.Context, req *GetEventReq, opt ...requests.Option) (*GetEventResponse, error)

GetEvent performs requests for "issues/get-event"

Get an issue event.

GET /repos/{owner}/{repo}/issues/events/{event_id}

https://developer.github.com/v3/issues/events/#get-an-issue-event

func (*GetEventResponse) HTTPResponse

func (r *GetEventResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetEventResponse) ReadResponse

func (r *GetEventResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetLabelReq

type GetLabelReq struct {
	Owner string
	Repo  string

	// name parameter
	Name string
	// contains filtered or unexported fields
}

GetLabelReq is request data for Client.GetLabel

https://developer.github.com/v3/issues/labels/#get-a-label

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetLabelReq) HTTPRequest

func (r *GetLabelReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetLabelReq) Rel

func (r *GetLabelReq) Rel(link string, resp *GetLabelResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetLabelResponse

type GetLabelResponse struct {
	Data components.Label
	// contains filtered or unexported fields
}

GetLabelResponse is a response for GetLabel

https://developer.github.com/v3/issues/labels/#get-a-label

func GetLabel

func GetLabel(ctx context.Context, req *GetLabelReq, opt ...requests.Option) (*GetLabelResponse, error)

GetLabel performs requests for "issues/get-label"

Get a label.

GET /repos/{owner}/{repo}/labels/{name}

https://developer.github.com/v3/issues/labels/#get-a-label

func (*GetLabelResponse) HTTPResponse

func (r *GetLabelResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetLabelResponse) ReadResponse

func (r *GetLabelResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetMilestoneReq

type GetMilestoneReq struct {
	Owner string
	Repo  string

	// milestone_number parameter
	MilestoneNumber int64
	// contains filtered or unexported fields
}

GetMilestoneReq is request data for Client.GetMilestone

https://developer.github.com/v3/issues/milestones/#get-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetMilestoneReq) HTTPRequest

func (r *GetMilestoneReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetMilestoneReq) Rel

func (r *GetMilestoneReq) Rel(link string, resp *GetMilestoneResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetMilestoneResponse

type GetMilestoneResponse struct {
	Data components.Milestone
	// contains filtered or unexported fields
}

GetMilestoneResponse is a response for GetMilestone

https://developer.github.com/v3/issues/milestones/#get-a-milestone

func GetMilestone

func GetMilestone(ctx context.Context, req *GetMilestoneReq, opt ...requests.Option) (*GetMilestoneResponse, error)

GetMilestone performs requests for "issues/get-milestone"

Get a milestone.

GET /repos/{owner}/{repo}/milestones/{milestone_number}

https://developer.github.com/v3/issues/milestones/#get-a-milestone

func (*GetMilestoneResponse) HTTPResponse

func (r *GetMilestoneResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetMilestoneResponse) ReadResponse

func (r *GetMilestoneResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetReq

type GetReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64

	/*
		An additional `reactions` object in the issue comment payload is currently
		available for developers to preview. During the preview period, the APIs may
		change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for
		full details.

		To access the API you must set this to true.
	*/
	SquirrelGirlPreview bool
	// contains filtered or unexported fields
}

GetReq is request data for Client.Get

https://developer.github.com/v3/issues/#get-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetReq) HTTPRequest

func (r *GetReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetReq) Rel

func (r *GetReq) Rel(link string, resp *GetResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetResponse

type GetResponse struct {
	Data components.Issue
	// contains filtered or unexported fields
}

GetResponse is a response for Get

https://developer.github.com/v3/issues/#get-an-issue

func Get

func Get(ctx context.Context, req *GetReq, opt ...requests.Option) (*GetResponse, error)

Get performs requests for "issues/get"

Get an issue.

GET /repos/{owner}/{repo}/issues/{issue_number}

https://developer.github.com/v3/issues/#get-an-issue

func (*GetResponse) HTTPResponse

func (r *GetResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetResponse) ReadResponse

func (r *GetResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListAssigneesReq

type ListAssigneesReq struct {
	Owner string
	Repo  string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListAssigneesReq is request data for Client.ListAssignees

https://developer.github.com/v3/issues/assignees/#list-assignees

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListAssigneesReq) HTTPRequest

func (r *ListAssigneesReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListAssigneesReq) Rel

func (r *ListAssigneesReq) Rel(link string, resp *ListAssigneesResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListAssigneesResponse

type ListAssigneesResponse struct {
	Data []components.SimpleUser
	// contains filtered or unexported fields
}

ListAssigneesResponse is a response for ListAssignees

https://developer.github.com/v3/issues/assignees/#list-assignees

func ListAssignees

func ListAssignees(ctx context.Context, req *ListAssigneesReq, opt ...requests.Option) (*ListAssigneesResponse, error)

ListAssignees performs requests for "issues/list-assignees"

List assignees.

GET /repos/{owner}/{repo}/assignees

https://developer.github.com/v3/issues/assignees/#list-assignees

func (*ListAssigneesResponse) HTTPResponse

func (r *ListAssigneesResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListAssigneesResponse) ReadResponse

func (r *ListAssigneesResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListCommentsForRepoReq

type ListCommentsForRepoReq struct {
	Owner string
	Repo  string

	/*
		One of `created` (when the repository was starred) or `updated` (when it was
		last pushed to).
	*/
	Sort *string

	// Either `asc` or `desc`. Ignored without the `sort` parameter.
	Direction *string

	/*
		Only show notifications 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 *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		An additional `reactions` object in the issue comment payload is currently
		available for developers to preview. During the preview period, the APIs may
		change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for
		full details.

		To access the API you must set this to true.
	*/
	SquirrelGirlPreview bool
	// contains filtered or unexported fields
}

ListCommentsForRepoReq is request data for Client.ListCommentsForRepo

https://developer.github.com/v3/issues/comments/#list-issue-comments-for-a-repository

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListCommentsForRepoReq) HTTPRequest

func (r *ListCommentsForRepoReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListCommentsForRepoReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListCommentsForRepoResponse

type ListCommentsForRepoResponse struct {
	Data []components.IssueComment
	// contains filtered or unexported fields
}

ListCommentsForRepoResponse is a response for ListCommentsForRepo

https://developer.github.com/v3/issues/comments/#list-issue-comments-for-a-repository

func ListCommentsForRepo

func ListCommentsForRepo(ctx context.Context, req *ListCommentsForRepoReq, opt ...requests.Option) (*ListCommentsForRepoResponse, error)

ListCommentsForRepo performs requests for "issues/list-comments-for-repo"

List issue comments for a repository.

GET /repos/{owner}/{repo}/issues/comments

https://developer.github.com/v3/issues/comments/#list-issue-comments-for-a-repository

func (*ListCommentsForRepoResponse) HTTPResponse

func (r *ListCommentsForRepoResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListCommentsForRepoResponse) ReadResponse

func (r *ListCommentsForRepoResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListCommentsReq

type ListCommentsReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64

	/*
		Only show notifications 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 *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		An additional `reactions` object in the issue comment payload is currently
		available for developers to preview. During the preview period, the APIs may
		change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for
		full details.

		To access the API you must set this to true.
	*/
	SquirrelGirlPreview bool
	// contains filtered or unexported fields
}

ListCommentsReq is request data for Client.ListComments

https://developer.github.com/v3/issues/comments/#list-issue-comments

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListCommentsReq) HTTPRequest

func (r *ListCommentsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListCommentsReq) Rel

func (r *ListCommentsReq) Rel(link string, resp *ListCommentsResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListCommentsResponse

type ListCommentsResponse struct {
	Data []components.IssueComment
	// contains filtered or unexported fields
}

ListCommentsResponse is a response for ListComments

https://developer.github.com/v3/issues/comments/#list-issue-comments

func ListComments

func ListComments(ctx context.Context, req *ListCommentsReq, opt ...requests.Option) (*ListCommentsResponse, error)

ListComments performs requests for "issues/list-comments"

List issue comments.

GET /repos/{owner}/{repo}/issues/{issue_number}/comments

https://developer.github.com/v3/issues/comments/#list-issue-comments

func (*ListCommentsResponse) HTTPResponse

func (r *ListCommentsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListCommentsResponse) ReadResponse

func (r *ListCommentsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListEventsForRepoReq

type ListEventsForRepoReq struct {
	Owner string
	Repo  string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		Project card details are now shown in REST API v3 responses for project-related
		issue and timeline events. This feature is now available for developers to
		preview. For details, see the [blog
		post](https://developer.github.com/changes/2018-09-05-project-card-events).

		To receive the `project_card` attribute, project boards must be
		[enabled](https://help.github.com/articles/disabling-project-boards-in-a-repository)
		for a repository, and you must set this to true.
	*/
	StarfoxPreview bool

	/*
		You can now use the REST API to add a reason when you lock an issue, and you
		will see lock reasons in responses that include issues or pull requests. You
		will also see lock reasons in `locked` events. This feature is currently
		available for developers to preview. See the [blog
		post](https://developer.github.com/changes/2018-01-10-lock-reason-api-preview)
		for full details. To access this feature, you must set this to true.
	*/
	SailorVPreview bool
	// contains filtered or unexported fields
}

ListEventsForRepoReq is request data for Client.ListEventsForRepo

https://developer.github.com/v3/issues/events/#list-issue-events-for-a-repository

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListEventsForRepoReq) HTTPRequest

func (r *ListEventsForRepoReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListEventsForRepoReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListEventsForRepoResponse

type ListEventsForRepoResponse struct {
	Data []components.IssueEvent
	// contains filtered or unexported fields
}

ListEventsForRepoResponse is a response for ListEventsForRepo

https://developer.github.com/v3/issues/events/#list-issue-events-for-a-repository

func ListEventsForRepo

func ListEventsForRepo(ctx context.Context, req *ListEventsForRepoReq, opt ...requests.Option) (*ListEventsForRepoResponse, error)

ListEventsForRepo performs requests for "issues/list-events-for-repo"

List issue events for a repository.

GET /repos/{owner}/{repo}/issues/events

https://developer.github.com/v3/issues/events/#list-issue-events-for-a-repository

func (*ListEventsForRepoResponse) HTTPResponse

func (r *ListEventsForRepoResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListEventsForRepoResponse) ReadResponse

func (r *ListEventsForRepoResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListEventsForTimelineReq

type ListEventsForTimelineReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		The API to get issue timeline events is currently available for developers to
		preview. During the preview period, the APIs may change without advance notice.
		Please see the [blog
		post](https://developer.github.com/changes/2016-05-23-timeline-preview-api/) for
		full details. To access the API you must set this to true.
	*/
	MockingbirdPreview bool

	/*
		Project card details are now shown in REST API v3 responses for project-related
		issue and timeline events. This feature is now available for developers to
		preview. For details, see the [blog
		post](https://developer.github.com/changes/2018-09-05-project-card-events).

		To receive the `project_card` attribute, project boards must be
		[enabled](https://help.github.com/articles/disabling-project-boards-in-a-repository)
		for a repository, and you must set this to true.
	*/
	StarfoxPreview bool
	// contains filtered or unexported fields
}

ListEventsForTimelineReq is request data for Client.ListEventsForTimeline

https://developer.github.com/v3/issues/timeline/#list-timeline-events-for-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListEventsForTimelineReq) HTTPRequest

func (r *ListEventsForTimelineReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListEventsForTimelineReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListEventsForTimelineResponse

type ListEventsForTimelineResponse struct {
	Data []components.IssueEventForIssue
	// contains filtered or unexported fields
}

ListEventsForTimelineResponse is a response for ListEventsForTimeline

https://developer.github.com/v3/issues/timeline/#list-timeline-events-for-an-issue

func ListEventsForTimeline

func ListEventsForTimeline(ctx context.Context, req *ListEventsForTimelineReq, opt ...requests.Option) (*ListEventsForTimelineResponse, error)

ListEventsForTimeline performs requests for "issues/list-events-for-timeline"

List timeline events for an issue.

GET /repos/{owner}/{repo}/issues/{issue_number}/timeline

https://developer.github.com/v3/issues/timeline/#list-timeline-events-for-an-issue

func (*ListEventsForTimelineResponse) HTTPResponse

func (r *ListEventsForTimelineResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListEventsForTimelineResponse) ReadResponse

func (r *ListEventsForTimelineResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListEventsReq

type ListEventsReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		Project card details are now shown in REST API v3 responses for project-related
		issue and timeline events. This feature is now available for developers to
		preview. For details, see the [blog
		post](https://developer.github.com/changes/2018-09-05-project-card-events).

		To receive the `project_card` attribute, project boards must be
		[enabled](https://help.github.com/articles/disabling-project-boards-in-a-repository)
		for a repository, and you must set this to true.
	*/
	StarfoxPreview bool

	/*
		You can now use the REST API to add a reason when you lock an issue, and you
		will see lock reasons in responses that include issues or pull requests. You
		will also see lock reasons in `locked` events. This feature is currently
		available for developers to preview. See the [blog
		post](https://developer.github.com/changes/2018-01-10-lock-reason-api-preview)
		for full details. To access this feature, you must set this to true.
	*/
	SailorVPreview bool
	// contains filtered or unexported fields
}

ListEventsReq is request data for Client.ListEvents

https://developer.github.com/v3/issues/events/#list-issue-events

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListEventsReq) HTTPRequest

func (r *ListEventsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListEventsReq) Rel

func (r *ListEventsReq) Rel(link string, resp *ListEventsResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListEventsResponse

type ListEventsResponse struct {
	Data []components.IssueEventForIssue
	// contains filtered or unexported fields
}

ListEventsResponse is a response for ListEvents

https://developer.github.com/v3/issues/events/#list-issue-events

func ListEvents

func ListEvents(ctx context.Context, req *ListEventsReq, opt ...requests.Option) (*ListEventsResponse, error)

ListEvents performs requests for "issues/list-events"

List issue events.

GET /repos/{owner}/{repo}/issues/{issue_number}/events

https://developer.github.com/v3/issues/events/#list-issue-events

func (*ListEventsResponse) HTTPResponse

func (r *ListEventsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListEventsResponse) ReadResponse

func (r *ListEventsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListForAuthenticatedUserReq

type ListForAuthenticatedUserReq struct {

	/*
		Indicates which sorts of issues to return. Can be one of:
		\* `assigned`: Issues assigned to you
		\* `created`: Issues created by you
		\* `mentioned`: Issues mentioning you
		\* `subscribed`: Issues you're subscribed to updates for
		\* `all`: All issues the authenticated user can see, regardless of participation
		or creation
	*/
	Filter *string

	/*
		Indicates the state of the issues to return. Can be either `open`, `closed`, or
		`all`.
	*/
	State *string

	// A list of comma separated label names. Example: `bug,ui,@high`
	Labels *string

	// What to sort results by. Can be either `created`, `updated`, `comments`.
	Sort *string

	// One of `asc` (ascending) or `desc` (descending).
	Direction *string

	/*
		Only show notifications 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 *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		To access the API with your GitHub App, you must set this to true for your
		requests.
	*/
	MachineManPreview bool

	/*
		An additional `reactions` object in the issue comment payload is currently
		available for developers to preview. During the preview period, the APIs may
		change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for
		full details.

		To access the API you must set this to true.
	*/
	SquirrelGirlPreview bool
	// contains filtered or unexported fields
}

ListForAuthenticatedUserReq is request data for Client.ListForAuthenticatedUser

https://developer.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListForAuthenticatedUserReq) HTTPRequest

func (r *ListForAuthenticatedUserReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListForAuthenticatedUserResponse

type ListForAuthenticatedUserResponse struct {
	Data []components.Issue
	// contains filtered or unexported fields
}

ListForAuthenticatedUserResponse is a response for ListForAuthenticatedUser

https://developer.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user

func ListForAuthenticatedUser

ListForAuthenticatedUser performs requests for "issues/list-for-authenticated-user"

List user account issues assigned to the authenticated user.

GET /user/issues

https://developer.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user

func (*ListForAuthenticatedUserResponse) HTTPResponse

func (r *ListForAuthenticatedUserResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListForAuthenticatedUserResponse) ReadResponse

func (r *ListForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListForOrgReq

type ListForOrgReq struct {
	Org string

	/*
		Indicates which sorts of issues to return. Can be one of:
		\* `assigned`: Issues assigned to you
		\* `created`: Issues created by you
		\* `mentioned`: Issues mentioning you
		\* `subscribed`: Issues you're subscribed to updates for
		\* `all`: All issues the authenticated user can see, regardless of participation
		or creation
	*/
	Filter *string

	/*
		Indicates the state of the issues to return. Can be either `open`, `closed`, or
		`all`.
	*/
	State *string

	// A list of comma separated label names. Example: `bug,ui,@high`
	Labels *string

	// What to sort results by. Can be either `created`, `updated`, `comments`.
	Sort *string

	// One of `asc` (ascending) or `desc` (descending).
	Direction *string

	/*
		Only show notifications 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 *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		To access the API with your GitHub App, you must set this to true for your
		requests.
	*/
	MachineManPreview bool

	/*
		An additional `reactions` object in the issue comment payload is currently
		available for developers to preview. During the preview period, the APIs may
		change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for
		full details.

		To access the API you must set this to true.
	*/
	SquirrelGirlPreview bool
	// contains filtered or unexported fields
}

ListForOrgReq is request data for Client.ListForOrg

https://developer.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListForOrgReq) HTTPRequest

func (r *ListForOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListForOrgReq) Rel

func (r *ListForOrgReq) Rel(link string, resp *ListForOrgResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListForOrgResponse

type ListForOrgResponse struct {
	Data []components.Issue
	// contains filtered or unexported fields
}

ListForOrgResponse is a response for ListForOrg

https://developer.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user

func ListForOrg

func ListForOrg(ctx context.Context, req *ListForOrgReq, opt ...requests.Option) (*ListForOrgResponse, error)

ListForOrg performs requests for "issues/list-for-org"

List organization issues assigned to the authenticated user.

GET /orgs/{org}/issues

https://developer.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user

func (*ListForOrgResponse) HTTPResponse

func (r *ListForOrgResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListForOrgResponse) ReadResponse

func (r *ListForOrgResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListForRepoReq

type ListForRepoReq struct {
	Owner string
	Repo  string

	/*
		If an `integer` is passed, it should refer to a milestone by its `number` field.
		If the string `*` is passed, issues with any milestone are accepted. If the
		string `none` is passed, issues without milestones are returned.
	*/
	Milestone *string

	/*
		Indicates the state of the issues to return. Can be either `open`, `closed`, or
		`all`.
	*/
	State *string

	/*
		Can be the name of a user. Pass in `none` for issues with no assigned user, and
		`*` for issues assigned to any user.
	*/
	Assignee *string

	// The user that created the issue.
	Creator *string

	// A user that's mentioned in the issue.
	Mentioned *string

	// A list of comma separated label names. Example: `bug,ui,@high`
	Labels *string

	// What to sort results by. Can be either `created`, `updated`, `comments`.
	Sort *string

	// One of `asc` (ascending) or `desc` (descending).
	Direction *string

	/*
		Only show notifications 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 *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		To access the API with your GitHub App, you must set this to true for your
		requests.
	*/
	MachineManPreview bool

	/*
		An additional `reactions` object in the issue comment payload is currently
		available for developers to preview. During the preview period, the APIs may
		change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for
		full details.

		To access the API you must set this to true.
	*/
	SquirrelGirlPreview bool
	// contains filtered or unexported fields
}

ListForRepoReq is request data for Client.ListForRepo

https://developer.github.com/v3/issues/#list-repository-issues

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListForRepoReq) HTTPRequest

func (r *ListForRepoReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListForRepoReq) Rel

func (r *ListForRepoReq) Rel(link string, resp *ListForRepoResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListForRepoResponse

type ListForRepoResponse struct {
	Data []components.IssueSimple
	// contains filtered or unexported fields
}

ListForRepoResponse is a response for ListForRepo

https://developer.github.com/v3/issues/#list-repository-issues

func ListForRepo

func ListForRepo(ctx context.Context, req *ListForRepoReq, opt ...requests.Option) (*ListForRepoResponse, error)

ListForRepo performs requests for "issues/list-for-repo"

List repository issues.

GET /repos/{owner}/{repo}/issues

https://developer.github.com/v3/issues/#list-repository-issues

func (*ListForRepoResponse) HTTPResponse

func (r *ListForRepoResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListForRepoResponse) ReadResponse

func (r *ListForRepoResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListLabelsForMilestoneReq

type ListLabelsForMilestoneReq struct {
	Owner string
	Repo  string

	// milestone_number parameter
	MilestoneNumber int64

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListLabelsForMilestoneReq is request data for Client.ListLabelsForMilestone

https://developer.github.com/v3/issues/labels/#list-labels-for-issues-in-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListLabelsForMilestoneReq) HTTPRequest

func (r *ListLabelsForMilestoneReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListLabelsForMilestoneReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListLabelsForMilestoneResponse

type ListLabelsForMilestoneResponse struct {
	Data []components.Label
	// contains filtered or unexported fields
}

ListLabelsForMilestoneResponse is a response for ListLabelsForMilestone

https://developer.github.com/v3/issues/labels/#list-labels-for-issues-in-a-milestone

func ListLabelsForMilestone

func ListLabelsForMilestone(ctx context.Context, req *ListLabelsForMilestoneReq, opt ...requests.Option) (*ListLabelsForMilestoneResponse, error)

ListLabelsForMilestone performs requests for "issues/list-labels-for-milestone"

List labels for issues in a milestone.

GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels

https://developer.github.com/v3/issues/labels/#list-labels-for-issues-in-a-milestone

func (*ListLabelsForMilestoneResponse) HTTPResponse

func (r *ListLabelsForMilestoneResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListLabelsForMilestoneResponse) ReadResponse

func (r *ListLabelsForMilestoneResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListLabelsForRepoReq

type ListLabelsForRepoReq struct {
	Owner string
	Repo  string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListLabelsForRepoReq is request data for Client.ListLabelsForRepo

https://developer.github.com/v3/issues/labels/#list-labels-for-a-repository

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListLabelsForRepoReq) HTTPRequest

func (r *ListLabelsForRepoReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListLabelsForRepoReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListLabelsForRepoResponse

type ListLabelsForRepoResponse struct {
	Data []components.Label
	// contains filtered or unexported fields
}

ListLabelsForRepoResponse is a response for ListLabelsForRepo

https://developer.github.com/v3/issues/labels/#list-labels-for-a-repository

func ListLabelsForRepo

func ListLabelsForRepo(ctx context.Context, req *ListLabelsForRepoReq, opt ...requests.Option) (*ListLabelsForRepoResponse, error)

ListLabelsForRepo performs requests for "issues/list-labels-for-repo"

List labels for a repository.

GET /repos/{owner}/{repo}/labels

https://developer.github.com/v3/issues/labels/#list-labels-for-a-repository

func (*ListLabelsForRepoResponse) HTTPResponse

func (r *ListLabelsForRepoResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListLabelsForRepoResponse) ReadResponse

func (r *ListLabelsForRepoResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListLabelsOnIssueReq

type ListLabelsOnIssueReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListLabelsOnIssueReq is request data for Client.ListLabelsOnIssue

https://developer.github.com/v3/issues/labels/#list-labels-for-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListLabelsOnIssueReq) HTTPRequest

func (r *ListLabelsOnIssueReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListLabelsOnIssueReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListLabelsOnIssueResponse

type ListLabelsOnIssueResponse struct {
	Data []components.Label
	// contains filtered or unexported fields
}

ListLabelsOnIssueResponse is a response for ListLabelsOnIssue

https://developer.github.com/v3/issues/labels/#list-labels-for-an-issue

func ListLabelsOnIssue

func ListLabelsOnIssue(ctx context.Context, req *ListLabelsOnIssueReq, opt ...requests.Option) (*ListLabelsOnIssueResponse, error)

ListLabelsOnIssue performs requests for "issues/list-labels-on-issue"

List labels for an issue.

GET /repos/{owner}/{repo}/issues/{issue_number}/labels

https://developer.github.com/v3/issues/labels/#list-labels-for-an-issue

func (*ListLabelsOnIssueResponse) HTTPResponse

func (r *ListLabelsOnIssueResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListLabelsOnIssueResponse) ReadResponse

func (r *ListLabelsOnIssueResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListMilestonesReq

type ListMilestonesReq struct {
	Owner string
	Repo  string

	// The state of the milestone. Either `open`, `closed`, or `all`.
	State *string

	// What to sort results by. Either `due_on` or `completeness`.
	Sort *string

	// The direction of the sort. Either `asc` or `desc`.
	Direction *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListMilestonesReq is request data for Client.ListMilestones

https://developer.github.com/v3/issues/milestones/#list-milestones

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListMilestonesReq) HTTPRequest

func (r *ListMilestonesReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListMilestonesReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListMilestonesResponse

type ListMilestonesResponse struct {
	Data []components.Milestone
	// contains filtered or unexported fields
}

ListMilestonesResponse is a response for ListMilestones

https://developer.github.com/v3/issues/milestones/#list-milestones

func ListMilestones

func ListMilestones(ctx context.Context, req *ListMilestonesReq, opt ...requests.Option) (*ListMilestonesResponse, error)

ListMilestones performs requests for "issues/list-milestones"

List milestones.

GET /repos/{owner}/{repo}/milestones

https://developer.github.com/v3/issues/milestones/#list-milestones

func (*ListMilestonesResponse) HTTPResponse

func (r *ListMilestonesResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListMilestonesResponse) ReadResponse

func (r *ListMilestonesResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListReq

type ListReq struct {

	/*
		Indicates which sorts of issues to return. Can be one of:
		\* `assigned`: Issues assigned to you
		\* `created`: Issues created by you
		\* `mentioned`: Issues mentioning you
		\* `subscribed`: Issues you're subscribed to updates for
		\* `all`: All issues the authenticated user can see, regardless of participation
		or creation
	*/
	Filter *string

	/*
		Indicates the state of the issues to return. Can be either `open`, `closed`, or
		`all`.
	*/
	State *string

	// A list of comma separated label names. Example: `bug,ui,@high`
	Labels *string

	// What to sort results by. Can be either `created`, `updated`, `comments`.
	Sort *string

	// One of `asc` (ascending) or `desc` (descending).
	Direction *string

	/*
		Only show notifications 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  *string
	Collab *bool
	Orgs   *bool
	Owned  *bool
	Pulls  *bool

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64

	/*
		To access the API with your GitHub App, you must set this to true for your
		requests.
	*/
	MachineManPreview bool

	/*
		An additional `reactions` object in the issue comment payload is currently
		available for developers to preview. During the preview period, the APIs may
		change without advance notice. Please see the [blog
		post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for
		full details.

		To access the API you must set this to true.
	*/
	SquirrelGirlPreview bool
	// contains filtered or unexported fields
}

ListReq is request data for Client.List

https://developer.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListReq) HTTPRequest

func (r *ListReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListReq) Rel

func (r *ListReq) Rel(link string, resp *ListResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListResponse

type ListResponse struct {
	Data []components.Issue
	// contains filtered or unexported fields
}

ListResponse is a response for List

https://developer.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user

func List

func List(ctx context.Context, req *ListReq, opt ...requests.Option) (*ListResponse, error)

List performs requests for "issues/list"

List issues assigned to the authenticated user.

GET /issues

https://developer.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user

func (*ListResponse) HTTPResponse

func (r *ListResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListResponse) ReadResponse

func (r *ListResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type LockReq

type LockReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	RequestBody LockReqBody

	/*
		You can now use the REST API to add a reason when you lock an issue, and you
		will see lock reasons in responses that include issues or pull requests. You
		will also see lock reasons in `locked` events. This feature is currently
		available for developers to preview. See the [blog
		post](https://developer.github.com/changes/2018-01-10-lock-reason-api-preview)
		for full details. To access this feature, you must set this to true.
	*/
	SailorVPreview bool
	// contains filtered or unexported fields
}

LockReq is request data for Client.Lock

https://developer.github.com/v3/issues/#lock-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*LockReq) HTTPRequest

func (r *LockReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*LockReq) Rel

func (r *LockReq) Rel(link string, resp *LockResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type LockReqBody

type LockReqBody struct {

	/*
		The reason for locking the issue or pull request conversation. Lock will fail if
		you don't use one of these reasons:
		\* `off-topic`
		\* `too heated`
		\* `resolved`
		\* `spam`
	*/
	LockReason *string `json:"lock_reason,omitempty"`
}

LockReqBody is a request body for issues/lock

https://developer.github.com/v3/issues/#lock-an-issue

type LockResponse

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

LockResponse is a response for Lock

https://developer.github.com/v3/issues/#lock-an-issue

func Lock

func Lock(ctx context.Context, req *LockReq, opt ...requests.Option) (*LockResponse, error)

Lock performs requests for "issues/lock"

Lock an issue.

PUT /repos/{owner}/{repo}/issues/{issue_number}/lock

https://developer.github.com/v3/issues/#lock-an-issue

func (*LockResponse) HTTPResponse

func (r *LockResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*LockResponse) ReadResponse

func (r *LockResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type RemoveAllLabelsReq

type RemoveAllLabelsReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	// contains filtered or unexported fields
}

RemoveAllLabelsReq is request data for Client.RemoveAllLabels

https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*RemoveAllLabelsReq) HTTPRequest

func (r *RemoveAllLabelsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*RemoveAllLabelsReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type RemoveAllLabelsResponse

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

RemoveAllLabelsResponse is a response for RemoveAllLabels

https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue

func RemoveAllLabels

func RemoveAllLabels(ctx context.Context, req *RemoveAllLabelsReq, opt ...requests.Option) (*RemoveAllLabelsResponse, error)

RemoveAllLabels performs requests for "issues/remove-all-labels"

Remove all labels from an issue.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels

https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue

func (*RemoveAllLabelsResponse) HTTPResponse

func (r *RemoveAllLabelsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*RemoveAllLabelsResponse) ReadResponse

func (r *RemoveAllLabelsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type RemoveAssigneesReq

type RemoveAssigneesReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	RequestBody RemoveAssigneesReqBody
	// contains filtered or unexported fields
}

RemoveAssigneesReq is request data for Client.RemoveAssignees

https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*RemoveAssigneesReq) HTTPRequest

func (r *RemoveAssigneesReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*RemoveAssigneesReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type RemoveAssigneesReqBody

type RemoveAssigneesReqBody struct {

	/*
		Usernames of assignees to remove from an issue. _NOTE: Only users with push
		access can remove assignees from an issue. Assignees are silently ignored
		otherwise._
	*/
	Assignees []string `json:"assignees,omitempty"`
}

RemoveAssigneesReqBody is a request body for issues/remove-assignees

https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue

type RemoveAssigneesResponse

type RemoveAssigneesResponse struct {
	Data components.IssueSimple
	// contains filtered or unexported fields
}

RemoveAssigneesResponse is a response for RemoveAssignees

https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue

func RemoveAssignees

func RemoveAssignees(ctx context.Context, req *RemoveAssigneesReq, opt ...requests.Option) (*RemoveAssigneesResponse, error)

RemoveAssignees performs requests for "issues/remove-assignees"

Remove assignees from an issue.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees

https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue

func (*RemoveAssigneesResponse) HTTPResponse

func (r *RemoveAssigneesResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*RemoveAssigneesResponse) ReadResponse

func (r *RemoveAssigneesResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type RemoveLabelReq

type RemoveLabelReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64

	// name parameter
	Name string
	// contains filtered or unexported fields
}

RemoveLabelReq is request data for Client.RemoveLabel

https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*RemoveLabelReq) HTTPRequest

func (r *RemoveLabelReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*RemoveLabelReq) Rel

func (r *RemoveLabelReq) Rel(link string, resp *RemoveLabelResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type RemoveLabelResponse

type RemoveLabelResponse struct {
	Data []components.Label
	// contains filtered or unexported fields
}

RemoveLabelResponse is a response for RemoveLabel

https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue

func RemoveLabel

func RemoveLabel(ctx context.Context, req *RemoveLabelReq, opt ...requests.Option) (*RemoveLabelResponse, error)

RemoveLabel performs requests for "issues/remove-label"

Remove a label from an issue.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}

https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue

func (*RemoveLabelResponse) HTTPResponse

func (r *RemoveLabelResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*RemoveLabelResponse) ReadResponse

func (r *RemoveLabelResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type SetLabelsReq

type SetLabelsReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	RequestBody SetLabelsReqBody
	// contains filtered or unexported fields
}

SetLabelsReq is request data for Client.SetLabels

https://developer.github.com/v3/issues/labels/#set-labels-for-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*SetLabelsReq) HTTPRequest

func (r *SetLabelsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*SetLabelsReq) Rel

func (r *SetLabelsReq) Rel(link string, resp *SetLabelsResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type SetLabelsReqBody

type SetLabelsReqBody struct {

	/*
		The names of the labels to add to the issue. You can pass an empty array to
		remove all labels. **Note:** Alternatively, you can pass a single label as a
		`string` or an `array` of labels directly, but GitHub recommends passing an
		object with the `labels` key.
	*/
	Labels []string `json:"labels,omitempty"`
}

SetLabelsReqBody is a request body for issues/set-labels

https://developer.github.com/v3/issues/labels/#set-labels-for-an-issue

type SetLabelsResponse

type SetLabelsResponse struct {
	Data []components.Label
	// contains filtered or unexported fields
}

SetLabelsResponse is a response for SetLabels

https://developer.github.com/v3/issues/labels/#set-labels-for-an-issue

func SetLabels

func SetLabels(ctx context.Context, req *SetLabelsReq, opt ...requests.Option) (*SetLabelsResponse, error)

SetLabels performs requests for "issues/set-labels"

Set labels for an issue.

PUT /repos/{owner}/{repo}/issues/{issue_number}/labels

https://developer.github.com/v3/issues/labels/#set-labels-for-an-issue

func (*SetLabelsResponse) HTTPResponse

func (r *SetLabelsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*SetLabelsResponse) ReadResponse

func (r *SetLabelsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UnlockReq

type UnlockReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	// contains filtered or unexported fields
}

UnlockReq is request data for Client.Unlock

https://developer.github.com/v3/issues/#unlock-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UnlockReq) HTTPRequest

func (r *UnlockReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UnlockReq) Rel

func (r *UnlockReq) Rel(link string, resp *UnlockResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UnlockResponse

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

UnlockResponse is a response for Unlock

https://developer.github.com/v3/issues/#unlock-an-issue

func Unlock

func Unlock(ctx context.Context, req *UnlockReq, opt ...requests.Option) (*UnlockResponse, error)

Unlock performs requests for "issues/unlock"

Unlock an issue.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock

https://developer.github.com/v3/issues/#unlock-an-issue

func (*UnlockResponse) HTTPResponse

func (r *UnlockResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*UnlockResponse) ReadResponse

func (r *UnlockResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UpdateCommentReq

type UpdateCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId   int64
	RequestBody UpdateCommentReqBody
	// contains filtered or unexported fields
}

UpdateCommentReq is request data for Client.UpdateComment

https://developer.github.com/v3/issues/comments/#update-an-issue-comment

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UpdateCommentReq) HTTPRequest

func (r *UpdateCommentReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateCommentReq) Rel

func (r *UpdateCommentReq) Rel(link string, resp *UpdateCommentResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UpdateCommentReqBody

type UpdateCommentReqBody struct {

	// The contents of the comment.
	Body *string `json:"body"`
}

UpdateCommentReqBody is a request body for issues/update-comment

https://developer.github.com/v3/issues/comments/#update-an-issue-comment

type UpdateCommentResponse

type UpdateCommentResponse struct {
	Data components.IssueComment
	// contains filtered or unexported fields
}

UpdateCommentResponse is a response for UpdateComment

https://developer.github.com/v3/issues/comments/#update-an-issue-comment

func UpdateComment

func UpdateComment(ctx context.Context, req *UpdateCommentReq, opt ...requests.Option) (*UpdateCommentResponse, error)

UpdateComment performs requests for "issues/update-comment"

Update an issue comment.

PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}

https://developer.github.com/v3/issues/comments/#update-an-issue-comment

func (*UpdateCommentResponse) HTTPResponse

func (r *UpdateCommentResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*UpdateCommentResponse) ReadResponse

func (r *UpdateCommentResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UpdateLabelReq

type UpdateLabelReq struct {
	Owner string
	Repo  string

	// name parameter
	Name        string
	RequestBody UpdateLabelReqBody
	// contains filtered or unexported fields
}

UpdateLabelReq is request data for Client.UpdateLabel

https://developer.github.com/v3/issues/labels/#update-a-label

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UpdateLabelReq) HTTPRequest

func (r *UpdateLabelReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateLabelReq) Rel

func (r *UpdateLabelReq) Rel(link string, resp *UpdateLabelResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UpdateLabelReqBody

type UpdateLabelReqBody struct {

	// The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.
	Color *string `json:"color,omitempty"`

	// A short description of the label.
	Description *string `json:"description,omitempty"`

	/*
		The new name of the label. Emoji can be added to label names, using either
		native emoji or colon-style markup. For example, typing `:strawberry:` will
		render the emoji
		![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png
		":strawberry:"). For a full list of available emoji and codes, see
		[emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).
	*/
	NewName *string `json:"new_name,omitempty"`
}

UpdateLabelReqBody is a request body for issues/update-label

https://developer.github.com/v3/issues/labels/#update-a-label

type UpdateLabelResponse

type UpdateLabelResponse struct {
	Data components.Label
	// contains filtered or unexported fields
}

UpdateLabelResponse is a response for UpdateLabel

https://developer.github.com/v3/issues/labels/#update-a-label

func UpdateLabel

func UpdateLabel(ctx context.Context, req *UpdateLabelReq, opt ...requests.Option) (*UpdateLabelResponse, error)

UpdateLabel performs requests for "issues/update-label"

Update a label.

PATCH /repos/{owner}/{repo}/labels/{name}

https://developer.github.com/v3/issues/labels/#update-a-label

func (*UpdateLabelResponse) HTTPResponse

func (r *UpdateLabelResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*UpdateLabelResponse) ReadResponse

func (r *UpdateLabelResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UpdateMilestoneReq

type UpdateMilestoneReq struct {
	Owner string
	Repo  string

	// milestone_number parameter
	MilestoneNumber int64
	RequestBody     UpdateMilestoneReqBody
	// contains filtered or unexported fields
}

UpdateMilestoneReq is request data for Client.UpdateMilestone

https://developer.github.com/v3/issues/milestones/#update-a-milestone

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UpdateMilestoneReq) HTTPRequest

func (r *UpdateMilestoneReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateMilestoneReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UpdateMilestoneReqBody

type UpdateMilestoneReqBody struct {

	// A description of the milestone.
	Description *string `json:"description,omitempty"`

	/*
		The milestone due date. This is a timestamp in [ISO
		8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
	*/
	DueOn *string `json:"due_on,omitempty"`

	// The state of the milestone. Either `open` or `closed`.
	State *string `json:"state,omitempty"`

	// The title of the milestone.
	Title *string `json:"title,omitempty"`
}

UpdateMilestoneReqBody is a request body for issues/update-milestone

https://developer.github.com/v3/issues/milestones/#update-a-milestone

type UpdateMilestoneResponse

type UpdateMilestoneResponse struct {
	Data components.Milestone
	// contains filtered or unexported fields
}

UpdateMilestoneResponse is a response for UpdateMilestone

https://developer.github.com/v3/issues/milestones/#update-a-milestone

func UpdateMilestone

func UpdateMilestone(ctx context.Context, req *UpdateMilestoneReq, opt ...requests.Option) (*UpdateMilestoneResponse, error)

UpdateMilestone performs requests for "issues/update-milestone"

Update a milestone.

PATCH /repos/{owner}/{repo}/milestones/{milestone_number}

https://developer.github.com/v3/issues/milestones/#update-a-milestone

func (*UpdateMilestoneResponse) HTTPResponse

func (r *UpdateMilestoneResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*UpdateMilestoneResponse) ReadResponse

func (r *UpdateMilestoneResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UpdateReq

type UpdateReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	RequestBody UpdateReqBody
	// contains filtered or unexported fields
}

UpdateReq is request data for Client.Update

https://developer.github.com/v3/issues/#update-an-issue

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UpdateReq) HTTPRequest

func (r *UpdateReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateReq) Rel

func (r *UpdateReq) Rel(link string, resp *UpdateResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UpdateReqBody

type UpdateReqBody struct {

	// Login for the user that this issue should be assigned to. **This field is deprecated.**
	Assignee *string `json:"assignee,omitempty"`

	/*
		Logins for Users to assign to this issue. Pass one or more user logins to
		_replace_ the set of assignees on this Issue. Send an empty array (`[]`) to
		clear all assignees from the Issue. _NOTE: Only users with push access can set
		assignees for new issues. Assignees are silently dropped otherwise._
	*/
	Assignees []string `json:"assignees,omitempty"`

	// The contents of the issue.
	Body *string `json:"body,omitempty"`

	/*
		Labels to associate with this issue. Pass one or more Labels to _replace_ the
		set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from
		the Issue. _NOTE: Only users with push access can set labels for issues. Labels
		are silently dropped otherwise._
	*/
	Labels []string `json:"labels,omitempty"`

	/*
		The `number` of the milestone to associate this issue with or `null` to remove
		current. _NOTE: Only users with push access can set the milestone for issues.
		The milestone is silently dropped otherwise._
	*/
	Milestone *int64 `json:"milestone,omitempty"`

	// State of the issue. Either `open` or `closed`.
	State *string `json:"state,omitempty"`

	// The title of the issue.
	Title *string `json:"title,omitempty"`
}

UpdateReqBody is a request body for issues/update

https://developer.github.com/v3/issues/#update-an-issue

type UpdateResponse

type UpdateResponse struct {
	Data components.Issue
	// contains filtered or unexported fields
}

UpdateResponse is a response for Update

https://developer.github.com/v3/issues/#update-an-issue

func Update

func Update(ctx context.Context, req *UpdateReq, opt ...requests.Option) (*UpdateResponse, error)

Update performs requests for "issues/update"

Update an issue.

PATCH /repos/{owner}/{repo}/issues/{issue_number}

https://developer.github.com/v3/issues/#update-an-issue

func (*UpdateResponse) HTTPResponse

func (r *UpdateResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*UpdateResponse) ReadResponse

func (r *UpdateResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

Jump to

Keyboard shortcuts

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