files_from_gitlab_merge_request

Function files_from_gitlab_merge_request 

Source
pub fn files_from_gitlab_merge_request(
    extensions: Option<Vec<&str>>,
) -> Vec<PathBuf>
Expand description

Returns a vector of PathBuf containing all files changed in a GitLab merge request, as determined by the CI_API_V4_URL, CI_MERGE_REQUEST_PROJECT_ID, and CI_MERGE_REQUEST_IID environment variables1.

See https://docs.gitlab.com/api/merge_requests/#list-merge-request-diffs for more information


  1. See https://docs.gitlab.com/ci/variables/predefined_variables/ for more information about GitLab CI environment variables