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
Ernesto García
f2660aa7e7
Feature: Allow custom branch ( #255 )
2024-03-19 08:57:05 +10:00
Mateusz Burzyński
49f9bd750b
Upgrade @octokit/plugin-throttling and fix type errors ( #294 )
2023-05-14 16:56:41 +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
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
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
b78f480998
Upgrade @actions/* dependencies ( #123 )
...
* Upgrade `@actions/*` dependencies
* bumps deps again
* add changeset
2022-11-08 10:26:23 +01:00
Ian Sanders and Mateusz Burzyński
bff53cc50c
Add is:pull-request to search query when looking for existing PR ( #228 )
...
* Add `is:pull-request` to search query when looking for existing PR
* Create sharp-pens-matter.md
* Update .changeset/sharp-pens-matter.md
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2022-11-02 10:23:46 +01:00
Nicola Molinari and Mateusz Burzyński
521c27bf86
Automatically adjust GitHub PR message if it exceeds a size limit of 60k characters by omitting some of the changelog information ( #157 )
...
* fix: body max length
* docs: improve logs
* docs: changeset
* refactor: changeset message to omit some info if message exceeds size limit
* refactor: minor adjustments based on feedback
* Apply nits from code review
* Fixed tests
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2022-05-10 11:06:04 +02:00
David Register and Mateusz Burzyński
993a0a090d
Added pullRequestNumber to the action's outputs ( #167 )
...
* feat: set pullRequesstNumber as action output
* chore: add changeset
* fix: feedback from pr review
* Update .changeset/long-mayflies-yell.md
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2022-04-07 19:10:26 +02:00
An Phi and Mateusz Burzyński
5c0997b25e
Added createGithubReleases input option (defaults to true) to control whether to create Github releases during publish or not ( #130 )
...
* allow skipping creation of Github releases
* fixes for PR review
* minor improvements
* add changeset
* nits
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2022-01-23 11:07:42 +01:00
Jon Rohan and Mateusz Burzyński
c291823920
Set the name of created releases - which ends up as its title in the UI ( #84 )
...
* Sending name: argument to createRelease
* Rebuild the dist file
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com >
2021-04-07 18:26:15 +02:00
Mateusz Burzyński
aacbc22392
Avoid changing HEAD when executing publish ( #81 )
2021-03-23 11:04:41 +01:00
Mateusz Burzyński
b5c0c12a1d
Throw custom error for MODULE_NOT_FOUND when loading @changesets/cli ( #76 )
2021-03-22 11:35:40 +10:00
Jacob Gillespie
640c4a5d64
Switch to using resolve-from rather than require.resolve ( #71 )
2021-02-16 00:36:35 +01:00
Jacob Gillespie
bf4c612018
Require @changesets/cli resolving from cwd ( #67 )
...
* Resolve @changesets/cli with resolve-from
* Use require.resolve directly
* Add documentation section to README
* Add custom version command docs for Yarn 2
2021-02-15 18:51:03 +01:00
Mateusz Burzyński
6c6b3b9bb0
Fixed an issue with the action crashing on commit attempts in projects with commit: true ( #61 )
2020-11-30 08:10:04 +01:00
Mateusz Burzyński
bfeb9e077e
Fixed an issue with treating single package repositories without changesets as versioned at all times ( #41 )
2020-07-07 10:06:02 +10:00
Mateusz Burzyński
2c7afd615c
Upgrade @actions/* packages ( #40 )
2020-07-06 20:33:19 +10:00
Mateusz Burzyński
d846247242
Remove leftover comment
2020-07-06 11:29:23 +02:00
Mateusz Burzyński
cd904b92c7
Fixed an issue with ignored package being included in PR body incorrectly ( #38 )
2020-07-06 19:08:41 +10:00