Skip to content

feat(version-bump): replace inline bash with typescript#19

Merged
adrmachado-public merged 1 commit into
mainfrom
feat/version-bump-update
Jun 5, 2026
Merged

feat(version-bump): replace inline bash with typescript#19
adrmachado-public merged 1 commit into
mainfrom
feat/version-bump-update

Conversation

@adrmachado-public

@adrmachado-public adrmachado-public commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

new stuff:

  • Replaces ~110 lines of inline bash in version-bump/action.yml with typed TypeScript scripts
  • adds simple setup-git action that just configures the runner to use the github bot

small tweaks:

@adrmachado-public
adrmachado-public force-pushed the feat/version-bump-update branch 2 times, most recently from 0f595d5 to 5cac193 Compare June 5, 2026 17:22
@adrmachado-public
adrmachado-public marked this pull request as ready for review June 5, 2026 17:22
Comment thread src/release-pr.ts
head: releaseBranch,
});

await octokit.graphql(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: this is a bit hard to review. Are you able to break this out into a graphql file?

Not required, but nicer to look at if this is easy.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think I agree with this. Honestly we should be getting into the practice of basically never in-lining things as much as possible. I may have been the genesis of this. I also need to be better about it

@adrmachado-public adrmachado-public Jun 5, 2026

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.

most of the time i would agree with this but it seems the docs on using octokit generally use inline graphql

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

JK. Adriana and I talked about this and the right way to do this would be type gen'ing and pulling in the GraphQL types that way. I the cost/benefit to doing that for something this small seems lop-sided in the cost direction.

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.

+1. the other alternative is to have a string export in a different type file that exports like export const ENABLE_AUTO_MERGE = 'mutation ...';... at which point it's no different than just declaring a const string here 🤷

@yankrasny yankrasny left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks good and is an improvement of the code. Is there a ticket we can link so that the goal is clearer? The description just says new stuff, but why?

@GoogilyBoogily GoogilyBoogily left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two nits. I'll leave them as comments and if we decide they're not worth changing, I'll approve!

Comment thread src/release-pr.ts
head: releaseBranch,
});

await octokit.graphql(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think I agree with this. Honestly we should be getting into the practice of basically never in-lining things as much as possible. I may have been the genesis of this. I also need to be better about it

Comment thread package.json
},
"overrides": {
"undici": "^8.3.0"
"undici": "^6.23.0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Taking a second look at this. Does this need to be in the overrides section anymore now that it's matching the version in the other package?

@adrmachado-public adrmachado-public Jun 5, 2026

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.

oh you're probably right. i didn't think about that hah. i guess it could probably just move to the regular dependencies section now.

i think the original reason for it being in the overrides is bc pinning it reduces the bundle size to reduce duplications. so i think it makes sense to stay an override

GoogilyBoogily
GoogilyBoogily previously approved these changes Jun 5, 2026

@GoogilyBoogily GoogilyBoogily left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 🐸

@adrmachado-public
adrmachado-public force-pushed the feat/version-bump-update branch from 55d051e to a7e8e1c Compare June 5, 2026 20:18

@GoogilyBoogily GoogilyBoogily left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 🐸

@adrmachado-public
adrmachado-public merged commit 8df72c6 into main Jun 5, 2026
1 check passed
@adrmachado-public
adrmachado-public deleted the feat/version-bump-update branch June 5, 2026 20:25
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.

4 participants