A GitHub CLI extension to easily add co-authors to your git commits.
gh extension install maelvls/gh-co-author
git commit -m "Your commit message" --trailer="$(gh co-author USERNAME)"
For example:
git commit -m "Fix bug in login" --trailer="$(gh co-author wallrj)"
This will add a "Co-authored-by" trailer to your commit with the specified GitHub user's name and email.
The extension fetches user information from GitHub and formats it as a co-author trailer for Git commits. The format follows GitHub's standard for commit co-authoring:
Co-authored-by: Name <[email protected]>
To develop this extension locally, you can follow these steps:
gh extension install .
Then you can try it out locally.
MIT