gitlab_mr_check 1.4.0__tar.gz → 1.4.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitlab_mr_check
3
- Version: 1.4.0
3
+ Version: 1.4.1
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
  [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
31
31
  [![Changelog](https://img.shields.io/badge/changelog-Keep%20a%20Changelog%201.1.0-orange)](https://keepachangelog.com/en/1.1.0/)
32
32
  [![Build](https://img.shields.io/badge/build-passing-brightgreen)]()
33
- [![Coverage](https://img.shields.io/badge/coverage-34%25-red)](https://coverage.readthedocs.io/)
33
+ [![Coverage](https://img.shields.io/badge/coverage-0%25-red)](https://coverage.readthedocs.io/)
34
34
  [![pyscn quality](https://img.shields.io/badge/pyscn-not%20rated-lightgrey)](https://pyscn.ludo-tech.org)
35
35
 
36
36
  GitLab Merge Request 4-Eyes Approval Audit Tool
@@ -15,7 +15,7 @@
15
15
  [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
16
16
  [![Changelog](https://img.shields.io/badge/changelog-Keep%20a%20Changelog%201.1.0-orange)](https://keepachangelog.com/en/1.1.0/)
17
17
  [![Build](https://img.shields.io/badge/build-passing-brightgreen)]()
18
- [![Coverage](https://img.shields.io/badge/coverage-34%25-red)](https://coverage.readthedocs.io/)
18
+ [![Coverage](https://img.shields.io/badge/coverage-0%25-red)](https://coverage.readthedocs.io/)
19
19
  [![pyscn quality](https://img.shields.io/badge/pyscn-not%20rated-lightgrey)](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.0"
3
+ version = "1.4.1"
4
4
  description = "GitLab Merge Request 4-Eyes Approval Audit Tool"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -190,20 +190,16 @@ def audit(url: str, token: str, config: Config) -> list[ProjectMRAuditResult]:
190
190
  LOGGER.info('Getting the projects under the groups')
191
191
  gl_projects = []
192
192
  for group in gl_groups:
193
- group_projects = group.projects.list(all=True)
193
+ group_projects = group.projects.list(all=True, archived=False)
194
194
  LOGGER.info(' Group %s: %d project(s)', group.full_path, len(group_projects))
195
195
  for project in group_projects:
196
- LOGGER.info(' Project: %s (archived: %s)', project.path_with_namespace, project.archived)
197
- gl_projects.append(gl.projects.get(project.id))
198
- LOGGER.info(
199
- 'Found %d project(s) (%d after excluding archived)',
200
- len(gl_projects),
201
- sum(1 for p in gl_projects if not p.archived),
202
- )
196
+ LOGGER.info(' Project: %s', project.path_with_namespace)
197
+ gl_projects.append(gl.projects.get(project.id, lazy=True))
198
+ LOGGER.info('Found %d project(s)', len(gl_projects))
203
199
 
204
200
  LOGGER.info('Getting the merge requests under the projects')
205
201
  gl_project_mrs = get_mrs_by_projects(
206
- projects=[p for p in gl_projects if not p.archived],
202
+ projects=gl_projects,
207
203
  filters=[mr_is_merged, partial(mr_updated_in_years, years=config.gitlab.audit.years)],
208
204
  )
209
205
 
File without changes