Contributing
How to suggest a change, ask a question, report a bug, or help translate DomainMOD
Pull Requests
Before submitting a pull request, please contact the maintainers of the repository to discuss the change. As much as we appreciate you wanting to contribute, we don't want you to waste your time working on a change or new feature that won't get implemented (such as a feature that's already in progress).
Every pull request must say in its description how AI was used, as a three-character rating plus a sentence or two of detail. DomainMOD publishes its own AI Code Rating, which depends on how much of the merged code AI wrote, so a pull request without one stays open and isn't merged until it's added.
The rating uses the AI Code Rating scales. The spec rates whole projects, so for a pull request apply its scales to your own work:
- Your own expertise (A–E), not the DomainMOD maintainer's.
- The share of the code lines your pull request adds or changes that AI wrote (0–4), not counting documentation, comments, or deleted lines. A pull request with no added or changed code uses
0. - How carefully you checked the AI-written code (a–e). With no AI-written code, this is
a.
The second character must be accurate, since it feeds DomainMOD's own rating; the other two help us decide how closely to review. For example, B0a is from an experienced developer (B) whose pull request has no AI-written code, and C3b is from a capable developer (C) where AI wrote most of the changed code and they read all of it. Pick the first character for yourself, separately from the other two, and don't copy DomainMOD's own rating. Please don't include an ACR.md file; the project keeps its own.
Running the Tests
DomainMOD's automated tests are in the tests/ folder and use PHPUnit. To run them, you need PHP 8.2 or newer on the command line with the extensions listed in the README, plus dom, mbstring, and xml, and curl to download PHPUnit. From the repository root:
bash tests/get-phpunit.sh
php tests/phpunit.phar -c tests/phpunit.xml.dist
The first command downloads the version of PHPUnit the tests are written for, checks its SHA-256 checksum, and saves it as tests/phpunit.phar, which git ignores. A warning, notice, deprecation, or risky test fails the run, the same as a failed test.
Please make sure the tests pass before submitting a pull request, and add or update tests for the code you change wherever it can be tested. If your pull request fixes a bug, include a test that fails without the fix and passes with it.
Questions, Problems & Feature Requests
Please use the DomainMOD Support Portal for questions, problems using DomainMOD, and feature requests (including new registrar integrations). Feature requests live only in the Support Portal, so other users can vote on them.
If we need to look at your database to help, we'll arrange a safe, temporary way to do it privately. Please never post or email your passwords.
Bug Reports
The Support Portal is the right place for any problem, bugs included. If you're a developer and can point to the code, you can submit a GitHub issue instead. Please report each bug in one place only, not both.
A GitHub issue should be a bug you can reproduce, with the DomainMOD and PHP versions you're using, the steps to reproduce it, and any error messages (with the file and line number, if there is one). Remove any domains, usernames, API keys, and other private details first. Before submitting, please search the existing issues to make sure it hasn't already been reported.
Security Issues
Please don't report security vulnerabilities in a public issue or in the Support Portal. See SECURITY.md for how to report them privately.
Translations
If you're looking to contribute to DomainMOD by doing some translation work, please note that the language files are located in their own repository.
The official DomainMOD translation files can be found here: https://github.com/domainmod/translations
Contributors
Everyone whose pull request has been merged is listed in CONTRIBUTORS.md.