Updates an existing merge request. You can change the target branch, title, or even close the MR.
Merge requests API
Authentication is required for API calls to non-public information.
The approvals_before_merge attribute has been deprecated, and is scheduled to be removed in API v5 in favor of the Merge request approvals API.
List merge requests
Get all merge requests the authenticated user has access to. By default it returns only merge requests created by the current user. To get all merge requests, use parameter scope=all .
The state parameter can be used to get only merge requests with a given state ( opened , closed , locked , or merged ) or all of them ( all ). It should be noted that when searching by locked it mostly returns no results as it is a short-lived, transitional state. The pagination parameters page and per_page can be used to restrict the list of merge requests.
GET /merge_requests GET /merge_requests?state=opened GET /merge_requests?state=all GET /merge_requests?milestone=release GET /merge_requests?labels=bug,reproduced GET /merge_requests?author_id=5 GET /merge_requests?author_username=gitlab-bot GET /merge_requests?my_reaction_emoji=star GET /merge_requests?scope=assigned_to_me GET /merge_requests?search=foo&in=title
- Introduced in GitLab 13.0, listing merge requests may not proactively update merge_status (which also affects the has_conflicts ), as this can be an expensive operation. If you need the value of these fields from this endpoint, set the with_merge_status_recheck parameter to true in the query.
- For notes on merge request object fields, read Single merge request response notes.
List project merge requests
Get all merge requests for this project. The state parameter can be used to get only merge requests with a given state ( opened , closed , locked , or merged ) or all of them ( all ). The pagination parameters page and per_page can be used to restrict the list of merge requests.
GET /projects/:id/merge_requests GET /projects/:id/merge_requests?state=opened GET /projects/:id/merge_requests?state=all GET /projects/:id/merge_requests?iids[]=42&iids[]=43 GET /projects/:id/merge_requests?milestone=release GET /projects/:id/merge_requests?labels=bug,reproduced GET /projects/:id/merge_requests?my_reaction_emoji=star
project_id represents the ID of the project where the merge request resides. project_id always equals target_project_id .
In the case of a merge request from the same project, source_project_id , target_project_id and project_id are the same. In the case of a merge request from a fork, target_project_id and project_id are the same and source_project_id is the fork project’s ID.
For important notes on response data, read Merge requests list response notes.
Saved searches
Cancel Create saved search
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Ruby gem to merge Cucumber JSON reports and build mobile-friendly HTML Test Report, JSON report and retry file.
License
rajatthareja/ReportBuilder
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch branches/tags
Branches Tags
Could not load branches
Nothing to show
Could not load tags
Nothing to show
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Cancel Create
Code
- Local
- Codespaces
HTTPS GitHub CLI
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
View code
Ruby gem to merge Cucumber JSON reports and build mobile-friendly HTML Test Report, JSON report and retry file.
gem install report_builder
- RDoc documentation available on RubyDoc.info
- Source code available on GitHub
Note: Works with cucumber(>= 2.1.0) test results in JSON format.
Config Options:
Option | Type | Default | Values |
---|---|---|---|
json_path/input_path | [String]/[Array]/[Hash] | (current directory) | input json files path / array of json files or path / hash of json files or path |
report_path | [String] | ‘test_report’ | reports output file path with file name without extension |
json_report_path | [String] | (report_path) | json report output file path with file name without extension |
html_report_path | [String] | (report_path) | html report output file path with file name without extension |
retry_report_path | [String] | (report_path) | retry report output file path with file name without extension |
report_types | [Array] | [:html] | :json, :html, :retry (output file types) |
report_title | [String] | ‘Test Results’ | report and html title |
include_images | [Boolean] | true | true / false (If false, the size of HTML report is reduced by excluding embedded images) |
voice_commands | [Boolean] | false | true / false (Enable voice commands for easy navigation and search) |
additional_info | [Hash] | <> | additional info for report summary |
additional_css | [String] | nil | additional CSS string or CSS file path or CSS file url for customizing html report |
additional_js | [String] | nil | additional JS string or JS file path or JS file url for customizing html report |
color | [String] | brown | report color, Ex: indigo, cyan, purple, grey, lime etc. |
Code Examples:
require 'report_builder' # Ex 1: ReportBuilder.configure do |config| config.input_path = 'results/cucumber_json' config.report_path = 'my_test_report' config.report_types = [:retry, :html] config.report_title = 'My Test Results' config.additional_info = browser: 'Chrome', environment: 'Stage 5'> end ReportBuilder.build_report # Ex 2: ReportBuilder.input_path = 'results/cucumber_json' ReportBuilder.report_path = 'my_test_report' ReportBuilder.report_types = [:retry, :html] ReportBuilder.report_title = 'My Test Results' ReportBuilder.additional_info = Browser: 'Chrome', Environment: 'Stage 5'> ReportBuilder.build_report # Ex 3: options = input_path: 'results/cucumber_json', report_path: 'my_test_report', report_types: ['retry', 'html'], report_title: 'My Test Results', additional_info: 'Browser' => 'Chrome', 'Environment' => 'Stage 5'> > ReportBuilder.build_report options # Ex 4: ReportBuilder.input_path = 'results/cucumber_json' ReportBuilder.configure do |config| config.report_path = 'my_test_report' config.report_types = [:json, :html] end options = report_title: 'My Test Results' > ReportBuilder.build_report options
Grouped Features Report Example:
ReportBuilder.configure do |config| config.input_path = 'Group A' => ['path/of/json/files/dir1', 'path/of/json/files/dir2'], 'Group B' => ['path/of/json/file1', 'path/of/json/file2'], 'Group C' => 'path/of/json/files/dir'> end ReportBuilder.build_report
CLI Options:
Option | Values | Explanation |
---|---|---|
-s, –source | x,y,z | List of input json path or files |
-o, –out | [PATH]NAME | Reports path with name without extension |
–json_out | [PATH]NAME | JSON report path with name without extension |
–html_out | [PATH]NAME | HTML report path with name without extension |
–retry_out | [PATH]NAME | Retry report path with name without extension |
-f, –format | x,y,z | List of report format – html,json,retry |
–[no-]images | Reduce HTML report size by excluding embedded images | |
-T, –title | TITLE | Report title |
-c, –color | COLOR | Report color |
-I, –info | a:x,b:y,c:z | List of additional info about test – key:value |
–css | CSS/PATH/URL | Additional CSS string or CSS file path or CSS file url for customizing html report |
–js | JS/PATH/URL | Additional JS string or JS file path or JS file url for customizing html report |
-vc, –voice_commands | Enable voice commands for easy navigation and search | |
-h, –help | Show available command line switches | |
-v, –version | Show gem version |
CLI Example:
report_builder report_builder -s 'path/of/json/files/dir' report_builder -s 'path/of/json/files/dir' -o my_report_file
Hook Example:
require 'report_builder' at_exit do ReportBuilder.configure do |config| config.input_path = 'results/cucumber_json' config.report_path = 'results/report' end ReportBuilder.build_report end
Voice Commands:
Use voice commands for easy navigation and search
- show ( overview, features, summary, errors )
- search