Skip to content

Commit 20f9d41

Browse files
Version Packages
1 parent 4117e39 commit 20f9d41

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

.changeset/blue-carpets-jam.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# @changesets/ghcommit
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- [#40](https://github.com/changesets/ghcommit/pull/40) [`4117e39`](https://github.com/changesets/ghcommit/commit/4117e398eafae4cdf42837e1240e140dbc6592db) Thanks [@s0](https://github.com/s0)! - Refactor & clean up options for multiple functions
8+
9+
- For `commitFilesFromDirectory`:
10+
- Rename `workingDirectory` to `cwd` for consistency across repos,
11+
and utils like `exec`
12+
- Make `cwd` a required argument
13+
- For `commitChangesFromRepo`:
14+
- Merge `repoDirectory` and `addFromDirectory` into a single required argument
15+
`cwd`. This folder will now both be used to filter which files are added,
16+
and to find the root of the repository.
17+
- Introduce `recursivelyFindRoot` option (default: `true`),
18+
to optionally search for the root of the repository,
19+
by checking for existence of `.git` directory in parent directories,
20+
starting from `cwd`.
21+
22+
This effectively removes all usage of process.cwd() within the package,
23+
instead requiring all usage to be very explicit with specifying paths.
24+
325
## 1.4.0
426

527
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@changesets/ghcommit",
3-
"version": "1.4.0",
3+
"version": "2.0.0",
44
"description": "Directly change files on github using the github API, to support GPG signing",
55
"keywords": [
66
"actions",

0 commit comments

Comments
 (0)