This repository is part of the Branch, Merge, Ship course on Java Pro Academy. Each Java file has an intentional bug. Your job is to fix them — one bug per branch, one branch per pull request.
- Fork this repository to your GitHub account
- Clone your fork locally
- Create a branch for the bug you're fixing (e.g.,
fix/calculator-subtract) - Fix the bug in the source file
- Commit with a conventional commit message (e.g.,
fix: correct subtract method) - Push your branch to your fork
- Open a pull request against this repository's
mainbranch
| File | Bug | Expected Fix |
|---|---|---|
src/Calculator.java |
subtract() adds instead of subtracting |
Change a + b to a - b |
src/Greeting.java |
greet() says "Goodbye" |
Change "Goodbye" to "Hello" |
src/Weather.java |
Hot and Cold labels are swapped | Swap the return values |
Each file has its own CI check. When you push a fix, the corresponding check turns green. Your goal is to make all three checks pass by the end of the course.
Use these prefixes:
fix/— for bug fixes (e.g.,fix/calculator-subtract)feat/— for new featuresdocs/— for documentation changes
Fix one bug per branch and one branch per pull request. Keep PRs small and focused.