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
5 changes: 0 additions & 5 deletions .changeset/afraid-forks-develop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chatty-kiwis-fold.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/humble-weeks-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/kind-spoons-prove.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lazy-jokes-camp.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/little-colts-bet.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/polite-carrots-exist.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/six-eyes-return.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slick-bottles-try.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/sunny-nights-heal.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-chefs-bake.md

This file was deleted.

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

## 3.0.0

### Major Changes

- [#91](https://github.com/changesets/ghcommit/pull/91) [`9ac746d`](https://github.com/changesets/ghcommit/commit/9ac746d10c551f0e167aa88e87346378860a8270) Thanks [@bluwy](https://github.com/bluwy)! - Remove `queries` export from index. You should not rely on these queries as stable APIs.

- [#89](https://github.com/changesets/ghcommit/pull/89) [`e34689e`](https://github.com/changesets/ghcommit/commit/e34689e5f5a9334fcae2c714655fc4a0d1ccf154) Thanks [@bluwy](https://github.com/bluwy)! - Add `"engines"` field for explicit node version support. The supported node versions are `^22.11 || ^24 || >=26`.

- [#109](https://github.com/changesets/ghcommit/pull/109) [`203f0b7`](https://github.com/changesets/ghcommit/commit/203f0b795d58f74532abe328dda815489cb215ba) Thanks [@bluwy](https://github.com/bluwy)! - Removed the `commitFilesFromBuffers` and `commitFilesFromDirectory` APIs. These APIs were simple wrappers over the core `commitChangesFromBase64` API, which should be used instead. Read the file and pass the base64-encoded content to `commitChangesFromBase64` `fileChanges` directly. For example:
- `Buffer.from("hello world").toString("base64")`
- `await fs.readFile("path/to/file", "base64")`

- [#118](https://github.com/changesets/ghcommit/pull/118) [`e2b975d`](https://github.com/changesets/ghcommit/commit/e2b975dc48003dfa24fd18393149cd8e1d6d2037) Thanks [@bluwy](https://github.com/bluwy)! - Remove `recursivelyFindRoot` and make `cwd` optional for `commitChangesSinceBase`. Files will also not be filtered by `cwd` by default. To only commit files from a directory, use the `filterFiles` option instead.

- [#88](https://github.com/changesets/ghcommit/pull/88) [`19ea73a`](https://github.com/changesets/ghcommit/commit/19ea73a1643cba9fd8de3583c895f1d95725cd01) Thanks [@bluwy](https://github.com/bluwy)! - Publish code as ESM only

- [#109](https://github.com/changesets/ghcommit/pull/109) [`203f0b7`](https://github.com/changesets/ghcommit/commit/203f0b795d58f74532abe328dda815489cb215ba) Thanks [@bluwy](https://github.com/bluwy)! - Removed all subpath exports. All APIs should be imported from root, e.g. `import { commitChangesFromRepo } from "@changesets/ghcommit"`.

- [#117](https://github.com/changesets/ghcommit/pull/117) [`165c6cb`](https://github.com/changesets/ghcommit/commit/165c6cbbd2e284a9af4ea5dacb8752798e243b70) Thanks [@bluwy](https://github.com/bluwy)! - Rename public APIs and export types. Note that the existing changelog may still reference the old names, but the new names should be used instead.
- `commitFilesFromBase64` -> `commitChanges`
- `commitChangesFromRepo` -> `commitChangesSinceBase`

- [#110](https://github.com/changesets/ghcommit/pull/110) [`ead1e55`](https://github.com/changesets/ghcommit/commit/ead1e55ab4256f5bd73f41f751e5d23166b57b12) Thanks [@bluwy](https://github.com/bluwy)! - Remove `log` argument from APIs. If you need to debug the package, use breakpoints or manually add logs in the package code.

### Minor Changes

- [#116](https://github.com/changesets/ghcommit/pull/116) [`67853bf`](https://github.com/changesets/ghcommit/commit/67853bfb20c860ba1cb4069be443ba4e54c79095) Thanks [@bluwy](https://github.com/bluwy)! - Improve create, update, and force update handling in `commitFilesFromBase64`:
- Correctly detect if the `base` is the same as `branch` by comparing their SHAs instead of names.
- Perform a normal update if the branch exists and the `base` and branch HEAD SHAs match, instead of always a force update if `force` is true.
- Always clean up created or existing temporary branches during force updates, even if it fails.
- Always return a non-nullable `refId` from `commitFilesFromBase64` (and consequently `commitChangesFromRepo`). If the commit fails, it'll throw an error instead, similar to existing parts of the implementation.

- [#111](https://github.com/changesets/ghcommit/pull/111) [`1cf711e`](https://github.com/changesets/ghcommit/commit/1cf711eac92dc535787c3af3cc488989826ee43d) Thanks [@bluwy](https://github.com/bluwy)! - Support `branch` and `tag` format for `commitChangesFromRepo` `base` option. This aligns with the `commitFilesFromBase64` `base` option.

- [#108](https://github.com/changesets/ghcommit/pull/108) [`8b5585d`](https://github.com/changesets/ghcommit/commit/8b5585d61175b3adec43335cfae7e3160cb9e525) Thanks [@bluwy](https://github.com/bluwy)! - Replace `isomorphic-git` with direct `git` command calls to get the file changes since a given ref

## 3.0.0-next.1

### Major 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": "3.0.0-next.1",
"version": "3.0.0",
"description": "Directly change files on github using the github API, to support GPG signing",
"keywords": [
"actions",
Expand Down