Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

feat(functions): #1589 added PullRequestReviewCommentEvent #1591

Open
wants to merge 3 commits into
base: v0.11.9
Choose a base branch
from

Conversation

webkhushboo
Copy link
Contributor

closes #1589

Notes

A summary of what was achieved in this PR

  • API: Handled PullReqeustReviewCommentEvent in webhook response type
  • UI: Show realtime updated review comments count.

image


switch (this.action) {
case 'created':
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ not needed in the switch statement

}

private updated(repository: DocumentData, number: number): void {
const foundIndex: number = repository.pullRequests.findIndex((elem: GitHubPullRequestModel) => elem.uid === this.pull_request.id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be done with es6

export class PullRequestReviewCommentEventModel implements PullRequestReviewCommentEventInput {
action: Action;
comment: Comment;
pull_request: PullRequest;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use camelcase in our models

node_id: number;
diff_hunk: string;
path: User;
postition: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map webhook PullRequestReviewCommentEvent
2 participants