Follows Semantic Versioning.
- Update to
suggest-coauthors
will show a select interactive list usinginquirer/checkbox
. Select one or more authors to save. Reducing the number of steps to add new co-authors. - Finished migration to TypeScript for the main files in git-mob and git-mob-core packages. Issue 83
- Removed the following commands because I think they are low value to maintain. See readme on how to edit/delete co-authors.
git delete-coauthor
git edit-coauthor
- Migrate git template
git-messages
function to TypeScript.
- When no path set for the commit template, default to the global template. Don't use a relative path.
- Global path to
.git-coauthors
can be overwritten by env varGITMOB_COAUTHORS_PATH
.
- When creating a new
.git-coauthors
using thecreateCoAuthorsFile
it is created only globally by providing internally the global path.
- Specify authors to save when creating the coAuthor file.
- Clean up unused features in author file:
coAuthor
,author
format functions and no need for thewrite
method. - Remove unused old command API
- Convert
GitAuthors
function to TypeScript and define new internal typeCoAuthorSchema
. - Breaking:
getSelectedCoAuthors
now returns a promise with typeAuthor[]
. - Breaking:
getPrimaryAuthor
now returns a promise with typeAuthor
. - Breaking:
setPrimaryAuthor
now returns a promisevoid
. - New:
searchGitHubAuthors
search by name and this will returnAuthor[]
.
- Integrate breaking changes in core API:
getPrimaryAuthor
,getSelectedCoAuthors
,setPrimaryAuthor
. - New flag
-p
path will print out path to.git-coauthors
file.
-- git suggest-coauthors [author name or author email]
can filter by author name or email. Addresses issue 90
- Remove legacy git-message API and replace it with git-mob-core
git-message
API - Remove legacy git-add-coauthor API and replace it with git-mob-core
saveNewCoAuthors
- Remove legacy git-suggest-coauthor API and replace it with git-mob-core
repoAuthorList
- Migrated
git-suggest-coauthors
to TypeScript git mob-print -i
uses git mob core to print out initials of selected co-authors- Post install script to create global coauthor file uses
createCoAuthorsFile
from git mob core - Migrated mob print file to TypeScript
- Removed legacy git mob commands no longer used.
- Removed legacy git commands no longer used.
- Added function to create a global coauthor file
createCoAuthorsFile
.
- Added
repoAuthorList
which will list all contributors from a repo - Added filter to
repoAuthorList
which uses--author
flag fromgit shortlog
.
- Add new co-author module migrated to TypeScript and tested
- Change to async
topLevelDirectory
,insideWorkTree
- may not be needed in future versions resolve-git-message-path
migrated to TypeScript- Changed to async
resolveGitMessagePath
,setCommitTemplate
- Now uses ESM modules and requires Node 16+ (Most parts work with Node 14)
- CI run tests in 3 Node environments 14, 16, 18
- Updated dependencies and dev dependencies to patch security issues
- Updated tests to support ESM
- Requires Node 16+
- Module systems support ESM and CJS
gitMobConfig = {
localTemplate(): <Promise<boolean>>,
fetchFromGitHub(): <Promise<boolean>>,
};
gitConfig = {
getLocalCommitTemplate(): <Promise<string>>,
getGlobalCommitTemplate(): <Promise<string>>,
};
gitRevParse = {
insideWorkTree(): string,
topLevelDirectory(): boolean,
};
- Integrated git-mob-core for main
git mob
features - Reduced the calls to
git
CLI to speed up command execution forgit mob
- Convert src git-mob and spec files from JS to TS
- Added config manager feature to set the child process cwd when needed see issue 109. New functions
getConfig
andupdateConfig
.
- Integrated git-mob-core solo function
- Override the global
.git-coauthors
file with one specified in root folder of a Git repository. Thanks to @tlabeeuw
updateGitTemplate
will keep global template up to date if local one is used for current repository.pathToCoAuthors
will return the path to.git-coauthors
file.