Skip to content

Add twirp client - #1486

Merged
bethanyj28 merged 17 commits into
mainfrom
bethanyj28/add-twirp-client
Aug 9, 2023
Merged

bethanyj28 merged 17 commits into
mainfrom
bethanyj28/add-twirp-client

Conversation

@bethanyj28

@bethanyj28 bethanyj28 commented Aug 8, 2023 •

Copy link
Copy Markdown
Contributor

Tracking: https://github.com/github/c2c-actions-checks/issues/1699

This PR builds off of #1481 to initialize the generated twirp client. It uses the @actions/http-client package to serve the HTTP request. Additionally, I chose to use the JSON client as it was easier to seralize the data and grok the code. I added this functionality to the src/shared folder as it will eventually be leveraged by the download code.

I also reverted the target bump to es2020 and just set the generator to use strings for bigints.

Comment on lines +163 to +165
maxAttempts?: number,
baseRetryIntervalMilliseconds?: number,
retryMultiplier?: number

@bethanyj28 bethanyj28 Aug 8, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are only passed in so tests don't time out while testing retries.

@bethanyj28
bethanyj28 marked this pull request as ready for review August 9, 2023 14:15
@bethanyj28
bethanyj28 requested a review from a team as a code owner August 9, 2023 14:15
@bethanyj28
bethanyj28 merged commit 92695f5 into main Aug 9, 2023
@bethanyj28
bethanyj28 deleted the bethanyj28/add-twirp-client branch August 9, 2023 14:46
Derrick-MUGISHA pushed a commit to Derrick-MUGISHA/toolkit that referenced this pull request Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants