reactions

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 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) CreateForCommitComment

func (c Client) CreateForCommitComment(ctx context.Context, req *CreateForCommitCommentReq, opt ...requests.Option) (*CreateForCommitCommentResponse, error)

CreateForCommitComment performs requests for "reactions/create-for-commit-comment"

Create reaction for a commit comment.

POST /repos/{owner}/{repo}/comments/{comment_id}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment

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

func (Client) CreateForIssue

func (c Client) CreateForIssue(ctx context.Context, req *CreateForIssueReq, opt ...requests.Option) (*CreateForIssueResponse, error)

CreateForIssue performs requests for "reactions/create-for-issue"

Create reaction for an issue.

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

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue

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

func (Client) CreateForIssueComment

func (c Client) CreateForIssueComment(ctx context.Context, req *CreateForIssueCommentReq, opt ...requests.Option) (*CreateForIssueCommentResponse, error)

CreateForIssueComment performs requests for "reactions/create-for-issue-comment"

Create reaction for an issue comment.

POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment

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

func (Client) CreateForPullRequestReviewComment

CreateForPullRequestReviewComment performs requests for "reactions/create-for-pull-request-review-comment"

Create reaction for a pull request review comment.

POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment

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

func (Client) CreateForTeamDiscussionCommentInOrg

CreateForTeamDiscussionCommentInOrg performs requests for "reactions/create-for-team-discussion-comment-in-org"

Create reaction for a team discussion comment.

POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment

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

func (Client) CreateForTeamDiscussionCommentLegacy

CreateForTeamDiscussionCommentLegacy performs requests for "reactions/create-for-team-discussion-comment-legacy"

Create reaction for a team discussion comment (Legacy).

POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy

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

func (Client) CreateForTeamDiscussionInOrg

CreateForTeamDiscussionInOrg performs requests for "reactions/create-for-team-discussion-in-org"

Create reaction for a team discussion.

POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion

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

func (Client) CreateForTeamDiscussionLegacy

CreateForTeamDiscussionLegacy performs requests for "reactions/create-for-team-discussion-legacy"

Create reaction for a team discussion (Legacy).

POST /teams/{team_id}/discussions/{discussion_number}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy

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

func (Client) DeleteForCommitComment

func (c Client) DeleteForCommitComment(ctx context.Context, req *DeleteForCommitCommentReq, opt ...requests.Option) (*DeleteForCommitCommentResponse, error)

DeleteForCommitComment performs requests for "reactions/delete-for-commit-comment"

Delete a commit comment reaction.

DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction

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

func (Client) DeleteForIssue

func (c Client) DeleteForIssue(ctx context.Context, req *DeleteForIssueReq, opt ...requests.Option) (*DeleteForIssueResponse, error)

DeleteForIssue performs requests for "reactions/delete-for-issue"

Delete an issue reaction.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-an-issue-reaction

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

func (Client) DeleteForIssueComment

func (c Client) DeleteForIssueComment(ctx context.Context, req *DeleteForIssueCommentReq, opt ...requests.Option) (*DeleteForIssueCommentResponse, error)

DeleteForIssueComment performs requests for "reactions/delete-for-issue-comment"

Delete an issue comment reaction.

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

https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction

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

func (Client) DeleteForPullRequestComment

DeleteForPullRequestComment performs requests for "reactions/delete-for-pull-request-comment"

Delete a pull request comment reaction.

DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction

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

func (Client) DeleteForTeamDiscussion

func (c Client) DeleteForTeamDiscussion(ctx context.Context, req *DeleteForTeamDiscussionReq, opt ...requests.Option) (*DeleteForTeamDiscussionResponse, error)

DeleteForTeamDiscussion performs requests for "reactions/delete-for-team-discussion"

Delete team discussion reaction.

DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-team-discussion-reaction

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

func (Client) DeleteForTeamDiscussionComment

DeleteForTeamDiscussionComment performs requests for "reactions/delete-for-team-discussion-comment"

Delete team discussion comment reaction.

DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction

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

func (Client) DeleteLegacy

func (c Client) DeleteLegacy(ctx context.Context, req *DeleteLegacyReq, opt ...requests.Option) (*DeleteLegacyResponse, error)

DeleteLegacy performs requests for "reactions/delete-legacy"

Delete a reaction (Legacy).

DELETE /reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-a-reaction-legacy

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

func (Client) ListForCommitComment

func (c Client) ListForCommitComment(ctx context.Context, req *ListForCommitCommentReq, opt ...requests.Option) (*ListForCommitCommentResponse, error)

ListForCommitComment performs requests for "reactions/list-for-commit-comment"

List reactions for a commit comment.

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

https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment

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

func (Client) ListForIssue

func (c Client) ListForIssue(ctx context.Context, req *ListForIssueReq, opt ...requests.Option) (*ListForIssueResponse, error)

ListForIssue performs requests for "reactions/list-for-issue"

List reactions for an issue.

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

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

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

func (Client) ListForIssueComment

func (c Client) ListForIssueComment(ctx context.Context, req *ListForIssueCommentReq, opt ...requests.Option) (*ListForIssueCommentResponse, error)

ListForIssueComment performs requests for "reactions/list-for-issue-comment"

List reactions for an issue comment.

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

https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment

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

func (Client) ListForPullRequestReviewComment

ListForPullRequestReviewComment performs requests for "reactions/list-for-pull-request-review-comment"

List reactions for a pull request review comment.

GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment

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

func (Client) ListForTeamDiscussionCommentInOrg

ListForTeamDiscussionCommentInOrg performs requests for "reactions/list-for-team-discussion-comment-in-org"

List reactions for a team discussion comment.

GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment

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

func (Client) ListForTeamDiscussionCommentLegacy

ListForTeamDiscussionCommentLegacy performs requests for "reactions/list-for-team-discussion-comment-legacy"

List reactions for a team discussion comment (Legacy).

GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy

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

func (Client) ListForTeamDiscussionInOrg

func (c Client) ListForTeamDiscussionInOrg(ctx context.Context, req *ListForTeamDiscussionInOrgReq, opt ...requests.Option) (*ListForTeamDiscussionInOrgResponse, error)

ListForTeamDiscussionInOrg performs requests for "reactions/list-for-team-discussion-in-org"

List reactions for a team discussion.

GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion

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

func (Client) ListForTeamDiscussionLegacy

ListForTeamDiscussionLegacy performs requests for "reactions/list-for-team-discussion-legacy"

List reactions for a team discussion (Legacy).

GET /teams/{team_id}/discussions/{discussion_number}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy

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

type CreateForCommitCommentReq

type CreateForCommitCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId   int64
	RequestBody CreateForCommitCommentReqBody

	/*
		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
}

CreateForCommitCommentReq is request data for Client.CreateForCommitComment

https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment

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

func (*CreateForCommitCommentReq) HTTPRequest

func (r *CreateForCommitCommentReq) 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 (*CreateForCommitCommentReq) 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 CreateForCommitCommentReqBody

type CreateForCommitCommentReqBody struct {

	// The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment.
	Content *string `json:"content"`
}

CreateForCommitCommentReqBody is a request body for reactions/create-for-commit-comment

https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment

type CreateForCommitCommentResponse

type CreateForCommitCommentResponse struct {
	Data components.Reaction
	// contains filtered or unexported fields
}

CreateForCommitCommentResponse is a response for CreateForCommitComment

https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment

func CreateForCommitComment

func CreateForCommitComment(ctx context.Context, req *CreateForCommitCommentReq, opt ...requests.Option) (*CreateForCommitCommentResponse, error)

CreateForCommitComment performs requests for "reactions/create-for-commit-comment"

Create reaction for a commit comment.

POST /repos/{owner}/{repo}/comments/{comment_id}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment

func (*CreateForCommitCommentResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*CreateForCommitCommentResponse) ReadResponse

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

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

type CreateForIssueCommentReq

type CreateForIssueCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId   int64
	RequestBody CreateForIssueCommentReqBody

	/*
		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
}

CreateForIssueCommentReq is request data for Client.CreateForIssueComment

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment

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

func (*CreateForIssueCommentReq) HTTPRequest

func (r *CreateForIssueCommentReq) 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 (*CreateForIssueCommentReq) 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 CreateForIssueCommentReqBody

type CreateForIssueCommentReqBody struct {

	// The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment.
	Content *string `json:"content"`
}

CreateForIssueCommentReqBody is a request body for reactions/create-for-issue-comment

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment

type CreateForIssueCommentResponse

type CreateForIssueCommentResponse struct {
	Data components.Reaction
	// contains filtered or unexported fields
}

CreateForIssueCommentResponse is a response for CreateForIssueComment

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment

func CreateForIssueComment

func CreateForIssueComment(ctx context.Context, req *CreateForIssueCommentReq, opt ...requests.Option) (*CreateForIssueCommentResponse, error)

CreateForIssueComment performs requests for "reactions/create-for-issue-comment"

Create reaction for an issue comment.

POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment

func (*CreateForIssueCommentResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*CreateForIssueCommentResponse) ReadResponse

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

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

type CreateForIssueReq

type CreateForIssueReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	RequestBody CreateForIssueReqBody

	/*
		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
}

CreateForIssueReq is request data for Client.CreateForIssue

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue

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

func (*CreateForIssueReq) HTTPRequest

func (r *CreateForIssueReq) 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 (*CreateForIssueReq) 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 CreateForIssueReqBody

type CreateForIssueReqBody struct {

	// The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue.
	Content *string `json:"content"`
}

CreateForIssueReqBody is a request body for reactions/create-for-issue

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue

type CreateForIssueResponse

type CreateForIssueResponse struct {
	Data components.Reaction
	// contains filtered or unexported fields
}

CreateForIssueResponse is a response for CreateForIssue

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue

func CreateForIssue

func CreateForIssue(ctx context.Context, req *CreateForIssueReq, opt ...requests.Option) (*CreateForIssueResponse, error)

CreateForIssue performs requests for "reactions/create-for-issue"

Create reaction for an issue.

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

https://developer.github.com/v3/reactions/#create-reaction-for-an-issue

func (*CreateForIssueResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*CreateForIssueResponse) ReadResponse

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

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

type CreateForPullRequestReviewCommentReq

type CreateForPullRequestReviewCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId   int64
	RequestBody CreateForPullRequestReviewCommentReqBody

	/*
		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
}

CreateForPullRequestReviewCommentReq is request data for Client.CreateForPullRequestReviewComment

https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment

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

func (*CreateForPullRequestReviewCommentReq) HTTPRequest

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

func (*CreateForPullRequestReviewCommentReq) 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 CreateForPullRequestReviewCommentReqBody

type CreateForPullRequestReviewCommentReqBody struct {

	/*
		The [reaction type](https://developer.github.com/v3/reactions/#reaction-types)
		to add to the pull request review comment.
	*/
	Content *string `json:"content"`
}

CreateForPullRequestReviewCommentReqBody is a request body for reactions/create-for-pull-request-review-comment

https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment

type CreateForPullRequestReviewCommentResponse

type CreateForPullRequestReviewCommentResponse struct {
	Data components.Reaction
	// contains filtered or unexported fields
}

CreateForPullRequestReviewCommentResponse is a response for CreateForPullRequestReviewComment

https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment

func CreateForPullRequestReviewComment

CreateForPullRequestReviewComment performs requests for "reactions/create-for-pull-request-review-comment"

Create reaction for a pull request review comment.

POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment

func (*CreateForPullRequestReviewCommentResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CreateForPullRequestReviewCommentResponse) ReadResponse

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

type CreateForTeamDiscussionCommentInOrgReq

type CreateForTeamDiscussionCommentInOrgReq struct {
	Org string

	// team_slug parameter
	TeamSlug         string
	DiscussionNumber int64
	CommentNumber    int64
	RequestBody      CreateForTeamDiscussionCommentInOrgReqBody

	/*
		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
}

CreateForTeamDiscussionCommentInOrgReq is request data for Client.CreateForTeamDiscussionCommentInOrg

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment

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

func (*CreateForTeamDiscussionCommentInOrgReq) HTTPRequest

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

func (*CreateForTeamDiscussionCommentInOrgReq) 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 CreateForTeamDiscussionCommentInOrgReqBody

type CreateForTeamDiscussionCommentInOrgReqBody struct {

	// The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment.
	Content *string `json:"content"`
}

CreateForTeamDiscussionCommentInOrgReqBody is a request body for reactions/create-for-team-discussion-comment-in-org

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment

type CreateForTeamDiscussionCommentInOrgResponse

type CreateForTeamDiscussionCommentInOrgResponse struct {
	Data components.Reaction
	// contains filtered or unexported fields
}

CreateForTeamDiscussionCommentInOrgResponse is a response for CreateForTeamDiscussionCommentInOrg

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment

func CreateForTeamDiscussionCommentInOrg

CreateForTeamDiscussionCommentInOrg performs requests for "reactions/create-for-team-discussion-comment-in-org"

Create reaction for a team discussion comment.

POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment

func (*CreateForTeamDiscussionCommentInOrgResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CreateForTeamDiscussionCommentInOrgResponse) ReadResponse

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

type CreateForTeamDiscussionCommentLegacyReq

type CreateForTeamDiscussionCommentLegacyReq struct {
	TeamId           int64
	DiscussionNumber int64
	CommentNumber    int64
	RequestBody      CreateForTeamDiscussionCommentLegacyReqBody

	/*
		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
}

CreateForTeamDiscussionCommentLegacyReq is request data for Client.CreateForTeamDiscussionCommentLegacy

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy

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

func (*CreateForTeamDiscussionCommentLegacyReq) HTTPRequest

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

func (*CreateForTeamDiscussionCommentLegacyReq) 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 CreateForTeamDiscussionCommentLegacyReqBody

type CreateForTeamDiscussionCommentLegacyReqBody struct {

	// The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment.
	Content *string `json:"content"`
}

CreateForTeamDiscussionCommentLegacyReqBody is a request body for reactions/create-for-team-discussion-comment-legacy

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy

type CreateForTeamDiscussionCommentLegacyResponse

type CreateForTeamDiscussionCommentLegacyResponse struct {
	Data components.Reaction
	// contains filtered or unexported fields
}

CreateForTeamDiscussionCommentLegacyResponse is a response for CreateForTeamDiscussionCommentLegacy

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy

func CreateForTeamDiscussionCommentLegacy

CreateForTeamDiscussionCommentLegacy performs requests for "reactions/create-for-team-discussion-comment-legacy"

Create reaction for a team discussion comment (Legacy).

POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy

func (*CreateForTeamDiscussionCommentLegacyResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CreateForTeamDiscussionCommentLegacyResponse) ReadResponse

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

type CreateForTeamDiscussionInOrgReq

type CreateForTeamDiscussionInOrgReq struct {
	Org string

	// team_slug parameter
	TeamSlug         string
	DiscussionNumber int64
	RequestBody      CreateForTeamDiscussionInOrgReqBody

	/*
		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
}

CreateForTeamDiscussionInOrgReq is request data for Client.CreateForTeamDiscussionInOrg

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion

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

func (*CreateForTeamDiscussionInOrgReq) HTTPRequest

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

func (*CreateForTeamDiscussionInOrgReq) 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 CreateForTeamDiscussionInOrgReqBody

type CreateForTeamDiscussionInOrgReqBody struct {

	// The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion.
	Content *string `json:"content"`
}

CreateForTeamDiscussionInOrgReqBody is a request body for reactions/create-for-team-discussion-in-org

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion

type CreateForTeamDiscussionInOrgResponse

type CreateForTeamDiscussionInOrgResponse struct {
	Data components.Reaction
	// contains filtered or unexported fields
}

CreateForTeamDiscussionInOrgResponse is a response for CreateForTeamDiscussionInOrg

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion

func CreateForTeamDiscussionInOrg

CreateForTeamDiscussionInOrg performs requests for "reactions/create-for-team-discussion-in-org"

Create reaction for a team discussion.

POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion

func (*CreateForTeamDiscussionInOrgResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CreateForTeamDiscussionInOrgResponse) ReadResponse

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

type CreateForTeamDiscussionLegacyReq

type CreateForTeamDiscussionLegacyReq struct {
	TeamId           int64
	DiscussionNumber int64
	RequestBody      CreateForTeamDiscussionLegacyReqBody

	/*
		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
}

CreateForTeamDiscussionLegacyReq is request data for Client.CreateForTeamDiscussionLegacy

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy

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

func (*CreateForTeamDiscussionLegacyReq) HTTPRequest

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

func (*CreateForTeamDiscussionLegacyReq) 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 CreateForTeamDiscussionLegacyReqBody

type CreateForTeamDiscussionLegacyReqBody struct {

	// The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion.
	Content *string `json:"content"`
}

CreateForTeamDiscussionLegacyReqBody is a request body for reactions/create-for-team-discussion-legacy

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy

type CreateForTeamDiscussionLegacyResponse

type CreateForTeamDiscussionLegacyResponse struct {
	Data components.Reaction
	// contains filtered or unexported fields
}

CreateForTeamDiscussionLegacyResponse is a response for CreateForTeamDiscussionLegacy

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy

func CreateForTeamDiscussionLegacy

CreateForTeamDiscussionLegacy performs requests for "reactions/create-for-team-discussion-legacy"

Create reaction for a team discussion (Legacy).

POST /teams/{team_id}/discussions/{discussion_number}/reactions

https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy

func (*CreateForTeamDiscussionLegacyResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CreateForTeamDiscussionLegacyResponse) ReadResponse

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

type DeleteForCommitCommentReq

type DeleteForCommitCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId  int64
	ReactionId 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
}

DeleteForCommitCommentReq is request data for Client.DeleteForCommitComment

https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction

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

func (*DeleteForCommitCommentReq) HTTPRequest

func (r *DeleteForCommitCommentReq) 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 (*DeleteForCommitCommentReq) 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 DeleteForCommitCommentResponse

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

DeleteForCommitCommentResponse is a response for DeleteForCommitComment

https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction

func DeleteForCommitComment

func DeleteForCommitComment(ctx context.Context, req *DeleteForCommitCommentReq, opt ...requests.Option) (*DeleteForCommitCommentResponse, error)

DeleteForCommitComment performs requests for "reactions/delete-for-commit-comment"

Delete a commit comment reaction.

DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction

func (*DeleteForCommitCommentResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*DeleteForCommitCommentResponse) ReadResponse

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

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

type DeleteForIssueCommentReq

type DeleteForIssueCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId  int64
	ReactionId 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
}

DeleteForIssueCommentReq is request data for Client.DeleteForIssueComment

https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction

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

func (*DeleteForIssueCommentReq) HTTPRequest

func (r *DeleteForIssueCommentReq) 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 (*DeleteForIssueCommentReq) 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 DeleteForIssueCommentResponse

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

DeleteForIssueCommentResponse is a response for DeleteForIssueComment

https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction

func DeleteForIssueComment

func DeleteForIssueComment(ctx context.Context, req *DeleteForIssueCommentReq, opt ...requests.Option) (*DeleteForIssueCommentResponse, error)

DeleteForIssueComment performs requests for "reactions/delete-for-issue-comment"

Delete an issue comment reaction.

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

https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction

func (*DeleteForIssueCommentResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*DeleteForIssueCommentResponse) ReadResponse

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

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

type DeleteForIssueReq

type DeleteForIssueReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64
	ReactionId  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
}

DeleteForIssueReq is request data for Client.DeleteForIssue

https://developer.github.com/v3/reactions/#delete-an-issue-reaction

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

func (*DeleteForIssueReq) HTTPRequest

func (r *DeleteForIssueReq) 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 (*DeleteForIssueReq) 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 DeleteForIssueResponse

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

DeleteForIssueResponse is a response for DeleteForIssue

https://developer.github.com/v3/reactions/#delete-an-issue-reaction

func DeleteForIssue

func DeleteForIssue(ctx context.Context, req *DeleteForIssueReq, opt ...requests.Option) (*DeleteForIssueResponse, error)

DeleteForIssue performs requests for "reactions/delete-for-issue"

Delete an issue reaction.

DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-an-issue-reaction

func (*DeleteForIssueResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*DeleteForIssueResponse) ReadResponse

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

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

type DeleteForPullRequestCommentReq

type DeleteForPullRequestCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId  int64
	ReactionId 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
}

DeleteForPullRequestCommentReq is request data for Client.DeleteForPullRequestComment

https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction

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

func (*DeleteForPullRequestCommentReq) HTTPRequest

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

func (*DeleteForPullRequestCommentReq) 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 DeleteForPullRequestCommentResponse

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

DeleteForPullRequestCommentResponse is a response for DeleteForPullRequestComment

https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction

func DeleteForPullRequestComment

DeleteForPullRequestComment performs requests for "reactions/delete-for-pull-request-comment"

Delete a pull request comment reaction.

DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction

func (*DeleteForPullRequestCommentResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*DeleteForPullRequestCommentResponse) ReadResponse

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

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

type DeleteForTeamDiscussionCommentReq

type DeleteForTeamDiscussionCommentReq struct {
	Org string

	// team_slug parameter
	TeamSlug         string
	DiscussionNumber int64
	CommentNumber    int64
	ReactionId       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
}

DeleteForTeamDiscussionCommentReq is request data for Client.DeleteForTeamDiscussionComment

https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction

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

func (*DeleteForTeamDiscussionCommentReq) HTTPRequest

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

func (*DeleteForTeamDiscussionCommentReq) 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 DeleteForTeamDiscussionCommentResponse

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

DeleteForTeamDiscussionCommentResponse is a response for DeleteForTeamDiscussionComment

https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction

func DeleteForTeamDiscussionComment

DeleteForTeamDiscussionComment performs requests for "reactions/delete-for-team-discussion-comment"

Delete team discussion comment reaction.

DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction

func (*DeleteForTeamDiscussionCommentResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*DeleteForTeamDiscussionCommentResponse) ReadResponse

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

type DeleteForTeamDiscussionReq

type DeleteForTeamDiscussionReq struct {
	Org string

	// team_slug parameter
	TeamSlug         string
	DiscussionNumber int64
	ReactionId       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
}

DeleteForTeamDiscussionReq is request data for Client.DeleteForTeamDiscussion

https://developer.github.com/v3/reactions/#delete-team-discussion-reaction

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

func (*DeleteForTeamDiscussionReq) HTTPRequest

func (r *DeleteForTeamDiscussionReq) 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 (*DeleteForTeamDiscussionReq) 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 DeleteForTeamDiscussionResponse

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

DeleteForTeamDiscussionResponse is a response for DeleteForTeamDiscussion

https://developer.github.com/v3/reactions/#delete-team-discussion-reaction

func DeleteForTeamDiscussion

func DeleteForTeamDiscussion(ctx context.Context, req *DeleteForTeamDiscussionReq, opt ...requests.Option) (*DeleteForTeamDiscussionResponse, error)

DeleteForTeamDiscussion performs requests for "reactions/delete-for-team-discussion"

Delete team discussion reaction.

DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-team-discussion-reaction

func (*DeleteForTeamDiscussionResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*DeleteForTeamDiscussionResponse) ReadResponse

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

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

type DeleteLegacyReq

type DeleteLegacyReq struct {
	ReactionId 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
}

DeleteLegacyReq is request data for Client.DeleteLegacy

https://developer.github.com/v3/reactions/#delete-a-reaction-legacy

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

func (*DeleteLegacyReq) HTTPRequest

func (r *DeleteLegacyReq) 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 (*DeleteLegacyReq) Rel

func (r *DeleteLegacyReq) Rel(link string, resp *DeleteLegacyResponse) 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 DeleteLegacyResponse

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

DeleteLegacyResponse is a response for DeleteLegacy

https://developer.github.com/v3/reactions/#delete-a-reaction-legacy

func DeleteLegacy

func DeleteLegacy(ctx context.Context, req *DeleteLegacyReq, opt ...requests.Option) (*DeleteLegacyResponse, error)

DeleteLegacy performs requests for "reactions/delete-legacy"

Delete a reaction (Legacy).

DELETE /reactions/{reaction_id}

https://developer.github.com/v3/reactions/#delete-a-reaction-legacy

func (*DeleteLegacyResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*DeleteLegacyResponse) ReadResponse

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

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

type ListForCommitCommentReq

type ListForCommitCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId int64

	/*
		Returns a single [reaction
		type](https://developer.github.com/v3/reactions/#reaction-types). Omit this
		parameter to list all reactions to a commit comment.
	*/
	Content *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
}

ListForCommitCommentReq is request data for Client.ListForCommitComment

https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment

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

func (*ListForCommitCommentReq) HTTPRequest

func (r *ListForCommitCommentReq) 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 (*ListForCommitCommentReq) 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 ListForCommitCommentResponse

type ListForCommitCommentResponse struct {
	Data []components.Reaction
	// contains filtered or unexported fields
}

ListForCommitCommentResponse is a response for ListForCommitComment

https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment

func ListForCommitComment

func ListForCommitComment(ctx context.Context, req *ListForCommitCommentReq, opt ...requests.Option) (*ListForCommitCommentResponse, error)

ListForCommitComment performs requests for "reactions/list-for-commit-comment"

List reactions for a commit comment.

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

https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment

func (*ListForCommitCommentResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListForCommitCommentResponse) ReadResponse

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

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

type ListForIssueCommentReq

type ListForIssueCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId int64

	/*
		Returns a single [reaction
		type](https://developer.github.com/v3/reactions/#reaction-types). Omit this
		parameter to list all reactions to an issue comment.
	*/
	Content *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
}

ListForIssueCommentReq is request data for Client.ListForIssueComment

https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment

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

func (*ListForIssueCommentReq) HTTPRequest

func (r *ListForIssueCommentReq) 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 (*ListForIssueCommentReq) 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 ListForIssueCommentResponse

type ListForIssueCommentResponse struct {
	Data []components.Reaction
	// contains filtered or unexported fields
}

ListForIssueCommentResponse is a response for ListForIssueComment

https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment

func ListForIssueComment

func ListForIssueComment(ctx context.Context, req *ListForIssueCommentReq, opt ...requests.Option) (*ListForIssueCommentResponse, error)

ListForIssueComment performs requests for "reactions/list-for-issue-comment"

List reactions for an issue comment.

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

https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment

func (*ListForIssueCommentResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListForIssueCommentResponse) ReadResponse

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

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

type ListForIssueReq

type ListForIssueReq struct {
	Owner string
	Repo  string

	// issue_number parameter
	IssueNumber int64

	/*
		Returns a single [reaction
		type](https://developer.github.com/v3/reactions/#reaction-types). Omit this
		parameter to list all reactions to an issue.
	*/
	Content *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
}

ListForIssueReq is request data for Client.ListForIssue

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

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

func (*ListForIssueReq) HTTPRequest

func (r *ListForIssueReq) 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 (*ListForIssueReq) Rel

func (r *ListForIssueReq) Rel(link string, resp *ListForIssueResponse) 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 ListForIssueResponse

type ListForIssueResponse struct {
	Data []components.Reaction
	// contains filtered or unexported fields
}

ListForIssueResponse is a response for ListForIssue

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

func ListForIssue

func ListForIssue(ctx context.Context, req *ListForIssueReq, opt ...requests.Option) (*ListForIssueResponse, error)

ListForIssue performs requests for "reactions/list-for-issue"

List reactions for an issue.

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

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

func (*ListForIssueResponse) HTTPResponse

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

HTTPResponse returns the *http.Response

func (*ListForIssueResponse) ReadResponse

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

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

type ListForPullRequestReviewCommentReq

type ListForPullRequestReviewCommentReq struct {
	Owner string
	Repo  string

	// comment_id parameter
	CommentId int64

	/*
		Returns a single [reaction
		type](https://developer.github.com/v3/reactions/#reaction-types). Omit this
		parameter to list all reactions to a pull request review comment.
	*/
	Content *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
}

ListForPullRequestReviewCommentReq is request data for Client.ListForPullRequestReviewComment

https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment

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

func (*ListForPullRequestReviewCommentReq) HTTPRequest

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

func (*ListForPullRequestReviewCommentReq) 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 ListForPullRequestReviewCommentResponse

type ListForPullRequestReviewCommentResponse struct {
	Data []components.Reaction
	// contains filtered or unexported fields
}

ListForPullRequestReviewCommentResponse is a response for ListForPullRequestReviewComment

https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment

func ListForPullRequestReviewComment

ListForPullRequestReviewComment performs requests for "reactions/list-for-pull-request-review-comment"

List reactions for a pull request review comment.

GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment

func (*ListForPullRequestReviewCommentResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListForPullRequestReviewCommentResponse) ReadResponse

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

type ListForTeamDiscussionCommentInOrgReq

type ListForTeamDiscussionCommentInOrgReq struct {
	Org string

	// team_slug parameter
	TeamSlug         string
	DiscussionNumber int64
	CommentNumber    int64

	/*
		Returns a single [reaction
		type](https://developer.github.com/v3/reactions/#reaction-types). Omit this
		parameter to list all reactions to a team discussion comment.
	*/
	Content *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
}

ListForTeamDiscussionCommentInOrgReq is request data for Client.ListForTeamDiscussionCommentInOrg

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment

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

func (*ListForTeamDiscussionCommentInOrgReq) HTTPRequest

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

func (*ListForTeamDiscussionCommentInOrgReq) 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 ListForTeamDiscussionCommentInOrgResponse

type ListForTeamDiscussionCommentInOrgResponse struct {
	Data []components.Reaction
	// contains filtered or unexported fields
}

ListForTeamDiscussionCommentInOrgResponse is a response for ListForTeamDiscussionCommentInOrg

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment

func ListForTeamDiscussionCommentInOrg

ListForTeamDiscussionCommentInOrg performs requests for "reactions/list-for-team-discussion-comment-in-org"

List reactions for a team discussion comment.

GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment

func (*ListForTeamDiscussionCommentInOrgResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListForTeamDiscussionCommentInOrgResponse) ReadResponse

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

type ListForTeamDiscussionCommentLegacyReq

type ListForTeamDiscussionCommentLegacyReq struct {
	TeamId           int64
	DiscussionNumber int64
	CommentNumber    int64

	/*
		Returns a single [reaction
		type](https://developer.github.com/v3/reactions/#reaction-types). Omit this
		parameter to list all reactions to a team discussion comment.
	*/
	Content *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
}

ListForTeamDiscussionCommentLegacyReq is request data for Client.ListForTeamDiscussionCommentLegacy

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy

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

func (*ListForTeamDiscussionCommentLegacyReq) HTTPRequest

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

func (*ListForTeamDiscussionCommentLegacyReq) 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 ListForTeamDiscussionCommentLegacyResponse

type ListForTeamDiscussionCommentLegacyResponse struct {
	Data []components.Reaction
	// contains filtered or unexported fields
}

ListForTeamDiscussionCommentLegacyResponse is a response for ListForTeamDiscussionCommentLegacy

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy

func ListForTeamDiscussionCommentLegacy

ListForTeamDiscussionCommentLegacy performs requests for "reactions/list-for-team-discussion-comment-legacy"

List reactions for a team discussion comment (Legacy).

GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy

func (*ListForTeamDiscussionCommentLegacyResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListForTeamDiscussionCommentLegacyResponse) ReadResponse

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

type ListForTeamDiscussionInOrgReq

type ListForTeamDiscussionInOrgReq struct {
	Org string

	// team_slug parameter
	TeamSlug         string
	DiscussionNumber int64

	/*
		Returns a single [reaction
		type](https://developer.github.com/v3/reactions/#reaction-types). Omit this
		parameter to list all reactions to a team discussion.
	*/
	Content *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
}

ListForTeamDiscussionInOrgReq is request data for Client.ListForTeamDiscussionInOrg

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion

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

func (*ListForTeamDiscussionInOrgReq) HTTPRequest

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

func (*ListForTeamDiscussionInOrgReq) 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 ListForTeamDiscussionInOrgResponse

type ListForTeamDiscussionInOrgResponse struct {
	Data []components.Reaction
	// contains filtered or unexported fields
}

ListForTeamDiscussionInOrgResponse is a response for ListForTeamDiscussionInOrg

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion

func ListForTeamDiscussionInOrg

ListForTeamDiscussionInOrg performs requests for "reactions/list-for-team-discussion-in-org"

List reactions for a team discussion.

GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion

func (*ListForTeamDiscussionInOrgResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListForTeamDiscussionInOrgResponse) ReadResponse

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

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

type ListForTeamDiscussionLegacyReq

type ListForTeamDiscussionLegacyReq struct {
	TeamId           int64
	DiscussionNumber int64

	/*
		Returns a single [reaction
		type](https://developer.github.com/v3/reactions/#reaction-types). Omit this
		parameter to list all reactions to a team discussion.
	*/
	Content *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
}

ListForTeamDiscussionLegacyReq is request data for Client.ListForTeamDiscussionLegacy

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy

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

func (*ListForTeamDiscussionLegacyReq) HTTPRequest

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

func (*ListForTeamDiscussionLegacyReq) 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 ListForTeamDiscussionLegacyResponse

type ListForTeamDiscussionLegacyResponse struct {
	Data []components.Reaction
	// contains filtered or unexported fields
}

ListForTeamDiscussionLegacyResponse is a response for ListForTeamDiscussionLegacy

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy

func ListForTeamDiscussionLegacy

ListForTeamDiscussionLegacy performs requests for "reactions/list-for-team-discussion-legacy"

List reactions for a team discussion (Legacy).

GET /teams/{team_id}/discussions/{discussion_number}/reactions

https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy

func (*ListForTeamDiscussionLegacyResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListForTeamDiscussionLegacyResponse) ReadResponse

func (r *ListForTeamDiscussionLegacyResponse) 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