devops.release.reviewers

Pick release reviewers from generated GitHub release notes.

Functions

extract_reviewers(notes, repository)

Return the human PR authors of a repository in release-note order.

devops.release.reviewers.extract_reviewers(notes, repository)[source]

Return the human PR authors of a repository in release-note order.

Parameters:
  • notes (str) – Release notes as generated by GitHub.

  • repository (str) – The repository as owner/name; PRs of other repositories are skipped.

Returns:

list[str] – Unique logins without bots.

Return type:

list[str]

Examples

>>> notes = "* fix: x by @ape33 in https://github.com/o/r/pull/1"
>>> extract_reviewers(notes, "o/r")
['ape33']