Skip to content

Commit

Permalink
updated namings
Browse files Browse the repository at this point in the history
  • Loading branch information
hassan-pullflow committed Nov 15, 2023
1 parent 5299e6f commit d0a6b89
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/pullRequestQuickActionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const PullRequestQuickActionsApi = {
}
},

refreshCodeReview: async ({
refresh: async ({
codeReviewId,
authToken,
context,
Expand Down
5 changes: 5 additions & 0 deletions src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export enum ActivePullRequestActions {
ApplyLabel = 'Add label',
AddAssignee = 'Add assignee',
RequestReview = 'Add reviewer',
Refresh = 'Refresh',
SetReminder = 'Set a reminder',
}
export type SpaceUser = {
Expand All @@ -118,6 +119,7 @@ export type ApiVariables =
| RequestReviewVariables
| CodeReviewApproveVariables
| CodeReviewRemindersVariables
| RefreshCodeReviewVariables
export type ThreadMessageVariables = {
body: string
parentMessageXid: string
Expand Down Expand Up @@ -163,3 +165,6 @@ export type RepoInfo = {
repoName?: string
branch?: string
}
export type RefreshCodeReviewVariables = {
codeReviewId: string
}
3 changes: 3 additions & 0 deletions src/views/quickpicks/pullRequestActionPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const getActionItems = (type: CodeReviewType) => [
label: ActivePullRequestActions.RequestReview,
},
{ label: ActivePullRequestActions.SetReminder },
{
label: ActivePullRequestActions.Refresh,
},
]

export const pullRequestActionPicker = ({
Expand Down

0 comments on commit d0a6b89

Please sign in to comment.