|
| 1 | +# Contributing to AiogramShopBot |
| 2 | + |
| 3 | +Thank you for your interest in contributing to AiogramShopBot. |
| 4 | + |
| 5 | +This document explains how to propose changes, report bugs, and submit pull requests in a way that is easy to review and maintain. |
| 6 | + |
| 7 | +## Ways to contribute |
| 8 | + |
| 9 | +You can help by: |
| 10 | + |
| 11 | +- reporting bugs |
| 12 | +- improving documentation |
| 13 | +- fixing typos and broken links |
| 14 | +- proposing new features |
| 15 | +- submitting code improvements |
| 16 | +- improving tests, deployment, and developer experience |
| 17 | + |
| 18 | +## Before you start |
| 19 | + |
| 20 | +Please: |
| 21 | + |
| 22 | +1. Search existing issues and pull requests first. |
| 23 | +2. Open an issue before starting large changes. |
| 24 | +3. Keep changes focused and easy to review. |
| 25 | + |
| 26 | +For small fixes such as typos, wording, or broken links, you can usually open a pull request directly. |
| 27 | + |
| 28 | +## Reporting bugs |
| 29 | + |
| 30 | +When reporting a bug, include as much useful context as possible: |
| 31 | + |
| 32 | +- what you expected to happen |
| 33 | +- what actually happened |
| 34 | +- steps to reproduce the issue |
| 35 | +- logs or error messages |
| 36 | +- environment details |
| 37 | + - Python version |
| 38 | + - OS |
| 39 | + - database type and version |
| 40 | + - Redis version |
| 41 | + - deployment method (local, Docker, VPS) |
| 42 | + |
| 43 | +## Suggesting features |
| 44 | + |
| 45 | +When suggesting a feature, please describe: |
| 46 | + |
| 47 | +- the problem you are trying to solve |
| 48 | +- why the feature is useful |
| 49 | +- a possible implementation idea |
| 50 | +- whether it affects users, admins, deployment, or integrations |
| 51 | + |
| 52 | +## Pull request guidelines |
| 53 | + |
| 54 | +Please follow these rules when opening a pull request: |
| 55 | + |
| 56 | +- keep PRs small and focused |
| 57 | +- update documentation when behavior changes |
| 58 | +- avoid unrelated refactors in the same PR |
| 59 | +- use clear commit messages |
| 60 | +- explain the purpose of the change in the PR description |
| 61 | + |
| 62 | +A good pull request usually includes: |
| 63 | + |
| 64 | +- a short summary |
| 65 | +- the motivation for the change |
| 66 | +- screenshots or logs if relevant |
| 67 | +- notes about backward compatibility |
| 68 | + |
| 69 | +## Code style |
| 70 | + |
| 71 | +General expectations: |
| 72 | + |
| 73 | +- prefer readable and explicit code |
| 74 | +- keep functions focused and maintainable |
| 75 | +- avoid unnecessary complexity |
| 76 | +- preserve existing project structure unless refactoring is justified |
| 77 | + |
| 78 | +If you introduce a new dependency, explain why it is needed. |
| 79 | + |
| 80 | +## Documentation changes |
| 81 | + |
| 82 | +Documentation improvements are very welcome. |
| 83 | + |
| 84 | +If you change: |
| 85 | + |
| 86 | +- setup flow |
| 87 | +- environment variables |
| 88 | +- admin behavior |
| 89 | +- user-facing flows |
| 90 | +- referral or payment logic |
| 91 | + |
| 92 | +please update the related documentation as part of the same pull request. |
| 93 | + |
| 94 | +## Security-related changes |
| 95 | + |
| 96 | +Do not open a public issue for sensitive vulnerabilities. |
| 97 | + |
| 98 | +Please follow the instructions in [SECURITY.md](SECURITY.md). |
| 99 | + |
| 100 | +## Review process |
| 101 | + |
| 102 | +Maintainers may request: |
| 103 | + |
| 104 | +- code changes |
| 105 | +- documentation updates |
| 106 | +- a smaller scope |
| 107 | +- clarification about architecture decisions |
| 108 | + |
| 109 | +Not every contribution can be merged, but thoughtful contributions are appreciated. |
| 110 | + |
| 111 | +## License |
| 112 | + |
| 113 | +By contributing to this repository, you agree that your contributions will be licensed under the same license as the project. |
0 commit comments