Skip to content
Snippets Groups Projects

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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Created by: riyad

    nice :thumbsup:

    By Administrator on 2012-12-05T12:43:44 (imported from GitLab project)

    By Administrator on 2012-12-05T12:43:44 (imported from GitLab)

  • Created by: dzaporozhets

    Thank you for PR. I'd like to merge but it misses tests and docs. Can you please add it?

    By Administrator on 2013-02-13T17:29:50 (imported from GitLab project)

    By Administrator on 2013-02-13T17:29:50 (imported from GitLab)

  • Created by: dzaporozhets

    Closing this one since no test/docs added in 20 days.

    By Administrator on 2013-03-05T14:23:17 (imported from GitLab project)

    By Administrator on 2013-03-05T14:23:17 (imported from GitLab)

Please register or sign in to reply
Loading