Mateusz Burzyński
5078b4b48b
Migrate to ESM ( #484 )
...
* Migrate to ESM
* just use `require.resolve`
* reuse setup action
* checkout PR head for a sec
* ls things
* try a thing
* the dirname had a trailing whitespace, lol
2025-05-16 11:39:43 +02:00
Sam Lanning and Mateusz Burzyński
7ed1955546
Fixed situations in which cwd was specified as a relative path and used with (default) commitMode: git-cli ( #486 )
...
* fix: use latest ghcommit and fix cwd for git-cli
- `cwd` was not working correctly when commitMode was set to `git-cli`,
as it was attempting to resolve the `cwd` twice.
(This problem only occured when specifying a relative path for `cwd`.)
- Update `ghcommit`, and avoid calling `process.chdir()` to change the
working directory. Instead, we now pass the `cwd` option everywhere.
fixes #475
* simplify
* Apply suggestions from code review
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-16 11:25:00 +02:00
Jake Pelter and Mateusz Burzyński
9690d7b6f2
Add LICENSE file ( #491 )
...
* add license file
* Update LICENSE
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-15 21:55:11 +02:00
Sam Lanning and Mateusz Burzyński
022692ba02
Fix PRs sometimes not getting reopened with commitMode: github-api ( #488 )
...
* Fix PRs sometimes not getting reopened
There was a race-condition that means sometimes
existing PRs would not be found,
and new PRs would be opened.
This has now been fixed by fetching existing PRs
before making any changes.
fixes #487
* Apply suggestions from code review
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-15 21:46:15 +02:00
Mateusz Burzyński
0564b8428f
Removed fs-extra dependency ( #481 )
...
* Removed `fs-extra` dependency
* use `fs/promises` consistently
2025-05-15 21:41:09 +02:00
Mateusz Burzyński
9f7e23e7ee
Setup Git user in release-pr workflow ( #493 )
2025-05-15 10:31:07 +02:00
Mateusz Burzyński
10ea96defe
Use proper ndoe version in release-pr workflow ( #492 )
2025-05-15 10:22:33 +02:00
Mateusz Burzyński
f6369c112a
Add release-pr workflow ( #490 )
...
* Add `release-pr` workflow
* Add comments
* fix quotes
2025-05-15 09:42:54 +02:00
Mateusz Burzyński
e82f42c2cc
Migrate to Vitest ( #483 )
...
* Migrate to Vitest
* `skipLibCheck` for now
2025-05-11 20:59:28 +02:00
Mateusz Burzyński
cf373e45c9
Switch to esbuild for bundling ( #479 )
...
* Switch to esbuild for bundling
* add changeset
2025-05-11 20:55:50 +02:00
Mateusz Burzyński
ad037f48d0
Import only for semver/functions/lt ( #482 )
2025-05-11 12:21:44 +02:00
Younsang Na and Mateusz Burzyński
e9c36b6964
Avoid hitting a deprecation warning when encountering errors from @octokit/request-error ( #461 )
...
* fix: use status when http err
* tweak code
* add changeset
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-11 11:15:02 +02:00
Mateusz Burzyński
c1f57e52f9
Run typecheck on CI ( #478 )
2025-05-11 11:01:53 +02:00
Mateusz Burzyński
9d933dcd11
Updated @actions/* and @octokit/* dependencies ( #477 )
2025-05-11 11:01:10 +02:00
dependabot[bot]
b4d99d774e
Bump @babel/runtime from 7.21.5 to 7.27.1 ( #464 )
...
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime ) from 7.21.5 to 7.27.1.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.27.1/packages/babel-runtime )
---
updated-dependencies:
- dependency-name: "@babel/runtime"
dependency-version: 7.27.1
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-10 23:27:40 +02:00
github-actions[bot]
42d5417623
Version Packages ( #476 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-10 13:25:20 +02:00
Sam Lanning and Mateusz Burzyński
3c24abeab2
Make git add work consistently with subdirectories ( #473 )
...
* Make git add work consistently with subdirectories
Currently, depending on your `commitMode`,
when running the action with `cwd` set to a subdirectory of a repo,
the action will either:
- `git-cli`: add the files changed in the subdirectory only
- `github-api`: add files changed anywhere in the repository
This commit brings github-api in line with git-cli,
so that it only adds files in the current working directory.
* Explicitly set `cwd` for all exec calls
* Avoid using `ExecOptions` from `@actions/exec`
* Rename type
* remove redundant `filter`
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-10 12:34:27 +02:00
github-actions[bot]
7f0270e8f4
Version Packages ( #468 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-08 15:25:41 +02:00
Herman Jensen and Mateusz Burzyński
15ab130606
Bump @changesets/ghcommit to v1.4.0 ( #471 )
...
* fix: bump @changesets/ghcommit to v1.4.0
* Update .changeset/dry-bugs-applaud.md
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-08 15:22:42 +02:00
Vx-V and Mateusz Burzyński
6e575506e6
Do not pre-start github API request ( #467 )
...
* Do not pre-start github API request
* Create quiet-jeans-poke.md
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-06 23:07:15 +02:00
github-actions[bot]
5f15b43b42
Version Packages ( #463 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-05 10:16:36 +02:00
Sam Lanning and Mateusz Burzyński
207dc3da2d
Introduce an option to use the GitHub API to commit changes, for GPG ( #391 )
...
* Create tags on GitHub using API
To allow for signed tags to be created,
rather than use the git CLI to push tags,
manually push each tag using the GitHub API,
which will sign the tag using the built-in GitHub GPG key.
* Use ghcommit to push changes
To allow for all commits to be signed,
use the GitHub API to push changes.
* Add changeset version
* Allow tag publish to fail, assume it was manually published
* Add to changeset
* Update @s0/ghcommit
* Update ghcommit to fix missing ref bug
* Make using GitHub API Optional
Change this to a minor version bump,
with a new feature that allows for using the
GitHub API to create tags and commits.
* Use a strategy pattern for GitHub API vs CLI usage
* refactor git interactions
* fix mock thing
* usechangesets pkg
* switch to `commitMode`
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2025-05-02 15:32:14 +02:00
Changwan
bd5d1d2a62
Remove unused variable ( #460 )
...
* unused variable
* double negative var
* Revert "double negative var"
This reverts commit 13cd17e381 .
2025-04-22 07:22:46 +02:00
github-actions[bot]
ff7179cf12
Version Packages ( #449 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-10 11:53:19 +01:00
Bjorn Lu
8b16070fe3
Use full git email for github-actions bot ( #448 )
...
* Use full git email for github-actions bot
* Create fluffy-clocks-knock.md
2025-03-10 11:42:00 +01:00
Zachary Cowan
07dc948a9f
Add Dependabot config file ( #432 )
2024-12-14 14:40:37 +01:00
github-actions[bot] and github-actions[bot]
31ff97e8ac
Version Packages ( #416 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-14 19:12:43 +02:00
Ben McCann
57ab80c611
Improve error message when attempting to publish without publish script defined ( #415 )
...
* Improve error message when attempting to publish without publish script defined
* Update src/index.ts
* Update src/index.ts
2024-10-14 18:44:02 +02:00
github-actions[bot] and github-actions[bot]
50750fa876
Version Packages ( #394 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-26 19:01:26 +02:00
48ab0d2f2e
Switch to pull request list API instead of search ( #393 )
...
* Switch to pull request list API instead of search
To reduce the amount of rate-limit that we use,
switch to a cheaper API for determining whether
an existing PR exists for a given branch.
* Ensure PR remains open when updating description
* Update .changeset/clean-bees-count.md
Co-authored-by: willo-icon <161356817+willo-icon@users.noreply.github.com >
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
Co-authored-by: willo-icon <161356817+willo-icon@users.noreply.github.com >
2024-08-26 18:38:29 +02:00
Thomas Beer
89b41e6c69
Fix typos in README.md ( #384 )
2024-07-30 15:02:29 +02:00
Trivikram Kamat
c62ef9792f
Use latest versions of checkout and setup-node actions ( #359 )
2024-03-26 21:11:40 +01:00
github-actions[bot] and github-actions[bot]
63ffd93140
Version Packages ( #357 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-19 12:11:08 +10:00
Ernesto García
f2660aa7e7
Feature: Allow custom branch ( #255 )
2024-03-19 08:57:05 +10:00
github-actions[bot] and github-actions[bot]
e245972e63
Version Packages ( #351 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-16 11:37:28 +01:00
m-shaka and Mateusz Burzyński
9385be9e75
Bump node.js to 20 on the CI ( #350 )
...
* chore: bump nodejs from 16 to 20
* Create kind-sheep-grab.md
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2024-02-16 11:35:19 +01:00
Mateusz Burzyński
2bb9bcbd6b
Update semver package ( #307 )
2023-06-23 13:19:12 +02:00
github-actions[bot] and github-actions[bot]
cbef32198f
Version Packages ( #305 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-23 12:57:14 +02:00
Mark Omarov and Mateusz Burzyński
eb19e25e77
Updated a few dependencies to patch the security vulnerabilities that were reported for their older versions ( #282 )
...
* fix: patch vulnerabilities
* chore: add changeset
* fix: dependabot reported vulnerabilities
* Cleanup resolutions
* tweak changeset
* Update .changeset/wicked-apes-watch.md
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2023-06-23 12:55:59 +02:00
Mateusz Burzyński
49f9bd750b
Upgrade @octokit/plugin-throttling and fix type errors ( #294 )
2023-05-14 16:56:41 +02:00
github-actions[bot] and github-actions[bot]
28271921f0
Version Packages ( #292 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-10 07:26:55 +02:00
Mateusz Burzyński
ba5ea93f34
Replace Parcel with ncc
2023-05-09 17:44:11 +02:00
Mateusz Burzyński
4e64830a00
Update Jest
2023-05-09 17:32:35 +02:00
Viktor Varland and Mateusz Burzyński
db8a1099bc
Wire up @octokit/plugin-throttling with all GitHub Octokit instances ( #291 )
...
* fix: use throttling-wired octokit everywhere
* test: fix run.test.ts
* Update .changeset/new-worms-knock.md
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2023-05-09 17:21:08 +02:00
github-actions[bot] and github-actions[bot]
4cb1c2fbde
Version Packages ( #290 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-09 06:47:54 +02:00
Viktor Varland and Mateusz Burzyński
8b2818674d
Use logging provided by @actions/core ( #289 )
...
* chore: migrate to logging from @actions/core
* Update src/index.ts
* Update .changeset/blue-hornets-marry.md
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2023-05-08 23:42:00 +02:00
github-actions[bot] and github-actions[bot]
ab485bff43
Version Packages ( #288 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-06 11:20:22 +02:00
Viktor Varland and Mateusz Burzyński
225a1e8cbc
Add a throttling plugin to the used Octokit instance to retry requests after hitting secondary rate limits ( #286 )
...
* fix: prevent hitting github secondary rate limits
Adds the octokit plugin for throttling / rate-limiting to fix the
problem where action runs get blocked with a 403 error[1].
The `github.getOctokit`[2] function accepts a list of plugins, so this
passes in the `throttling` plugin[3] to be hooked into the octokit
instance.
It also needs some configuration to setup the `throttle` mechanisms,
passed in to the `getOctokit` function.
[1]: https://github.com/changesets/action/issues/192
[2]: https://github.com/actions/toolkit/blob/main/packages/github/src/github.ts#LL18C40-L18C40
[3]: https://github.com/octokit/plugin-throttling.js
* refactor: change rate limit callback signatures
Based on additional docs, the callbacks seem to have changes to their
signatures[1]. This change aligns this implementation with the docs[2].
[1]: https://octokit.github.io/rest.js/v19#throttling
[2]: https://github.com/octokit/plugin-throttling.js/blob/v5.1.1/src/index.ts#L90-L91
* chore: add changeset
* wire up typed throttle options
* Upgrade TS
* refactor: use console based logging
* Update .changeset/rotten-carrots-pump.md
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2023-05-06 10:52:18 +02:00
Mateusz Burzyński
595655c3ea
Update more examples with references to the latest versions of core actions
2022-12-05 14:55:10 +01:00
allbetter-max
da3a687419
Update examples in the docs to use new versions of other core actions like checkout and setup-node ( #237 )
2022-12-05 14:53:04 +01:00