Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.32 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.32 KB

maintainers.txt

Parses maintainers.txt files in eLife Github repositories, printing a simple report of what is maintained by whom.

If any repository has no maintainers, the script will exit with a failure.

Accepts an optional input file mapping a maintainer => alias. This will replace the name of the maintainer output with something else (like an email address).

If an alias map was given and any repository has a maintainer not present in the map, the script will exit with a failure.

requisites

Installation

git clone https://github.com/elifesciences/maintainers-txt
cd maintainers-txt
go build .

Usage

GITHUB_TOKEN=your-github-token ./maintainers-txt

or

GITHUB_TOKEN=your-github-token ./maintainers-txt alias-map.json

and alias-map.json might look like:

{"jdoe": "[email protected]"}

Graph

To generate a simple pie chart from the output of the maintainers-txt:

GITHUB_TOKEN=your-github-token ./maintainers-txt > report.json
go run . graph

Licence

Copyright © 2024 eLife Sciences

Distributed under the GNU Affero General Public Licence, version 3.