Documentation
¶
Overview ¶
Command releasecredits prints the "Registry contributors" block of the release notes from GitHub pull request JSON.
The input is what `gh api` returns for the merged pull requests that touched registry/ since the previous tag: one or more JSON arrays of pull request objects (as `gh api --paginate` or several concatenated calls produce), or single objects. Unmerged pull requests (no merged_at), the dev-to-main integration PR and release-please PRs (head ref "dev" or "release-please--*"), bots (user type "Bot" or a login ending in "[bot]") and logins that are not valid GitHub handles are skipped. Handles are deduplicated case-insensitively and sorted. With no contributor it prints nothing.
Usage: go run ./tools/releasecredits [file] (reads stdin without a file)
Exit codes: 0 done, 2 the input cannot be read or is not pull request JSON.