Skip to content
代码片段 群组 项目
  • Sebastian Ziebell's avatar
    413952ff
    Creating or updating a MR returns more informative status codes. · 413952ff
    Sebastian Ziebell 创作于
    Using the API library to create or update a merge request at the moment a 404 error is returned.
    This is fine when the merge request in question does not exist, but does not provide good
    information that for example a required attribute is missing.
    A status code of 400 (Bad request) is returned when creating or updating a merge request
    when either `source_branch` or `target_branch` is missing. A status code of 409 is returned
    when `source_branch` and `target_branch` are the same. Tests are added for these cases.
    413952ff
    历史
    Creating or updating a MR returns more informative status codes.
    Sebastian Ziebell 创作于
    Using the API library to create or update a merge request at the moment a 404 error is returned.
    This is fine when the merge request in question does not exist, but does not provide good
    information that for example a required attribute is missing.
    A status code of 400 (Bad request) is returned when creating or updating a merge request
    when either `source_branch` or `target_branch` is missing. A status code of 409 is returned
    when `source_branch` and `target_branch` are the same. Tests are added for these cases.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。