learning-it by example

Back to the video

Data Ownership in Git: CODEOWNERS for Datasets

A five-line file in git says who owns each dataset. A script found a gap and a ghost team.

Video #212 ยท Data governance

Steps in the video

  1. 0:00 Who owns this table? A five-line file in git answered it, and found two gaps
  2. 0:33 The idea
  3. 1:07 Setup
  4. 1:32 The file
  5. 1:59 Match and find the owner
  6. 2:24 Who is still here
  7. 2:54 Run it
  8. 3:30 What this does not show
  9. 4:04 Mistakes to avoid
  10. 4:29 My take and next steps
  11. 4:54 Recap

Files

  • CODEOWNERS (5 lines)
  • owners.py (36 lines)
  • run.py (10 lines)

Download the code (zip)

Tested with

Python 3.12.15

What this does not show

Made-up repository, teams and file list; the matcher is simplified and differs from GitHub's, the script only prints, and a code owner is asked to review, not held accountable.

Sources

Learning IT by Example.