Handles interacting with GitLab inside a Dangerfile. Provides a few functions which wrap
mr_json and also
through a few standard functions to simplify your code.
The title of the Merge Request
The body text of the Merge Request
The username of the author of the Merge Request
The labels assigned to the Merge Request
The unified diff produced by GitLab for this MR see Unified diff
The branch to which the MR is going to be merged into
The branch to which the MR is going to be merged into.
The branch to which the MR is going to be merged from.
The base commit to which the MR is going to be merged as a parent
The head commit to which the MR is requesting to be merged from
The hash that represents the MR's JSON. See documentation for the structure here
Provides access to the GitLab API client used inside Danger. Making it easy to use the GitLab API inside a Dangerfile. See the gitlab gem's documentation for accessible methods.
Returns a list of HTML anchors for a file, or files in the head repository. An example would be:
<a href='https://gitlab.com/artsy/eigen/blob/561827e46167077b5e53515b4b7349b8ae04610b/file.txt'>file.txt</a>. It returns a string of multiple anchors if passed an array.
html_link (paths: String or Array
, full_path=true: Bool)String