Files
cwshed-clone/CONTRIBUTING.md
T

2.6 KiB

Contributing / Участие в проекте

Русская версия

Thanks for improving the Belki report generator and calculator.

Before you start

  • Open an issue or discuss substantial changes before implementing them.
  • Keep changes focused: do not combine a feature, refactor, and formatting-only rewrite in one contribution.
  • Do not add tokens, passwords, production kubeconfigs, .env files, or real user data to the repository.
  • Keep calculation rules independent from HTTP, VK, and Kubernetes code.
  • Preserve copyright and license headers in legacy CatWar userscripts and bundled third-party assets. Do not replace or relicense them.

Development and checks

Use the commands documented in README.md for local work. Before opening a merge request, run the targeted test suite for the changed behavior; run make test when the change affects the application broadly.

For every frontend change, check the rendered page at desktop and narrow mobile widths, including keyboard focus and error states. Mobile adaptation is a required part of the interface: controls remain usable by touch, related short fields may share a row only when they fit, and the page must not create horizontal scrolling. For deployment or Kubernetes changes, validate the manifest and describe any environment-specific step in the merge request.

AI-assisted work

AI agents may be used to explore, write, or review changes, but the contributor remains responsible for every submitted line.

  • Read the complete diff before committing; do not merge an agent's output blindly.
  • Independently run the relevant tests and inspect the rendered UI or runtime behavior when the change affects it.
  • Check that generated changes match the requested behavior, do not weaken authentication or validation, and do not introduce secrets, personal data, or unrelated rewrites.
  • Treat an agent's test summary or claim of success as a lead, not proof; record the checks you actually ran in the merge request.
  • Do not give an agent production credentials, unmasked configuration, or access beyond what is necessary for the task.

Merge requests

  • Explain the user-visible result and how it was verified.
  • Add or update tests for behavior changes when practical.
  • Update README.md, structure_and_data.md, or the relevant document when the project structure, configuration, or operating procedure changes.
  • Use clear, focused commits and do not include unrelated generated files.

By submitting a contribution, you agree that it may be distributed under the repository's MIT License.