Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/afraid-ducks-know.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/blue-carpets-jam.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @changesets/ghcommit

## 2.0.0

### Major Changes

- [#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,
and remove the `repository` argument which was deprecated
and previously could be used in its place.

- [#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

- For `commitFilesFromDirectory`:
- Rename `workingDirectory` to `cwd` for consistency across repos,
and utils like `exec`
- Make `cwd` a required argument
- For `commitChangesFromRepo`:
- Merge `repoDirectory` and `addFromDirectory` 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 from `cwd`.

This effectively removes all usage of process.cwd() within the package,
instead requiring all usage to be very explicit with specifying paths.

## 1.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@changesets/ghcommit",
"version": "1.4.0",
"version": "2.0.0",
"description": "Directly change files on github using the github API, to support GPG signing",
"keywords": [
"actions",
Expand Down