On 24/6/26 14:29, Daniel P. Berrangé wrote:
It is desirable to be able to discover the GitLab account handle
assocaited with a real name in the MAINTAINERS file.

Rather that duplicating the same account handle multiple times,
inline with the MAINTAINERS file entries, this introduces mapping
files:

   * .gitlab-map-auto - data automatically queried from GitLab
     using the 'glab' tool and REST API
   * .gitlab-map-manual - manual overrides/augmentation for
     cases where the MAINTAINERS real name does not match the
     GitLab account real name

Thanks, much simpler to maintain!

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

The former would need refreshing when we add new MAINTAINERS
entries, if the person had to be added as a GitLab account
member. For this purpose scripts/gitlab-map-update can be
used, assuming the user has the 'glab' client tool present
and configured with an access token.

To audit how many maintainers have GitLab handles present/missing
scripts/gitlab-map-check can run a report.

   $ ./scripts/gitlab-map-check
   Missing GitLab handle: Akihiko Odaki
   Missing GitLab handle: Albert Esteve
   ....
   Missing GitLab handle: Zhenzhong Duan
   Missing GitLab handle: Zhuoying Cai
   GitLab handles missing: 161 / present: 57

Signed-off-by: Daniel P. Berrangé <[email protected]>
---
  .gitlab-map-auto          | 83 +++++++++++++++++++++++++++++++++++++++
  .gitlab-map-manual        | 18 +++++++++
  scripts/gitlab-map-check  | 23 +++++++++++
  scripts/gitlab-map-update | 44 +++++++++++++++++++++
  4 files changed, 168 insertions(+)
  create mode 100644 .gitlab-map-auto
  create mode 100644 .gitlab-map-manual
  create mode 100755 scripts/gitlab-map-check
  create mode 100755 scripts/gitlab-map-update


Reply via email to