First and foremost, thank you for considering a contribution to this project! 💖
Your time and effort make a difference, and every pull request, no matter the size, helps move this project forward.
Whether you're fixing a bug, adding a new feature, or improving documentation, your input is valuable. If you're new to open source, welcome! 🎉
Don't worry if you feel unsure about where to start—every bit of help is appreciated, and questions are welcome.
Follow this guide to ensure a smooth contribution process. If you're planning significant work or substantial changes, please create an issue labeled "contribution enquiry" to discuss your proposal. This will help ensure that your work aligns with the project's goals.
-
Fork the Repository
Start by forking the repository. -
Clone Your Fork
Clone your forked repo to your local machine:git clone git@github.com:ekino/node-logger.git
-
Set Upstream
Link back to the main project repository:git remote add upstream git://github.com/ekino/node-logger.git
-
Sync With Upstream
Fetch the latest changes from upstream, usually the main development branch:git pull upstream <dev-branch>
-
Create a Topic Branch
Create a new branch for your feature, fix, or enhancement:git checkout -b <topic-branch-name>
-
Write Tests
Ensure your changes are reliable by including tests. For small patches, a simple test is fine; for new features, create a dedicated test suite. -
Coding Style and Conventions
Maintain the project’s coding standards. Consistent indentation, comments, and style improve readability. -
Commit Changes in Logical Chunks
Split your commits into logical parts. Use git’s interactive rebase to keep your commit history clean. -
Merge With Upstream
Sync your branch with the latest upstream changes:git pull --rebase upstream <dev-branch>
-
Push to Your Fork
Push your topic branch to your fork:git push origin <topic-branch-name>
-
Create a Pull Request
Open a Pull Request with a clear title and description, explaining why and how you made your changes.
- Focused Scope: Keep your PR focused; avoid unrelated changes.
- Commit Messages: Write meaningful commit messages. See this guide for best practices.
- Style Consistency: Follow the project’s formatting and coding style.
- Documentation: Update documentation or comments as needed to explain your changes.
If anything is unclear, or if you're facing any issues while contributing, please don’t hesitate to open an issue. We're here to help!