- Go to the repository and click the "Fork" button at the top right of the page. This creates a copy of the repository under your GitHub account.
- Clone your forked repository to your local machine using the following command:
git clone https://github.com/<your-username>/repo-name.git
- Before making changes, create a new branch for your bug fix:
git checkout -b bug-fix-<description>
- If you identify a bug, create an issue in the repository describing the bug. Include the following details:
- Bug Description: What is the bug?
- Steps to Reproduce: What actions lead to the bug?
- Expected Behavior: What should happen?
- Actual Behavior: What happens instead?
- After creating the issue, fix the bug in your local branch. Make sure to:
- Test your fix locally.
- Add a test case to the
assembler/examplesfolder that demonstrates the issue and ensures the fix works.
- Once you’ve fixed the bug and added the test case, commit your changes with a clear commit message:
git add . git commit -m "Fix bug: <describe the bug fix> and add test case"
- Push your changes to your forked repository:
git push origin bug-fix-<description>
- Go to your repository on GitHub, and click on the "Compare & pull request" button. This will let you open a pull request (PR) for the repository you forked from.
- In the PR description, reference the issue number and clearly explain what bug you fixed, how you fixed it, and which test case you added to verify the fix.
- Always create an issue for every bug you encounter. The issue should include:
- Bug Description
- Steps to Reproduce
- Expected vs Actual Behavior
- Screenshots or logs (if applicable)