Documentation ¶
Index ¶
- type Client
- func (c Client) CreateForCommitComment(ctx context.Context, req *CreateForCommitCommentReq, opt ...requests.Option) (*CreateForCommitCommentResponse, error)
- func (c Client) CreateForIssue(ctx context.Context, req *CreateForIssueReq, opt ...requests.Option) (*CreateForIssueResponse, error)
- func (c Client) CreateForIssueComment(ctx context.Context, req *CreateForIssueCommentReq, opt ...requests.Option) (*CreateForIssueCommentResponse, error)
- func (c Client) CreateForPullRequestReviewComment(ctx context.Context, req *CreateForPullRequestReviewCommentReq, ...) (*CreateForPullRequestReviewCommentResponse, error)
- func (c Client) CreateForTeamDiscussionCommentInOrg(ctx context.Context, req *CreateForTeamDiscussionCommentInOrgReq, ...) (*CreateForTeamDiscussionCommentInOrgResponse, error)
- func (c Client) CreateForTeamDiscussionCommentLegacy(ctx context.Context, req *CreateForTeamDiscussionCommentLegacyReq, ...) (*CreateForTeamDiscussionCommentLegacyResponse, error)
- func (c Client) CreateForTeamDiscussionInOrg(ctx context.Context, req *CreateForTeamDiscussionInOrgReq, ...) (*CreateForTeamDiscussionInOrgResponse, error)
- func (c Client) CreateForTeamDiscussionLegacy(ctx context.Context, req *CreateForTeamDiscussionLegacyReq, ...) (*CreateForTeamDiscussionLegacyResponse, error)
- func (c Client) DeleteForCommitComment(ctx context.Context, req *DeleteForCommitCommentReq, opt ...requests.Option) (*DeleteForCommitCommentResponse, error)
- func (c Client) DeleteForIssue(ctx context.Context, req *DeleteForIssueReq, opt ...requests.Option) (*DeleteForIssueResponse, error)
- func (c Client) DeleteForIssueComment(ctx context.Context, req *DeleteForIssueCommentReq, opt ...requests.Option) (*DeleteForIssueCommentResponse, error)
- func (c Client) DeleteForPullRequestComment(ctx context.Context, req *DeleteForPullRequestCommentReq, ...) (*DeleteForPullRequestCommentResponse, error)
- func (c Client) DeleteForTeamDiscussion(ctx context.Context, req *DeleteForTeamDiscussionReq, opt ...requests.Option) (*DeleteForTeamDiscussionResponse, error)
- func (c Client) DeleteForTeamDiscussionComment(ctx context.Context, req *DeleteForTeamDiscussionCommentReq, ...) (*DeleteForTeamDiscussionCommentResponse, error)
- func (c Client) DeleteLegacy(ctx context.Context, req *DeleteLegacyReq, opt ...requests.Option) (*DeleteLegacyResponse, error)
- func (c Client) ListForCommitComment(ctx context.Context, req *ListForCommitCommentReq, opt ...requests.Option) (*ListForCommitCommentResponse, error)
- func (c Client) ListForIssue(ctx context.Context, req *ListForIssueReq, opt ...requests.Option) (*ListForIssueResponse, error)
- func (c Client) ListForIssueComment(ctx context.Context, req *ListForIssueCommentReq, opt ...requests.Option) (*ListForIssueCommentResponse, error)
- func (c Client) ListForPullRequestReviewComment(ctx context.Context, req *ListForPullRequestReviewCommentReq, ...) (*ListForPullRequestReviewCommentResponse, error)
- func (c Client) ListForTeamDiscussionCommentInOrg(ctx context.Context, req *ListForTeamDiscussionCommentInOrgReq, ...) (*ListForTeamDiscussionCommentInOrgResponse, error)
- func (c Client) ListForTeamDiscussionCommentLegacy(ctx context.Context, req *ListForTeamDiscussionCommentLegacyReq, ...) (*ListForTeamDiscussionCommentLegacyResponse, error)
- func (c Client) ListForTeamDiscussionInOrg(ctx context.Context, req *ListForTeamDiscussionInOrgReq, ...) (*ListForTeamDiscussionInOrgResponse, error)
- func (c Client) ListForTeamDiscussionLegacy(ctx context.Context, req *ListForTeamDiscussionLegacyReq, ...) (*ListForTeamDiscussionLegacyResponse, error)
- type CreateForCommitCommentReq
- type CreateForCommitCommentReqBody
- type CreateForCommitCommentResponse
- type CreateForIssueCommentReq
- type CreateForIssueCommentReqBody
- type CreateForIssueCommentResponse
- type CreateForIssueReq
- type CreateForIssueReqBody
- type CreateForIssueResponse
- type CreateForPullRequestReviewCommentReq
- type CreateForPullRequestReviewCommentReqBody
- type CreateForPullRequestReviewCommentResponse
- type CreateForTeamDiscussionCommentInOrgReq
- type CreateForTeamDiscussionCommentInOrgReqBody
- type CreateForTeamDiscussionCommentInOrgResponse
- type CreateForTeamDiscussionCommentLegacyReq
- type CreateForTeamDiscussionCommentLegacyReqBody
- type CreateForTeamDiscussionCommentLegacyResponse
- type CreateForTeamDiscussionInOrgReq
- type CreateForTeamDiscussionInOrgReqBody
- type CreateForTeamDiscussionInOrgResponse
- type CreateForTeamDiscussionLegacyReq
- type CreateForTeamDiscussionLegacyReqBody
- type CreateForTeamDiscussionLegacyResponse
- type DeleteForCommitCommentReq
- type DeleteForCommitCommentResponse
- type DeleteForIssueCommentReq
- type DeleteForIssueCommentResponse
- type DeleteForIssueReq
- type DeleteForIssueResponse
- type DeleteForPullRequestCommentReq
- type DeleteForPullRequestCommentResponse
- type DeleteForTeamDiscussionCommentReq
- type DeleteForTeamDiscussionCommentResponse
- type DeleteForTeamDiscussionReq
- type DeleteForTeamDiscussionResponse
- type DeleteLegacyReq
- type DeleteLegacyResponse
- type ListForCommitCommentReq
- type ListForCommitCommentResponse
- type ListForIssueCommentReq
- type ListForIssueCommentResponse
- type ListForIssueReq
- type ListForIssueResponse
- type ListForPullRequestReviewCommentReq
- type ListForPullRequestReviewCommentResponse
- type ListForTeamDiscussionCommentInOrgReq
- type ListForTeamDiscussionCommentInOrgResponse
- type ListForTeamDiscussionCommentLegacyReq
- type ListForTeamDiscussionCommentLegacyResponse
- type ListForTeamDiscussionInOrgReq
- type ListForTeamDiscussionInOrgResponse
- type ListForTeamDiscussionLegacyReq
- type ListForTeamDiscussionLegacyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a set of options to apply to requests
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 ¶
func (c Client) CreateForPullRequestReviewComment(ctx context.Context, req *CreateForPullRequestReviewCommentReq, opt ...requests.Option) (*CreateForPullRequestReviewCommentResponse, error)
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 ¶
func (c Client) CreateForTeamDiscussionCommentInOrg(ctx context.Context, req *CreateForTeamDiscussionCommentInOrgReq, opt ...requests.Option) (*CreateForTeamDiscussionCommentInOrgResponse, error)
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 ¶
func (c Client) CreateForTeamDiscussionCommentLegacy(ctx context.Context, req *CreateForTeamDiscussionCommentLegacyReq, opt ...requests.Option) (*CreateForTeamDiscussionCommentLegacyResponse, error)
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 ¶
func (c Client) CreateForTeamDiscussionInOrg(ctx context.Context, req *CreateForTeamDiscussionInOrgReq, opt ...requests.Option) (*CreateForTeamDiscussionInOrgResponse, error)
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 ¶
func (c Client) CreateForTeamDiscussionLegacy(ctx context.Context, req *CreateForTeamDiscussionLegacyReq, opt ...requests.Option) (*CreateForTeamDiscussionLegacyResponse, error)
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 ¶
func (c Client) DeleteForPullRequestComment(ctx context.Context, req *DeleteForPullRequestCommentReq, opt ...requests.Option) (*DeleteForPullRequestCommentResponse, error)
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 ¶
func (c Client) DeleteForTeamDiscussionComment(ctx context.Context, req *DeleteForTeamDiscussionCommentReq, opt ...requests.Option) (*DeleteForTeamDiscussionCommentResponse, error)
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 ¶
func (c Client) ListForPullRequestReviewComment(ctx context.Context, req *ListForPullRequestReviewCommentReq, opt ...requests.Option) (*ListForPullRequestReviewCommentResponse, error)
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 ¶
func (c Client) ListForTeamDiscussionCommentInOrg(ctx context.Context, req *ListForTeamDiscussionCommentInOrgReq, opt ...requests.Option) (*ListForTeamDiscussionCommentInOrgResponse, error)
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 ¶
func (c Client) ListForTeamDiscussionCommentLegacy(ctx context.Context, req *ListForTeamDiscussionCommentLegacyReq, opt ...requests.Option) (*ListForTeamDiscussionCommentLegacyResponse, error)
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 ¶
func (c Client) ListForTeamDiscussionLegacy(ctx context.Context, req *ListForTeamDiscussionLegacyReq, opt ...requests.Option) (*ListForTeamDiscussionLegacyResponse, error)
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 ¶
func (r *CreateForCommitCommentReq) Rel(link string, resp *CreateForCommitCommentResponse) 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 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 ¶
func (r *CreateForIssueCommentReq) Rel(link string, resp *CreateForIssueCommentResponse) 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 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 ¶
func (r *CreateForIssueReq) Rel(link string, resp *CreateForIssueResponse) 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 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 ¶
func (r *CreateForPullRequestReviewCommentReq) 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 (*CreateForPullRequestReviewCommentReq) Rel ¶
func (r *CreateForPullRequestReviewCommentReq) Rel(link string, resp *CreateForPullRequestReviewCommentResponse) 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 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 ¶
func CreateForPullRequestReviewComment(ctx context.Context, req *CreateForPullRequestReviewCommentReq, opt ...requests.Option) (*CreateForPullRequestReviewCommentResponse, error)
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 ¶
func (r *CreateForPullRequestReviewCommentResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateForPullRequestReviewCommentResponse) ReadResponse ¶
func (r *CreateForPullRequestReviewCommentResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *CreateForTeamDiscussionCommentInOrgReq) 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 (*CreateForTeamDiscussionCommentInOrgReq) Rel ¶
func (r *CreateForTeamDiscussionCommentInOrgReq) Rel(link string, resp *CreateForTeamDiscussionCommentInOrgResponse) 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 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 ¶
func CreateForTeamDiscussionCommentInOrg(ctx context.Context, req *CreateForTeamDiscussionCommentInOrgReq, opt ...requests.Option) (*CreateForTeamDiscussionCommentInOrgResponse, error)
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 ¶
func (r *CreateForTeamDiscussionCommentInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateForTeamDiscussionCommentInOrgResponse) ReadResponse ¶
func (r *CreateForTeamDiscussionCommentInOrgResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *CreateForTeamDiscussionCommentLegacyReq) 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 (*CreateForTeamDiscussionCommentLegacyReq) Rel ¶
func (r *CreateForTeamDiscussionCommentLegacyReq) Rel(link string, resp *CreateForTeamDiscussionCommentLegacyResponse) 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 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 ¶
func CreateForTeamDiscussionCommentLegacy(ctx context.Context, req *CreateForTeamDiscussionCommentLegacyReq, opt ...requests.Option) (*CreateForTeamDiscussionCommentLegacyResponse, error)
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 ¶
func (r *CreateForTeamDiscussionCommentLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateForTeamDiscussionCommentLegacyResponse) ReadResponse ¶
func (r *CreateForTeamDiscussionCommentLegacyResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *CreateForTeamDiscussionInOrgReq) 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 (*CreateForTeamDiscussionInOrgReq) Rel ¶
func (r *CreateForTeamDiscussionInOrgReq) Rel(link string, resp *CreateForTeamDiscussionInOrgResponse) 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 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 ¶
func CreateForTeamDiscussionInOrg(ctx context.Context, req *CreateForTeamDiscussionInOrgReq, opt ...requests.Option) (*CreateForTeamDiscussionInOrgResponse, error)
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 ¶
func (r *CreateForTeamDiscussionInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateForTeamDiscussionInOrgResponse) ReadResponse ¶
func (r *CreateForTeamDiscussionInOrgResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *CreateForTeamDiscussionLegacyReq) 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 (*CreateForTeamDiscussionLegacyReq) Rel ¶
func (r *CreateForTeamDiscussionLegacyReq) Rel(link string, resp *CreateForTeamDiscussionLegacyResponse) 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 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 ¶
func CreateForTeamDiscussionLegacy(ctx context.Context, req *CreateForTeamDiscussionLegacyReq, opt ...requests.Option) (*CreateForTeamDiscussionLegacyResponse, error)
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 ¶
func (r *CreateForTeamDiscussionLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateForTeamDiscussionLegacyResponse) ReadResponse ¶
func (r *CreateForTeamDiscussionLegacyResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *DeleteForCommitCommentReq) Rel(link string, resp *DeleteForCommitCommentResponse) 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 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 ¶
func (r *DeleteForIssueCommentReq) Rel(link string, resp *DeleteForIssueCommentResponse) 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 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 ¶
func (r *DeleteForIssueReq) Rel(link string, resp *DeleteForIssueResponse) 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 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 ¶
func (r *DeleteForPullRequestCommentReq) 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 (*DeleteForPullRequestCommentReq) Rel ¶
func (r *DeleteForPullRequestCommentReq) Rel(link string, resp *DeleteForPullRequestCommentResponse) 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 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 ¶
func DeleteForPullRequestComment(ctx context.Context, req *DeleteForPullRequestCommentReq, opt ...requests.Option) (*DeleteForPullRequestCommentResponse, error)
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 ¶
func (r *DeleteForPullRequestCommentResponse) HTTPResponse() *http.Response
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 ¶
func (r *DeleteForTeamDiscussionCommentReq) 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 (*DeleteForTeamDiscussionCommentReq) Rel ¶
func (r *DeleteForTeamDiscussionCommentReq) Rel(link string, resp *DeleteForTeamDiscussionCommentResponse) 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 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 ¶
func DeleteForTeamDiscussionComment(ctx context.Context, req *DeleteForTeamDiscussionCommentReq, opt ...requests.Option) (*DeleteForTeamDiscussionCommentResponse, error)
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 ¶
func (r *DeleteForTeamDiscussionCommentResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteForTeamDiscussionCommentResponse) ReadResponse ¶
func (r *DeleteForTeamDiscussionCommentResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *DeleteForTeamDiscussionReq) Rel(link string, resp *DeleteForTeamDiscussionResponse) 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 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 ¶
func (r *ListForCommitCommentReq) Rel(link string, resp *ListForCommitCommentResponse) 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 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 ¶
func (r *ListForIssueCommentReq) Rel(link string, resp *ListForIssueCommentResponse) 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 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 ¶
func (r *ListForPullRequestReviewCommentReq) 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 (*ListForPullRequestReviewCommentReq) Rel ¶
func (r *ListForPullRequestReviewCommentReq) Rel(link string, resp *ListForPullRequestReviewCommentResponse) 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 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 ¶
func ListForPullRequestReviewComment(ctx context.Context, req *ListForPullRequestReviewCommentReq, opt ...requests.Option) (*ListForPullRequestReviewCommentResponse, error)
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 ¶
func (r *ListForPullRequestReviewCommentResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListForPullRequestReviewCommentResponse) ReadResponse ¶
func (r *ListForPullRequestReviewCommentResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *ListForTeamDiscussionCommentInOrgReq) 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 (*ListForTeamDiscussionCommentInOrgReq) Rel ¶
func (r *ListForTeamDiscussionCommentInOrgReq) Rel(link string, resp *ListForTeamDiscussionCommentInOrgResponse) 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 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 ¶
func ListForTeamDiscussionCommentInOrg(ctx context.Context, req *ListForTeamDiscussionCommentInOrgReq, opt ...requests.Option) (*ListForTeamDiscussionCommentInOrgResponse, error)
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 ¶
func (r *ListForTeamDiscussionCommentInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListForTeamDiscussionCommentInOrgResponse) ReadResponse ¶
func (r *ListForTeamDiscussionCommentInOrgResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *ListForTeamDiscussionCommentLegacyReq) 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 (*ListForTeamDiscussionCommentLegacyReq) Rel ¶
func (r *ListForTeamDiscussionCommentLegacyReq) Rel(link string, resp *ListForTeamDiscussionCommentLegacyResponse) 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 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 ¶
func ListForTeamDiscussionCommentLegacy(ctx context.Context, req *ListForTeamDiscussionCommentLegacyReq, opt ...requests.Option) (*ListForTeamDiscussionCommentLegacyResponse, error)
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 ¶
func (r *ListForTeamDiscussionCommentLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListForTeamDiscussionCommentLegacyResponse) ReadResponse ¶
func (r *ListForTeamDiscussionCommentLegacyResponse) ReadResponse(resp *http.Response) error
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 ¶
func (r *ListForTeamDiscussionInOrgReq) 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 (*ListForTeamDiscussionInOrgReq) Rel ¶
func (r *ListForTeamDiscussionInOrgReq) Rel(link string, resp *ListForTeamDiscussionInOrgResponse) 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 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 ¶
func 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
func (*ListForTeamDiscussionInOrgResponse) HTTPResponse ¶
func (r *ListForTeamDiscussionInOrgResponse) HTTPResponse() *http.Response
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 ¶
func (r *ListForTeamDiscussionLegacyReq) 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 (*ListForTeamDiscussionLegacyReq) Rel ¶
func (r *ListForTeamDiscussionLegacyReq) Rel(link string, resp *ListForTeamDiscussionLegacyResponse) 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 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 ¶
func ListForTeamDiscussionLegacy(ctx context.Context, req *ListForTeamDiscussionLegacyReq, opt ...requests.Option) (*ListForTeamDiscussionLegacyResponse, error)
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 ¶
func (r *ListForTeamDiscussionLegacyResponse) HTTPResponse() *http.Response
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.