You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+29-9Lines changed: 29 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
`@testing-library/react-native` is a TypeScript/Jest library for testing React Native components with user-focused testing patterns.
4
4
5
5
> [!IMPORTANT]
6
-
> Never run git commands that create commits, push, or modify the index/history (`git commit`, `git push`, `git add`, `git rm`, `git reset`, `git rebase`, `git merge`, `git stash`, `git tag`, etc.). Only make working-tree changes and read-only git inspections; the human stages and commits. See [Git, releases, and PR workflow](agents/git-workflow.md).
6
+
> Never run git commands that create commits, push, or modify the index/history. The human stages and commits. See [Agent rules](#agent-rules).
7
7
8
8
- Package manager: `yarn` (`yarn@4.11.0`)
9
9
- Common commands:
@@ -14,11 +14,31 @@
14
14
-`yarn format:check`
15
15
-`yarn build`
16
16
-`yarn validate`
17
-
- Task-specific guidance:
18
-
-[Architecture and API design](agents/architecture.md)
19
-
-[Build, validation, and repo layout](agents/build-and-validation.md)
20
-
-[TypeScript and code style](agents/code-style.md)
21
-
-[Testing conventions](agents/testing.md)
22
-
-[Native event propagation (bubbling vs direct)](agents/native-events.md)
- When conflicts or staging are involved, resolve file contents in the working tree only, then hand off to the human to stage and commit. Describe the exact commands you would run instead of running them.
38
+
39
+
### PR draft
40
+
41
+
- Maintain `PR.txt` at the repository root using the structure from `.github/PULL_REQUEST_TEMPLATE.md`.
42
+
- Keep `PR.txt` aligned with the current branch diff relative to `origin/main`.
43
+
- Include tests actually run and any known validation gaps in `PR.txt`.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+19-40Lines changed: 19 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,46 +14,25 @@ The core team works directly on GitHub and all work is public.
14
14
15
15
1. Fork the repo and create your branch from `main` (a guide on [how to fork a repository](https://help.github.com/articles/fork-a-repo/)).
16
16
2. Run `yarn` to setup the development environment.
17
-
3. Do the changes you want and test them out in the example app before sending a pull request.
18
-
19
-
### Commit message convention
20
-
21
-
We prefix our commit messages with one of the following to signify the kind of change:
22
-
23
-
-`fix`: bug fixes, e.g. fix incorrect error message.
24
-
-`feat`: new features, e.g. add useful API.
25
-
-`refactor`: code/structure refactor, e.g. new folder structure.
26
-
-`docs`: changes into documentation, e.g. add usage example for `getByText`.
27
-
-`test`: adding or updating tests, eg unit, snapshot testing.
28
-
-`chore`: tooling changes, e.g. change circle ci config.
29
-
-`BREAKING`: for changes that break existing usage, e.g. change API.
30
-
31
-
Our pre-commit hooks verify that your commit message matches this format when committing.
32
-
33
-
### Linting and tests
34
-
35
-
We use TypeScript for type checking, `eslint` and `oxfmt` for linting and formatting the code, and `jest` for testing. Our pre-commit hooks verify that the linter and tests pass when committing. You can also run the following commands manually:
36
-
37
-
-`yarn typecheck`: run TypeScript compiler on all files.
38
-
-`yarn lint`: run eslint.
39
-
-`yarn test`: run tests.
40
-
41
-
### Sending a pull request
42
-
43
-
When you're sending a pull request:
44
-
45
-
- Prefer small pull requests focused on one change.
46
-
- Verify that `typecheck`, `eslint` and tests are passing.
47
-
- Preview the documentation to make sure it looks good.
48
-
- Follow the pull request template when opening a pull request.
49
-
50
-
### Publishing a release
51
-
52
-
We use [release-it](https://github.com/release-it/release-it) to publish a release. It takes care of versioning, changelog generation, and publishing to NPM.
53
-
54
-
```sh
55
-
yarn release
56
-
```
17
+
3. Make your changes, add tests, and try them out in the example app.
18
+
4. Run `yarn validate` to type check, test, lint, and check formatting. CI runs the same checks on your pull request.
19
+
5. Open a pull request following the [pull request guidelines](contributing/git-workflow.md#pull-requests).
20
+
21
+
### Contributor guides
22
+
23
+
Detailed guides live in [`contributing/`](contributing/). They are written for both human contributors and AI coding agents:
24
+
25
+
-[Architecture and API design](contributing/architecture.md): project goals, API design principles, and host component detection
0 commit comments