Skip to content

Refactor commit message to unit test#94

Merged
bluwy merged 4 commits into
mainfrom
refactor-commit-tests
Jun 11, 2026
Merged

Refactor commit message to unit test#94
bluwy merged 4 commits into
mainfrom
refactor-commit-tests

Conversation

@bluwy

@bluwy bluwy commented Jun 11, 2026

Copy link
Copy Markdown
Member

We have some integration tests to verify that the commit message works properly. I think this is overkill and slows down the CI. I refactored it as a unit test instead.

It's not completely perfect here, ideally we'd spy on the octokit call to verify that the commit message is properly passed. But right now, I'm planning some API changes that will change that part so I didn't do it for now.

@bluwy bluwy requested a review from Andarist as a code owner June 11, 2026 03:37
Andarist
Andarist previously approved these changes Jun 11, 2026
Comment thread .github/workflows/ci.yml
- name: Build
run: pnpm build

- name: Unit tests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could push this to another job so it would run on forks. at the moment, we rely on merge queue rejecting broken integration tests because those require secrets.

It would complicate the setup though so perhaps it's not worth it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah that makes sense. I'd like to push more tests as unit tests so forks can run it. I think I can follow up later

Comment thread vitest.integration.config.ts
@bluwy bluwy requested a review from Andarist June 11, 2026 09:03
@bluwy bluwy enabled auto-merge June 11, 2026 09:03
@bluwy bluwy added this pull request to the merge queue Jun 11, 2026
Merged via the queue into main with commit 99b48dd Jun 11, 2026
11 checks passed
@bluwy bluwy deleted the refactor-commit-tests branch June 11, 2026 09:15
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