Skip to content

Maintainership converter command line tool#2107

Open
ncounter wants to merge 3 commits intoopenSUSE:masterfrom
ncounter:maintainership-converter
Open

Maintainership converter command line tool#2107
ncounter wants to merge 3 commits intoopenSUSE:masterfrom
ncounter:maintainership-converter

Conversation

@ncounter
Copy link
Copy Markdown
Contributor

@ncounter ncounter commented Apr 13, 2026

Fixes openSUSE/openSUSE-git#311

  • convert from legacy to latest format
  • print the produced content to the CLI output

How to use it

Run the git-obs maintainership-converter command, it reads the _maintainership.json file from the cwd and print to CLI output the file content converted to the new format.
The user can optionally specify the path/to/file to convert as a parameter: git-obs maintainership-converter _maintainership.json

Comment thread tests/test_maintainership_converter.py Fixed
@ncounter ncounter force-pushed the maintainership-converter branch 3 times, most recently from 5fe2af0 to b76c5c8 Compare April 14, 2026 12:29
@ncounter ncounter marked this pull request as ready for review April 14, 2026 13:26
Comment thread tests/test_maintainership_converter.py Outdated
Comment thread tests/test_maintainership_converter.py Outdated
Comment thread tests/test_maintainership_converter.py Outdated
@ncounter ncounter force-pushed the maintainership-converter branch 2 times, most recently from 06c5816 to b22d9f1 Compare April 15, 2026 09:14
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 33.96%. Comparing base (ece94c9) to head (b22d9f1).
⚠️ Report is 122 commits behind head on master.

Files with missing lines Patch % Lines
osc/commands_git/maintainership_converter.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2107      +/-   ##
==========================================
- Coverage   34.11%   33.96%   -0.16%     
==========================================
  Files         189      197       +8     
  Lines       25889    26974    +1085     
==========================================
+ Hits         8833     9162     +329     
- Misses      17056    17812     +756     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ncounter ncounter force-pushed the maintainership-converter branch from b22d9f1 to 9e93762 Compare April 15, 2026 09:17
First level `file`: the command handles files
Second level: `maintainership`: the command operates on the
maintainership area
Third level `migrate`: the target action
@ncounter ncounter force-pushed the maintainership-converter branch from 6968f1a to 03c2d89 Compare April 15, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create an utility to convert from old _maintainership.json format to new one

3 participants