Skip to content

Commit

Permalink
fix: incorrect noteable_type type for MergeRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 19, 2023
1 parent 52ef0e6 commit 4714db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/resources/MergeRequestNotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
} from '../infrastructure';

export interface MergeRequestNoteSchema extends NoteSchema {
noteable_type: 'Merge request';
noteable_type: 'MergeRequest';
}

export interface MergeRequestNotes<C extends boolean = false> extends ResourceNotes<C> {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/templates/ResourceNotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface NoteSchema extends Record<string, unknown> {
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: 'Issue' | 'Snippet' | 'Epic' | 'Commit' | 'Merge request';
noteable_type: 'Issue' | 'Snippet' | 'Epic' | 'Commit' | 'Merge request' | 'MergeRequest';
noteable_iid: number;
project_id: number;
resolvable: boolean;
Expand Down

0 comments on commit 4714db6

Please sign in to comment.