|
| 1 | +# Contributing to MultiSigEnterpriseVault |
| 2 | + |
| 3 | +Thank you for considering contributing to MultiSigEnterpriseVault! I welcome contributions from the community and am excited to work with you. |
| 4 | + |
| 5 | +## How to Contribute |
| 6 | + |
| 7 | +### Reporting Bugs |
| 8 | + |
| 9 | +- Ensure the bug was not already reported by searching on GitHub under [Issues](https://github.com/emmanuelJet/MultiSigEnterpriseVault/issues). |
| 10 | +- If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring. |
| 11 | +- When opening a new issue, select the appropriate template that best matches your report (e.g., [Bug Report](.github/ISSUE_TEMPLATE/bug-report.md)). |
| 12 | + |
| 13 | +### Suggesting Enhancements |
| 14 | + |
| 15 | +- Search the existing [Issues](https://github.com/emmanuelJet/MultiSigEnterpriseVault/issues) for enhancement suggestions to avoid duplicates. |
| 16 | +- If you find a related issue, feel free to add your thoughts and suggestions. |
| 17 | +- If you don't find an existing issue, open a new one and describe the enhancement in detail. |
| 18 | +- Use the provided template for [feature requests](.github/ISSUE_TEMPLATE/feature-implementation.md) to ensure all necessary information is included. |
| 19 | + |
| 20 | +### Submitting Pull Requests |
| 21 | + |
| 22 | +- Fork the repository and create your branch from `main`. |
| 23 | +- If you've added code that should be tested, add tests. |
| 24 | +- Ensure the test suite passes. |
| 25 | +- Make sure your code lints. |
| 26 | +- Use the [pull request template](.github/PULL_REQUEST_TEMPLATE.md) to ensure all necessary information is included. |
| 27 | +- Follow the checklist in the template to verify that your pull request meets the project requirements. |
| 28 | +- Issue that pull request! |
| 29 | + |
| 30 | +## Code Style |
| 31 | + |
| 32 | +- Follow the existing code style and use `forge fmt` to format your code. |
| 33 | +- Document all functions using [NatSpec comments](https://docs.soliditylang.org/en/v0.8.20/natspec-format.html). |
| 34 | +- Write clear, concise commit messages. |
| 35 | + |
| 36 | +## Branch Naming Guidelines |
| 37 | + |
| 38 | +To keep a clean and understandable Git history, always base new branches off the `main` branch and follow these branch naming conventions: |
| 39 | + |
| 40 | +- Feature Branches: For new features use: `feat/<feature-name>` |
| 41 | + - Example: feat/owner-role |
| 42 | +- Enhancement Branches: For existing feature enhancements or improvements use: `perf/<enhancement-description>` |
| 43 | + - Example: perf/owner-access |
| 44 | +- Bug Fixes: For bug fixes, use: `fix/<issue-description>` |
| 45 | + - Example: fix/gas-estimation |
| 46 | +- Chores or Refactoring: For maintenance or refactoring tasks, use: `chore/<task-description>` |
| 47 | + - Example: chore/update-dependencies |
| 48 | + |
| 49 | +## Commit Message Guidelines |
| 50 | + |
| 51 | +To maintain a clean and readable commit history, follow these guidelines: |
| 52 | + |
| 53 | +- Use Conventional Commits: Format your commit messages as follows: |
| 54 | + |
| 55 | + ```txt |
| 56 | + <type>: <short summary> |
| 57 | + ``` |
| 58 | + |
| 59 | + Examples: |
| 60 | + - feat: signer role functionality |
| 61 | + - fix: gas estimation bug |
| 62 | +- Types of Commits: |
| 63 | + - feat: A new feature |
| 64 | + - fix: A bug fix |
| 65 | + - perf: A feature enhancement |
| 66 | + - docs: Documentation-only changes |
| 67 | + - test: Adding or updating tests |
| 68 | + - chore: Routine tasks like refactoring or updating dependencies |
| 69 | + |
| 70 | +## Community |
| 71 | + |
| 72 | +- Follow best practices for collaboration, and ensure tests are written for all new code. |
| 73 | +- Be respectful and considerate in your communication. |
| 74 | +- Follow the [Code of Conduct](CODE_OF_CONDUCT.md). |
| 75 | + |
| 76 | +## Getting Help |
| 77 | + |
| 78 | +If you have any questions, feel free to reach out by opening an issue, join the community chat, or send an email to <hello@emmanueljet.com>. |
| 79 | + |
| 80 | +I appreciate your contributions and thank you for your support! |
| 81 | + |
| 82 | +Emmanuel Joseph (JET) |
0 commit comments