You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attribute detail_merge_status in MergeRequestSchemahere is inconsistent with what's available in Gitlab's MergeRequest API documentation
Steps to reproduce
When using gitbreaker in code, the following switch statement will not work even though need_rebase is a legitimate response from gitlab API for the field detailed_merge_status.
constmergeRequestDetail: MergeRequestSchema=awaitgitlabClient.MergeRequests.show(projectId,mergeRequestIid);switch(mergeRequestDetail.detailed_merge_status){// ...case'need_rebase':
// rebase logicbreak;// ...}
Expected behaviour
I expect to be able to use all available statuses in my code, for example, I should be able to write logic for the following case
switch(mergeRequestDetail.detailed_merge_status){// ...case'need_rebase':
// rebase logicbreak;// ...}
Actual behaviour
The following logic gives an error because need_rebase is not a literal in detailed_merge_statushere
switch(mergeRequestDetail.detailed_merge_status){// ...case'need_rebase':
// rebase logicbreak;// ...}
Description
The attribute
detail_merge_status
inMergeRequestSchema
here is inconsistent with what's available in Gitlab's MergeRequest API documentationSteps to reproduce
When using gitbreaker in code, the following switch statement will not work even though
need_rebase
is a legitimate response from gitlab API for the fielddetailed_merge_status
.Expected behaviour
I expect to be able to use all available statuses in my code, for example, I should be able to write logic for the following case
Actual behaviour
The following logic gives an error because
need_rebase
is not a literal indetailed_merge_status
hereSee screenshot below
Possible fixes
Add the missing status in the literal union here
Full list of available statuses here
Checklist
The text was updated successfully, but these errors were encountered: