You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContribChecker is a GitHub Action and helper script that verifies that contributors who appear in the git history are listed in the repository metadata files (`CITATION.cff` and `codemeta.json`). It uses a `.mailmap` file to unify multiple emails/names for the same person.
3
+
contrib-checker is a library and set of tools that verify contributors from git history are properly listed in repository metadata files (`CITATION.cff` and `codemeta.json`).
4
+
It provides:
4
5
5
-
Why this is useful
6
-
- Keeps citation and credit metadata accurate when new contributors add commits
7
-
- Helps projects maintain reproducible credit and citation information
6
+
-**Python library**: Installable package for programmatic use
7
+
-**Command-line tool**: `contrib-checker` CLI for local checking
8
+
-**GitHub Action**: Automated checking in GitHub workflows
9
+
-**GitLab CI**: Support for GitLab merge request checking
8
10
9
-
What this repository provides
10
-
- A Python script at `check_contributors.py` that performs the check
11
-
- A GitHub Actions bot at `action.yml` that runs the script on PR events
11
+
## Installation
12
12
13
-
How it works
14
-
- The action runs on PR events. It runs `git log --use-mailmap --format='%aN <%aE>' BASE..HEAD` to collect commit authors, so ensure `.mailmap` is present if you need to unify multiple emails.
15
-
- It compares commit authors against `CITATION.cff` and `codemeta.json` and posts a comment if missing contributors are found.
16
-
- If `mode: fail` is set in the config, the Action will fail the job (exit code 1).
0 commit comments