Skip to content

Conversation

@anikdhabal
Copy link
Contributor

@anikdhabal anikdhabal commented Jan 17, 2026

What does this PR do?

add separate typecheck and lint workflows for companion. This would have caught the missing useEffect import issue in PR #26931 before it was merged.

Background: PR #26931 was merged with useEffect being used but not imported in AvailabilityDetailScreen.tsx and AvailabilityDetailScreen.ios.tsx. The companion CI only ran builds (expo export and ext:build) which don't catch TypeScript errors the same way tsc --noEmit does.

This adds a new companion-typecheck.yml workflow that runs TypeScript type
checking for the companion app. This would have caught the missing useEffect
import issue in PR #26931.

Changes:
- Add new companion-typecheck.yml workflow file
- Update pr.yml to call the new workflow when companion files change
- Add typecheck-companion to the required jobs list

Co-Authored-By: [email protected] <[email protected]>
@anikdhabal anikdhabal force-pushed the devin/1768666328-add-companion-typecheck branch from f538b7c to 00fae93 Compare January 17, 2026 16:42
@anikdhabal anikdhabal changed the title ci(companion): add separate typecheck workflow to catch type errors ci: add separate typecheck and lint workflows for companion Jan 17, 2026
@calcom calcom deleted a comment from devin-ai-integration bot Jan 17, 2026
@anikdhabal
Copy link
Contributor Author

@anikdhabal anikdhabal marked this pull request as ready for review January 17, 2026 16:57
@anikdhabal anikdhabal requested a review from a team as a code owner January 17, 2026 16:57
@graphite-app graphite-app bot added the core area: core, team members only label Jan 17, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files


- name: Run lint
working-directory: companion
run: bun run lint:all
Copy link
Member

Choose a reason for hiding this comment

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

note: the bun run lint:all command runs both Biome and ESLint. We kept ESLint because it enforces the React compiler linting rules.

Do you think this CI job will work as expected?


- name: Type check
working-directory: companion
run: bun run typecheck
Copy link
Member

Choose a reason for hiding this comment

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

could we please use bun run typecheck:all command here?

Copy link
Member

@dhairyashiil dhairyashiil left a comment

Choose a reason for hiding this comment

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

left some comments

@github-actions github-actions bot marked this pull request as draft January 17, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core area: core, team members only size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants