Skip to content

Expose to API: merge_request.state, merge_request.commits

Created by: doublerebel

This exposes merge requests commits and state to the API, so that the merge-request tool Pulley-GitLab can be used to make pretty merge commits. Here is an example of a commit made with Pulley.

I have modified John Resig's original Pulley for Github to make it compatible with these GitLab API changes. I have published Pulley-GitLab to npm, so feel free to try it out.

One of the features of Pulley/Pulley-Gitlab is supporting other Issue Trackers, a feature I desire and use. Here is my working pulley-gitlab.json as example:

{
    "interactive": false,
    "remote": "gitlab",
    "server": "http://gitlab.myhost.com",
    "repos": {
        "repo_name": "http://redmine.myhost.com/redmine/doublerebel/issues/"
    }
}

Note that unlike Pulley, Pulley-GitLab looks for its config file in the current project directory, rather in the node_modules install directory.

GitLab has been very helpful for my work, so I hope this helps others. I'm much more experienced with JS than Ruby, perhaps it would be best for someone more familiar with the project to write the appropriate tests for these minor changes.

Thanks!

Charles

Merge request reports

Loading