Skip to content

Add check authors command (Zenodo and GitHub contributors) - #144

Open
RichardLitt wants to merge 13 commits into
openjournals:mainfrom
RichardLitt:authors-check
Open

RichardLitt wants to merge 13 commits into
openjournals:mainfrom
RichardLitt:authors-check

Conversation

@RichardLitt

@RichardLitt RichardLitt commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #143.

Adds a new check authors command for editors:

@editorialbot check authors
@editorialbot check authors from branch <branch>
@editorialbot check authors with archive <Zenodo DOI or URL>

from branch and with archive can be combined, in either order.

It reads the authors list from the paper's metadata (paper.md, or paper.yml for LaTeX papers) and replies with a table showing, for each paper author:

  • whether they are a creator of the Zenodo archive. ✅ means the name is written exactly the same; Zenodo's "Last, First" format counts as the same. ⚠️ means it's probably the same person but the name is written differently: accents, capitalization, initials, a one-letter typo, or a different name with the same ORCID. If the paper and Zenodo list different ORCIDs for the same name, it shows ⚠️ with both ORCIDs instead of ✅.
  • whether they appear among the repository's GitHub contributors, matched by GitHub profile name. ⚠️ marks probable matches, including usernames built from the author's name when the profile doesn't give a different name.

It also lists Zenodo authors and GitHub contributors (with commit counts) who weren't matched to any author. Reviewers, the editor and bots are excluded from the contributor list. The reply notes that contributors who didn't commit code won't appear, and that the check is a helper for editors rather than a pass/fail check.

Finding the archive

  1. The archive given in the command (with archive), as a Zenodo DOI, doi.org link or zenodo.org record URL.
  2. The archive value in the issue.
  3. The most recent comment mentioning a Zenodo DOI or URL (the bot's own comments are skipped). The reply links to the comment it used.

If the most recent @editorialbot set ... as archive command doesn't match the archive in the issue (e.g. the command was refused), the bot doesn't guess: it replies with an error linking to that comment and asks the editor to set the right archive in the issue.

Notes

  • Only the paper's metadata is downloaded: the repository is cloned shallowly without file contents, and only paper.md/paper.yml is fetched. Nothing from the repository is written to disk.
  • Usernames, and any other text containing @ or #, are rendered in code spans and kept on one line, so the reply never mentions anyone or references other issues.
  • Only Zenodo archives are checked. Other archives (and Zenodo sandbox records), and repositories not on GitHub, are skipped with a note in the reply.
  • At most 50 contributors are looked up, the ones with the most commits, to limit GitHub API calls on large projects. If some profile lookups fail (e.g. rate limits), those contributors are matched by username only and the reply says so.
  • The command is switched on for editors in config/settings-production.yml (authors_check: with only: editors), so it shows up in @editorialbot help for editors. Authors and reviewers can't see or run it; remove only: editors to open it to everyone.
  • Params: url_field, branch_field, archive_field (default archive) and ignored_users_fields (default [reviewers-list, editor]). Documented in docs/responders/authors_check.md.

Testing

Specs cover the name matching, the responder, the worker (including a real partial clone with symlinks and non-UTF-8 file names), the archive lookup and the reply template, including names with line breaks and @/#; the full suite passes. I also ran the worker against several recently accepted JOSS reviews (printing the reply instead of posting it). It found a Zenodo record listing 2 of a paper's 5 authors, and a Zenodo name written without the accents used in the paper.

…GitHub

New responder (authors_check) and worker that compare the authors listed
in the paper's metadata with the creators of the Zenodo archive and with
the GitHub contributors of the repository (reviewers, editor and bots
excluded). Names are matched leniently so that small differences
(accents, case, initials, typos) are flagged for the editor instead of
being missed. Usernames are always rendered in code spans so the reply
doesn't mention anyone.

Closes openjournals#143
Adds an optional 'with archive <DOI or URL>' to the command, so the Zenodo authors can be checked before the archive is set in the issue. Zenodo record URLs are accepted as well as DOIs.
When the archive isn't given in the command or set in the issue, use the most recent issue comment that mentions a Zenodo DOI or URL, skipping the bot's own comments, and link to that comment in the reply.
@RichardLitt

Copy link
Copy Markdown
Contributor Author

I manually reviewed all of the code. It's a POC and has low risk, I think.

- Only fetch the paper's metadata from a blobless shallow clone, and parse it
  without writing anything from the repository to disk
- Keep displayed text on one line and put text with @ or # in code spans, so
  a name with a line break can't mention anyone
- List probable matches that weren't chosen, and only use username guesses
  when the profile name doesn't say otherwise
- Reply with an error asking to set the archive in the issue when the most
  recent 'set ... as archive' command doesn't match the issue
- Don't crash on file names that aren't UTF-8; skip symlinks; prefer the
  paper closest to the root; report unreadable metadata files
- Handle GitHub rate limits and network errors without losing the report
- Use the last Zenodo reference in a comment; ignore sandbox records
- Don't let specs remove the repository's tmp folder; add tests with a real
  partial clone
- Show the Zenodo match as a warning, with both ORCIDs, when the paper and
  Zenodo have different ORCIDs for the same name
- Allow YAML aliases in the paper's metadata, accept authors listed as plain
  names, and remove footnotes that contain brackets
…on failures

- '@bot check authors with paper <path>' uses that file instead of looking
  for paper.md/paper.tex (paper.yml next to it for LaTeX papers)
- Every failure to find or read the paper or the Zenodo archive now ends with
  the command to name it explicitly
Adds tests for each condition in the name matcher, the responder's options,
the archive lookup, the paper lookup, the Zenodo and GitHub calls, the paper
metadata parsing, the git helpers and the reply template. Also fixes the
paper.yml path for a LaTeX paper at the root of the repository.
@RichardLitt

Copy link
Copy Markdown
Contributor Author

Some deviations and improvements since I first made that message and opened the PR. I didn't manually check all of the tests. The goal was to make this more robust and more responsive.

Note: Using Opus 5.5 for this one.

@danielskatz

Copy link
Copy Markdown
Contributor

I would fine it useful to see an example of what this looks like (i.e., screenshots from a test)

@danielskatz

Copy link
Copy Markdown
Contributor

JOSS doesn't require archives to be on Zenodo, just in an archival repository that provides a DOI. Does this only work with Zenodo, or is this just a matter of text that says Zenodo but really means archival repository?

@danielskatz

Copy link
Copy Markdown
Contributor

I would like to change
@editorialbot check authors with archive <Zenodo DOI or URL>
to
@editorialbot check authors with archive <Zenodo DOI>
if possible - we already have confusion about using urls, which we don't ever want, but only want DOIs.

(And as in my previous comment, I'm not sure if we could replace Zenodo DOI with archival repository DOI)

@RichardLitt

Copy link
Copy Markdown
Contributor Author

This only works with Zenodo and GitHub, for now. It is a proof-of-concept more than anything else, and no one has to use it. I've changed it to only use the Zenodo DOI.

Here are some printouts:

Begin claudish:

Example replies

Each reply ends with the same "How to read this" block. I've included it once at the end of this section rather than in every example.

1. tobler (#11384): @editorialbot check authors

**Authors check**

| Paper author | Zenodo archive | GitHub contributor |
|---|---|---|
| Elijah Knaap | ⚠️ Written differently: eli knaap | ⚠️ Possibly `@knaaptime` (eli knaap) |
| Sergio J. Rey | ⚠️ Written differently: Sergio Rey | ⚠️ Possibly `@sjsrey` (Sergio Rey) |
| Renan X. Cortes | ⚠️ Written differently: Renan Xavier Cortes | ⚠️ Possibly `@renanxcortes` (Renan Xavier Cortes) |
| Martin Fleischmann | ✅ Martin Fleischmann | ✅ `@martinfleis` (Martin Fleischmann) |
| James D. Gaboardi | ⚠️ Written differently: James Gaboardi | ⚠️ Possibly `@jGaboardi` (James Gaboardi) |
| Daniel Arribas-Bel | ⚠️ Written differently: Dani Arribas-Bel | ⚠️ Possibly `@darribas` (Dani Arribas-Bel) |

**Zenodo authors not listed in the paper:**
- Trevor James Smith
- Josiah Parry
- Richard Littauer
- Patty Frontiera

**GitHub contributors not matched to a paper author** (reviewers, editor and bots excluded):
- `@JosiahParry` (Josiah Parry): 3 commits
- `@pattyf` (Patty Frontiera): 1 commit

Note from Richard: Those are the six authors, and I asked about Josiah and Patty in the thread, so this bot worked.

2. sbijax (#11195): @editorialbot check authors

**Authors check**

| Paper author | Zenodo archive | GitHub contributor |
|---|---|---|
| Simon Dirmeier | ✅ Dirmeier, Simon | ✅ `@dirmeier` (Simon Dirmeier) |
| Antonietta Mira | ✅ Mira, Antonietta | ❌ Not found |
| Carlo Albert | ✅ Albert, Carlo | ❌ Not found |

**GitHub contributors not matched to a paper author** (reviewers, editor and bots excluded):
- `@goelakash` (Akash Goel): 1 commit
- `@bruno-f-cruz` (Bruno Cruz): 1 commit
- `@lauradriscoll` (Laura Driscoll): 1 commit

3. rcldf (#10811): @editorialbot check authors

**Authors check**

| Paper author | Zenodo archive | GitHub contributor |
|---|---|---|
| Simon J. Greenhill | ✅ Simon J Greenhill | ✅ `@SimonGreenhill` (Simon J Greenhill) |

**GitHub contributors not matched to a paper author** (reviewers, editor and bots excluded):
- `@HedvigS` (Hedvig Skirgård): 1 commit
- `@xrotwang` (Robert Forkel): 1 commit

Note from Richard: I had also asked about those two committers and they didn't need to be on the paper, so this also worked.

4. deflake.rs (#8757), repository on Codeberg: @editorialbot check authors from branch main

**Authors check**

⚠️ **Warning:** The repository (`https://codeberg.org/benmagill/deflake.rs`) isn't on GitHub, so its contributors were not checked. Only GitHub repositories can be checked.

| Paper author | Zenodo archive | GitHub contributor |
|---|---|---|
| Benjamin Magill | ⚠️ Written differently: Magill, Ben | — |
| Phil McMinn | ✅ McMinn, Phil | — |

5. deflake.rs with its JOSS DOI given as the archive: @editorialbot check authors from branch main with archive 10.21105/joss.08757

**Authors check**

⚠️ **Warning:** The archive (`10.21105/joss.08757`) isn't a Zenodo DOI, so its authors were not checked. Only Zenodo archives can be checked. If there is a Zenodo archive, name it: `@editorialbot check authors with archive <Zenodo DOI>`

⚠️ **Warning:** The repository (`https://codeberg.org/benmagill/deflake.rs`) isn't on GitHub, so its contributors were not checked. Only GitHub repositories can be checked.

| Paper author | Zenodo archive | GitHub contributor |
|---|---|---|
| Benjamin Magill | — | — |
| Phil McMinn | — | — |

The block at the end of every reply:

<details>
<summary>How to read this</summary>

- ✅ The name matches. For Zenodo, "Last, First" and "First Last" count as the same.
- ⚠️ Zenodo: the name is written differently (accents, capitalization, initials, typos), or the paper and Zenodo have different ORCIDs. GitHub: probably the same person, but the editor should confirm.
- ❌ No match found.

GitHub only lists people who made commits, so authors who contributed in other ways won't appear there. Contributors don't all need to be authors. These results are for the editor to review, not a pass/fail check.
</details>

Errors (the bot replies with only this message, no table)

Cases marked real came from running against real repositories. The others are rare failures, so I fed the real worker code a made-up input to get its exact text.

Case Reply
Repository or branch can't be downloaded (real: deflake.rs's deleted paper branch) Downloading the repository failed. Please make sure the URL and the branch name are correct. To use a different branch, run @editorialbot check authors from branch <branch name>.
No paper.md or paper.tex (real: octocat/Hello-World) I couldn't find a paper.md or paper.tex file in the repository. Sorry, I couldn't figure out the right paper file. Please name it explicitly: @editorialbot check authors with paper <path to paper.md>
with paper file not in the repository (real: tobler, with paper docs/paper.md) I couldn't find docs/paper.md in the repository. Sorry, I couldn't figure out the right paper file. Please name it explicitly: @editorialbot check authors with paper <path to paper.md>
LaTeX paper whose paper.yml can't be read I couldn't read paper.yml from the repository. Sorry, I couldn't figure out the right paper file. Please name it explicitly: @editorialbot check authors with paper <path to paper.md>
Paper with no authors list I couldn't find a list of authors in paper.md. Sorry, I couldn't figure out the right paper file. Please name it explicitly: @editorialbot check authors with paper <path to paper.md>
Latest set ... as archive doesn't match the issue I can't tell which archive to check: the most recent @editorialbot set ... as archive command (this comment) sets 10.5281/zenodo.999, but the issue has 10.5281/zenodo.24358692. This usually means that command didn't go through. Please set the right archive in the issue with @editorialbot set <DOI> as archive and try again.
No repository URL in the issue I couldn't find the URL for the target repository

Warnings (shown above the table; the rest of the check still runs)

Case Text
Archive DOI isn't from Zenodo (real) ⚠️ Warning: The archive (10.21105/joss.08757) isn't a Zenodo DOI, so its authors were not checked. Only Zenodo archives can be checked. If there is a Zenodo archive, name it: @editorialbot check authors with archive <Zenodo DOI>
Zenodo sandbox record ⚠️ Warning: The archive (https://sandbox.zenodo.org/records/123456) is a Zenodo sandbox record, not a Zenodo DOI, so its authors were not checked. Only Zenodo archives can be checked. If there is a Zenodo archive, name it: @editorialbot check authors with archive <Zenodo DOI>
Repository isn't on GitHub (real) ⚠️ Warning: The repository (https://codeberg.org/benmagill/deflake.rs) isn't on GitHub, so its contributors were not checked. Only GitHub repositories can be checked.

Notes (in italics below the table)

Case Text
Archive found in a comment Using the Zenodo archive 10.5281/zenodo.24358692 mentioned in this comment.
Archive given as a Zenodo URL (real: tobler) The archive (https://zenodo.org/records/24358692) is a Zenodo URL, not a DOI, so I used its DOI, 10.5281/zenodo.24358692, instead.
No archive found anywhere I couldn't find a Zenodo archive in the command, the issue or its comments, so Zenodo authors were not checked. Sorry, I couldn't figure out the Zenodo archive. Please name it explicitly: @editorialbot check authors with archive <Zenodo DOI>
Zenodo record can't be retrieved (real: a DOI that doesn't exist) I couldn't retrieve the Zenodo record for 10.5281/zenodo.999999999, so Zenodo authors were not checked. Sorry, I couldn't figure out the Zenodo archive. Please name it explicitly: @editorialbot check authors with archive <Zenodo DOI>
More than 50 contributors This repository has 60 contributors; only the 50 with the most commits were checked.
Some GitHub profiles can't be looked up I couldn't look up the GitHub profile of 2 contributors, so they were matched by username only.
GitHub's contributors API fails I couldn't retrieve the list of contributors from GitHub, so GitHub contributors were not checked.

Elijah Knaap now matches eli knaap, and Daniel Arribas-Bel matches
Dani Arribas-Bel: a name of 3+ letters matches a longer name starting
with it, and each name can match any other name, in any order.
Simon J. Greenhill and Simon J Greenhill are now an exact match.
…s that can't be checked

- Compare archives by what they point to, so 'set https://doi.org/<DOI>
  as archive' no longer conflicts with the bare DOI editorialbot stores
- If the archive is a zenodo.org URL, use the record's DOI and say so
- Warn above the table when the archive's DOI isn't from Zenodo, or the
  repository isn't on GitHub, the only sources that can be checked
- Ask for a <Zenodo DOI> in hints and examples, not a DOI or URL
@danielskatz

Copy link
Copy Markdown
Contributor

Can we drop the idea of a Zenodo URL and require this to take/use a Zenodo DOI?

@danielskatz

Copy link
Copy Markdown
Contributor

Thanks for the examples. I think this looks good in general.

@RichardLitt

Copy link
Copy Markdown
Contributor Author

@danielskatz I don't think we specify anywhere - should the Zenodo DOI be the version-specific one, or the general one for the whole record?

@danielskatz

Copy link
Copy Markdown
Contributor

@danielskatz I don't think we specify anywhere - should the Zenodo DOI be the version-specific one, or the general one for the whole record?

It should be the version specific one - this is the version that is associated with the software that is being reviewed.

@RichardLitt

Copy link
Copy Markdown
Contributor Author

Let's hold off on this until #145, which can verify the DOI.

@xuanxu xuanxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @RichardLitt.
Our current strategy for this kind of checks that run in their own process in the background is to not use our server with limited RAM/resources but to use the GitHub infrastructure, running them as a GitHub action called by a GitHub workflow from the joss-papers repo that is triggered by editorialbot using a simple call with the github-action responder.
For example, this is how the check references command works:

So, I think the best course of action here is to move most of the code from this PR and the Zenodo checks to a script in a GitHub action that we can later use from the papers workflows. I have just created this empty repository for it: https://github.com/openjournals/gh-action-archive-authors-check

@RichardLitt

Copy link
Copy Markdown
Contributor Author

@xuanxu Thanks for reviewing this! I know it is hard reviewing large PRs that have largely been written with AI.

That sounds reasonable to me. I'll make a PR to that repo.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confirm that Zenodo authors and GitHub contributors are identical to the page authors

3 participants