Skip to content

A gh CLI extension for adding "Co-authored-by" trailers to your commits. Give credit where it’s due!

Notifications You must be signed in to change notification settings

maelvls/gh-co-author

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-coauthor

A GitHub CLI extension to easily add co-authors to your git commits.

Installation

gh extension install maelvls/gh-co-author

Usage

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.

How it works

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]>

Local dev

To develop this extension locally, you can follow these steps:

gh extension install .

Then you can try it out locally.

License

MIT

About

A gh CLI extension for adding "Co-authored-by" trailers to your commits. Give credit where it’s due!

Resources

Stars

Watchers

Forks

Packages

No packages published