Skip to content

Commit 3d63783

Browse files
Version Packages (#43)
1 parent d1d2bc4 commit 3d63783

File tree

4 files changed

+27
-29
lines changed

4 files changed

+27
-29
lines changed

.changeset/afraid-ducks-know.md

-7
This file was deleted.

.changeset/blue-carpets-jam.md

-21
This file was deleted.

CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# @changesets/ghcommit
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- [#41](https://github.com/changesets/ghcommit/pull/41) [`295d847`](https://github.com/changesets/ghcommit/commit/295d84746faa73afb64ee2cfead1be53c66ec526) Thanks [@s0](https://github.com/s0)! - Make `repo` argument required,
8+
and remove the `repository` argument which was deprecated
9+
and previously could be used in its place.
10+
11+
- [#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
12+
13+
- For `commitFilesFromDirectory`:
14+
- Rename `workingDirectory` to `cwd` for consistency across repos,
15+
and utils like `exec`
16+
- Make `cwd` a required argument
17+
- For `commitChangesFromRepo`:
18+
- Merge `repoDirectory` and `addFromDirectory` into a single required argument
19+
`cwd`. This folder will now both be used to filter which files are added,
20+
and to find the root of the repository.
21+
- Introduce `recursivelyFindRoot` option (default: `true`),
22+
to optionally search for the root of the repository,
23+
by checking for existence of `.git` directory in parent directories,
24+
starting from `cwd`.
25+
26+
This effectively removes all usage of process.cwd() within the package,
27+
instead requiring all usage to be very explicit with specifying paths.
28+
329
## 1.4.0
430

531
### Minor Changes

package.json

+1-1
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)