Contributing
Thank you for your interest in contributing to AI AutoEvals!
Maintainer
Section titled “Maintainer”This module is maintained by Dimitris Spachos.
Development Setup
Section titled “Development Setup”- Clone the repository
- Install dependencies with Composer
- Set up a local Drupal development environment
- Enable the module and its dependencies
Coding Standards
Section titled “Coding Standards”This project follows Drupal coding standards. Please ensure your code:
- Follows Drupal Coding Standards
- Includes proper PHPDoc comments
- Uses strict types (
declare(strict_types=1)) - Has no PHPCS errors
Run coding standards checks:
./vendor/bin/phpcs --standard=Drupal modules/custom/ai_autoevals./vendor/bin/phpcs --standard=DrupalPractice modules/custom/ai_autoevalsRunning Tests
Section titled “Running Tests”Run tests to ensure your changes work correctly:
# Run all tests./vendor/bin/phpunit -c core/modules/simpletest/phpunit.xml modules/custom/ai_autoevals/tests
# Run specific test suite./vendor/bin/phpunit -c core/modules/simpletest/phpunit.xml modules/custom/ai_autoevals/tests/src/Unit./vendor/bin/phpunit -c core/modules/simpletest/phpunit.xml modules/custom/ai_autoevals/tests/src/KernelPull Request Process
Section titled “Pull Request Process”- Fork the repository
- Create a feature branch
- Make your changes
- Add/update tests as needed
- Ensure all tests pass
- Submit a pull request
PR Guidelines
Section titled “PR Guidelines”- Keep PRs focused on a single feature or fix
- Write descriptive commit messages
- Update documentation as needed
- Reference any related issues
Reporting Issues
Section titled “Reporting Issues”When reporting issues, please include:
- Drupal version
- AI module version
- PHP version
- Steps to reproduce
- Expected vs actual behavior
- Any error messages
Feature Requests
Section titled “Feature Requests”Feature requests are welcome! Please:
- Check existing issues first
- Describe the use case clearly
- Explain how the feature would work
Questions
Section titled “Questions”For questions, use the Drupal.org issue queue or contact the maintainers.
License
Section titled “License”By contributing, you agree that your contributions will be licensed under the GPL-2.0-or-later license.