Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 28, 2025

This PR adds a comprehensive .github/copilot-instructions.md file that provides GitHub Copilot coding agents with detailed instructions for working effectively in the react-native-gifted-chat repository.

What's Included

The instructions cover:

  • Validated build and test commands with accurate timing expectations (all commands tested from fresh install)
  • "NEVER CANCEL" warnings with specific timeout recommendations for long-running operations
  • Complete development workflow from dependency installation through validation
  • Example app development using Expo for both native and web platforms
  • Manual validation scenarios to ensure changes work correctly
  • Known issues and workarounds (e.g., snapshot updates after fresh installs)
  • Project structure overview with key directories and files explained

Key Commands Validated

All commands were tested multiple times with timing measurements:

yarn install        # 58 seconds - fresh dependency install
yarn build         # 3 seconds - TypeScript compilation  
yarn lint          # 3 seconds - ESLint with current warnings
yarn test          # 9 seconds - Jest test suite (29 tests, 19 suites)
yarn prepublishOnly # 11 seconds - full validation pipeline

Example app commands:

cd example && yarn install  # 38 seconds
npx expo start              # Starts Metro bundler for development

Manual Testing Performed

  • ✅ Fresh repository clone and complete setup workflow
  • ✅ Build process generates correct TypeScript declarations
  • ✅ All 29 tests pass with updated snapshots for current React Native version
  • ✅ Lint process succeeds (warnings are expected and documented)
  • ✅ Example app Metro bundler starts successfully
  • ✅ Full validation pipeline works end-to-end

The instructions emphasize using validated commands with appropriate timeouts to prevent premature cancellation of builds and tests, which is critical for this TypeScript React Native library with its comprehensive test suite.

Fixes #2654.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.expo.dev
    • Triggering command: node /home/REDACTED/work/react-native-gifted-chat/react-native-gifted-chat/example/node_modules/.bin/expo start --web (dns block)
    • Triggering command: node /home/REDACTED/work/react-native-gifted-chat/react-native-gifted-chat/example/node_modules/.bin/expo start --no-dev --minify (dns block)
  • cdp.expo.dev
    • Triggering command: node /home/REDACTED/work/react-native-gifted-chat/react-native-gifted-chat/example/node_modules/.bin/expo start --web (dns block)
    • Triggering command: node /home/REDACTED/work/react-native-gifted-chat/react-native-gifted-chat/example/node_modules/.bin/expo start --no-dev --minify (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits August 28, 2025 22:21
Co-authored-by: kesha-antonov <11584712+kesha-antonov@users.noreply.github.com>
… accurate timings

Co-authored-by: kesha-antonov <11584712+kesha-antonov@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] ✨ Set up Copilot instructions Add comprehensive GitHub Copilot instructions for react-native-gifted-chat development Aug 28, 2025
@Copilot Copilot AI requested a review from kesha-antonov August 28, 2025 22:29
Copilot finished work on behalf of kesha-antonov August 28, 2025 22:29
@kesha-antonov kesha-antonov marked this pull request as ready for review August 28, 2025 22:30
@kesha-antonov kesha-antonov merged commit 8ef6ff3 into master Aug 28, 2025
4 checks passed
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.

✨ Set up Copilot instructions
2 participants