First off, thanks for taking the time to contribute! 🎉 EventChain is an open-source project and we welcome contributions of all kinds—bug fixes, features, documentation improvements, and more.
This document explains the standard workflow for contributing to EventChain using Git and GitHub.
- Getting Started
- Forking and Cloning the Repository
- Creating Branches
- Committing and Pushing Changes
- Opening a Pull Request
- Syncing Your Fork
- Best Practices
Before contributing, make sure you have:
- A GitHub account
- Git installed locally
- Basic knowledge of Git commands
- Navigate to the EventChain repository on GitHub
- Click the Fork button (top-right corner)
- This creates a copy of the repository under your GitHub account
Go to your preferred working directory and run:
git clone https://github.com/<your-username>/EventChain.git
cd EventChaingit status # Check the current status
git add . # Stage all changes
git commit -m "Your commit message"
git push # Push commits to GitHub
git pull # Pull latest changesmain branch.
Always create a new branch for your work.
git checkout -b <your-branch-name>Example:
git checkout -b fix-auth-bugIf needed, switch branches using:
git switch <your-branch-name>Now you can start working on your feature or bug fix.
After making your changes:
git add .
git commit -m "Fix: resolve authentication issue"
git push origin <your-branch-name>This will push your branch to your forked repository.
-
Go to your forked repository on GitHub
-
Click Compare & Pull Request
-
Set the base repository and branch to:
bitflipper19:main -
Fill out the Pull Request following
PULL_REQUEST_TEMPLATE.md -
Link the related issue using
#issue_id
- Maintainers will review and test your Pull Request
- Changes may be requested
- Once approved, your PR will be merged
- Contribution points will be awarded based on impact and quality
EventChain is actively developed, so keeping your fork up to date is important.
- Go to your forked repository
- Click Sync fork
- Update your fork with the latest upstream changes
Make sure you are on the main branch:
git branchIf you’re not on main, switch:
git switch mainPull the latest changes:
git pull origin mainYour local repository is now up to date.
- Write clear and meaningful commit messages
- Keep Pull Requests focused on a single issue or feature
- Sync your fork before starting new work
- Follow existing code style and conventions
- Be respectful and collaborative in discussions
Every contribution helps improve EventChain. If you have questions or need guidance, feel free to open an issue or start a discussion.
We’re excited to have you on board! 🎉