steampipe plugin install theapsgroup/gitlab

Table: gitlab_merge_request_change

The gitlab_merge_request_change table can be used to view all changes associated with a single merge request.

However, you must specify both an iid of a merge request as well as it's project_id in the where or join clause.

Examples

Obtain all changes associated to a specific merge request

select
old_path,
new_path,
a_mode,
b_mode,
diff,
new_file,
renamed_file,
deleted_file
from
gitlab_merge_request_change
where
iid = 123
and project_id = 42;

Schema for gitlab_merge_request_change

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
a_modetextThe a mode associated with the change.
b_modetextThe b mode associated with the change.
deleted_filebooleanIndicates if the file has been deleted.
difftextThe change diff.
iidbigint=Internal ID of the merge request to which the change belongs.
new_filebooleanIndicates if it is a new file added.
new_pathtextNew path of the file.
old_pathtextOld path of the file.
project_idbigint=ID of the project to which the merge request belongs.
renamed_filebooleanIndicates if the file has been renamed.