Releases: changesets/ghcommit
v2.0.0
Major Changes
-
#41
295d847
Thanks @s0! - Makerepo
argument required,
and remove therepository
argument which was deprecated
and previously could be used in its place. -
#40
4117e39
Thanks @s0! - Refactor & clean up options for multiple functions- For
commitFilesFromDirectory
:- Rename
workingDirectory
tocwd
for consistency across repos,
and utils likeexec
- Make
cwd
a required argument
- Rename
- For
commitChangesFromRepo
:- Merge
repoDirectory
andaddFromDirectory
into a single required argument
cwd
. This folder will now both be used to filter which files are added,
and to find the root of the repository. - Introduce
recursivelyFindRoot
option (default:true
),
to optionally search for the root of the repository,
by checking for existence of.git
directory in parent directories,
starting fromcwd
.
- Merge
This effectively removes all usage of process.cwd() within the package,
instead requiring all usage to be very explicit with specifying paths. - For
v1.4.0
Minor Changes
-
#37
21c9eaf
Thanks @s0! - Throw an error when executable files are encountered -
#33
92be707
Thanks @s0! - IntroducefilterFiles
argument forcommitChangesFromRepo
Allow for a custom function to be specified to filter which files should be
included in the commit -
#33
92be707
Thanks @s0! - IntroduceaddFromDirectory
option forcommitChangesFromRepo
to allow users to
specify a subdirectory of the git repository that should be used to add files
from, rather then adding all changed files.This is useful when trying to emulate the behavior of running
git add .
from a subdirectory of the repository. -
#33
92be707
Thanks @s0! - Automatically find root incommitChangesFromRepo
whenrepoDirectory
is unspecified.While this does result in a behavioral change for an existing argument,
it's considered non-breaking as beforecommitChangesFromRepo
would just not
work when run from a subdirectory of a repo whenrepoDirectory
was not
specified.
Patch Changes
v1.3.1
v1.3.0
Minor Changes
-
1324104: Migrating package to @changesets namespace
Ownership of the repository has moved from https://github.com/s0/ghcommit
to https://github.com/changesets/ghcommit. As part of this we're also moving the
NPM package to the @changesets namespace. No functional changes have happened,
so this can be a drop-in replacement for@s0/ghcommit
.