Add map for supported noteable types
This commit is contained in:
parent
1db4ea20c6
commit
388f43b611
1 changed files with 6 additions and 0 deletions
|
@ -14,3 +14,9 @@ export const EPIC_NOTEABLE_TYPE = 'epic';
|
||||||
export const MERGE_REQUEST_NOTEABLE_TYPE = 'merge_request';
|
export const MERGE_REQUEST_NOTEABLE_TYPE = 'merge_request';
|
||||||
export const UNRESOLVE_NOTE_METHOD_NAME = 'delete';
|
export const UNRESOLVE_NOTE_METHOD_NAME = 'delete';
|
||||||
export const RESOLVE_NOTE_METHOD_NAME = 'post';
|
export const RESOLVE_NOTE_METHOD_NAME = 'post';
|
||||||
|
|
||||||
|
export const NOTEABLE_TYPE_MAPPING = {
|
||||||
|
Issue: ISSUE_NOTEABLE_TYPE,
|
||||||
|
MergeRequest: MERGE_REQUEST_NOTEABLE_TYPE,
|
||||||
|
Epic: EPIC_NOTEABLE_TYPE,
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue