gitlab_mr_check 1.4.1__tar.gz → 1.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/PKG-INFO +2 -2
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/README.md +1 -1
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/pyproject.toml +2 -2
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/src/gitlab_mr_check/gitlab_mr_check.py +4 -4
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/LICENSE +0 -0
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/src/gitlab_mr_check/__init__.py +0 -0
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/src/gitlab_mr_check/cli.py +0 -0
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/src/gitlab_mr_check/helpers/__init__.py +0 -0
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/src/gitlab_mr_check/helpers/config.py +0 -0
- {gitlab_mr_check-1.4.1 → gitlab_mr_check-1.4.2}/src/gitlab_mr_check/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitlab_mr_check
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: GitLab Merge Request 4-Eyes Approval Audit Tool
|
|
5
5
|
Author: Yorick Hoorneman
|
|
6
6
|
Author-email: Yorick Hoorneman <yhoorneman@schubergphilis.com>
|
|
@@ -30,7 +30,7 @@ Description-Content-Type: text/markdown
|
|
|
30
30
|
[](https://conventionalcommits.org)
|
|
31
31
|
[](https://keepachangelog.com/en/1.1.0/)
|
|
32
32
|
[]()
|
|
33
|
-
[](https://coverage.readthedocs.io/)
|
|
34
34
|
[](https://pyscn.ludo-tech.org)
|
|
35
35
|
|
|
36
36
|
GitLab Merge Request 4-Eyes Approval Audit Tool
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[](https://conventionalcommits.org)
|
|
16
16
|
[](https://keepachangelog.com/en/1.1.0/)
|
|
17
17
|
[]()
|
|
18
|
-
[](https://coverage.readthedocs.io/)
|
|
19
19
|
[](https://pyscn.ludo-tech.org)
|
|
20
20
|
|
|
21
21
|
GitLab Merge Request 4-Eyes Approval Audit Tool
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "gitlab_mr_check"
|
|
3
|
-
version = "1.4.
|
|
3
|
+
version = "1.4.2"
|
|
4
4
|
description = "GitLab Merge Request 4-Eyes Approval Audit Tool"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -254,7 +254,7 @@ branch = true
|
|
|
254
254
|
[tool.coverage.report]
|
|
255
255
|
show_missing = true
|
|
256
256
|
skip_covered = true
|
|
257
|
-
fail_under =
|
|
257
|
+
fail_under = 35
|
|
258
258
|
exclude_lines = [
|
|
259
259
|
"pragma: no cover",
|
|
260
260
|
"if __name__ == .__main__.",
|
|
@@ -143,9 +143,9 @@ def get_mrs_by_project(project: gitlab.v4.objects.Project, filters: list[Any]) -
|
|
|
143
143
|
return [mr for mr in project.mergerequests.list(all=True) if all(f(mr) for f in filters)]
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
def get_mrs_by_projects(projects: list[Any], filters: list[Any]) -> dict[str, list[Any]]:
|
|
147
|
-
"""Return a mapping of project name to filtered MR list for each project."""
|
|
148
|
-
return {
|
|
146
|
+
def get_mrs_by_projects(projects: list[tuple[str, Any]], filters: list[Any]) -> dict[str, list[Any]]:
|
|
147
|
+
"""Return a mapping of project name to filtered MR list for each (name, project) pair."""
|
|
148
|
+
return {name: get_mrs_by_project(project, filters) for name, project in projects}
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
def evaluate_mrs_4eyes_per_project(project_mrs: dict[str, list[Any]]) -> list[ProjectMRAuditResult]:
|
|
@@ -194,7 +194,7 @@ def audit(url: str, token: str, config: Config) -> list[ProjectMRAuditResult]:
|
|
|
194
194
|
LOGGER.info(' Group %s: %d project(s)', group.full_path, len(group_projects))
|
|
195
195
|
for project in group_projects:
|
|
196
196
|
LOGGER.info(' Project: %s', project.path_with_namespace)
|
|
197
|
-
gl_projects.append(gl.projects.get(project.id, lazy=True))
|
|
197
|
+
gl_projects.append((project.path_with_namespace, gl.projects.get(project.id, lazy=True)))
|
|
198
198
|
LOGGER.info('Found %d project(s)', len(gl_projects))
|
|
199
199
|
|
|
200
200
|
LOGGER.info('Getting the merge requests under the projects')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|