|
| 1 | +# Contributing to NativeAppTemplate API |
| 2 | + |
| 3 | +Thanks for your interest in contributing! This document explains how to report issues, propose changes, and submit pull requests. |
| 4 | + |
| 5 | +## Code of Conduct |
| 6 | + |
| 7 | +This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold it. |
| 8 | + |
| 9 | +## Reporting Bugs |
| 10 | + |
| 11 | +Before opening an issue, please: |
| 12 | + |
| 13 | +1. Search existing [issues](https://github.com/nativeapptemplate/nativeapptemplateapi/issues) to avoid duplicates. |
| 14 | +2. Confirm the bug reproduces on the `main` branch. |
| 15 | +3. Include: |
| 16 | + - Ruby and Rails versions (`ruby -v`, `bin/rails -v`) |
| 17 | + - PostgreSQL version |
| 18 | + - Steps to reproduce |
| 19 | + - Expected vs actual behavior |
| 20 | + - Relevant log output or stack traces |
| 21 | + |
| 22 | +## Reporting Security Vulnerabilities |
| 23 | + |
| 24 | +**Do not open public issues for security vulnerabilities.** See [SECURITY.md](SECURITY.md) for the disclosure process. |
| 25 | + |
| 26 | +## Proposing Changes |
| 27 | + |
| 28 | +For non-trivial changes, please open an issue first to discuss the approach before investing implementation time. |
| 29 | + |
| 30 | +## Pull Requests |
| 31 | + |
| 32 | +1. Fork the repository and create a feature branch from `main`. |
| 33 | +2. Make your changes with clear, focused commits. |
| 34 | +3. Add or update tests for any behavioral changes. |
| 35 | +4. Run the full test suite locally: |
| 36 | + ```bash |
| 37 | + bin/rails test |
| 38 | + ``` |
| 39 | +5. Run the linter and security scanner: |
| 40 | + ```bash |
| 41 | + bin/rubocop |
| 42 | + bin/brakeman --no-pager |
| 43 | + ``` |
| 44 | +6. Push your branch and open a pull request against `main`. |
| 45 | +7. In the PR description, explain *what* changed and *why*. |
| 46 | + |
| 47 | +### Style |
| 48 | + |
| 49 | +This project uses [RuboCop with the Rails Omakase style](https://github.com/rails/rubocop-rails-omakase). Please ensure `bin/rubocop` passes before submitting. |
| 50 | + |
| 51 | +### Tests |
| 52 | + |
| 53 | +- Tests use Minitest with parallel execution. |
| 54 | +- Place new tests under `test/` mirroring the source structure. |
| 55 | +- Use fixtures (`test/fixtures/`) for test data. |
| 56 | +- Mock external HTTP calls with WebMock. |
| 57 | + |
| 58 | +## Development Setup |
| 59 | + |
| 60 | +See [README.md](README.md) for full setup instructions. |
| 61 | + |
| 62 | +## License |
| 63 | + |
| 64 | +By contributing, you agree that your contributions will be licensed under the [MIT License](LICENSE). |
0 commit comments