Skip to content

Script that parses `maintainers.txt` files in elife repositories and prints a simple report.

License

Notifications You must be signed in to change notification settings

elifesciences/maintainers-txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Script that parses `maintainers.txt` files in elife repositories and prints a simple report.

Resources

License

Stars

Watchers

Forks

Packages

No packages published