Project

General

Profile

Actions

Support #5527

open

API: expose human readable failure reason

Added by Daniel D over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
30.01.2019
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

Currently API returns something like this:

{
    "result": {
        "merge_ref": {
            "name": "pr-merge",
            "type": "book",
            "commit_id": "xxxxx"
        },
        "merge_commit_id": "xxxxx", //(same value as the commit_id)
        "executed": false,
        "possible": true,
        "failure_reason": 3
    },
    "id": "mergepr",
    "error": null
}

"failure_reason": 3 is cryptic, we have a translation layer for that already, so we just need tp expose failure_reason_explanation and read it !

No data to display

Actions

Also available in: Atom PDF