- Do any leftover iP tasks from the previous week
- Create a PR to the upstream repo
- Add Increments as branches:
Level-7,Level-8 - Add Increments:
A-MoreOOP,A-Packages,A-Gradle,A-JUnit,A-Jar - Add Increments as parallel branches:
A-JavaDoc,A-CodingStandard,Level-9
Reminder about the deadline for the weekly project tasks:
1 Do any leftover iP tasks from the previous week
- Remember to do any leftover increments from the past weeks before starting on the current week's increments. This guideline applies to future weeks too.
2 Create a PR to the upstream repo
- Create a pull request (PR) from your fork to the upstream repo. Note the following:
- Create the PR from the
masterbranch of your fork to themasterbranch of the upstream repo (https://github.com/nus-cs2103-AY2223S2/ip) - Set the PR name as
[{Your full/partial name or your Github username}] iP
e.g.,[Richard Mathews Chee] iPor[Rich ... hee] iPor[TheRichMat] iP
Note that the PR name will be publicly visible.
You may leave the description as empty. - If you created the PR correctly, it should appear in the list of PRs here.
- Steps for creating a PR is given in this textbook topic (steps 5 onwards):
- Create the PR from the
The PR will update automatically to reflect your latest code every time you push code to your fork. As a result, it provides a convenient way for us to access the current state of all your iP code from one location.
3 Add Increments as branches: Level-7, Level-8
- Do Level 7 in a branch named
branch-Level-7. Here are the steps:- Start a branch
branch-Level-7. - Implement Level 7 while committing to that branch at appropriate points,
- Merge the branch back to the master branch (remember to create a merge commit i.e., no fast-forward).
- Tag the merge commit in the
masterbranch. - Push the
masterbranch, push thebranch-Level-7, and push the tag, to your fork.
Advanced git users: do not delete the branch after merging.
Only merged branches are detected by the script. After merging a branchb1to themasterbranch, you need to push both themasterand theb1branches to the fork. Pushing themasterbranch does not automatically take theb1branch along with it just because it is already merged to themasterbranch.
- Start a branch
- Do Level 8 similar to the above, using a branch
branch-Level-8.
4 Add Increments: A-MoreOOP, A-Packages, A-Gradle, A-JUnit, A-Jar
- While not required, you are encouraged to use separate branches for each increment.
Reason: that way, themasterbranch will always stay in a 'unbroken' state as the work-in-progress will be in a separate branch till such work is ready to be merged. - As before, commit, tag, and push, after each increment.
- Do the following increments in the given order because after doing
A-Gradleyou can use the Gradle option (rather than the Intellij option) when doingA-JUnitandA-JARas they are easier to do using Gradle.
Note the following when you do the A-Jar increment given above:
- Do not commit the JAR file. We don't normally commit generated binary files into the repository.
- If it does not require any code changes, you may tag the commit at which this was achieved as
A-Jar(even if that commit has another tag already). Otherwise tag the latest commit as usual. In both cases, push the tag to the fork.
5 Add Increments as parallel branches: A-JavaDoc, A-CodingStandard, Level-9
- Implement these three increments as three branches first (branch names:
branch-A-JavaDoc,branch-A-CodingStandard,branch-Level-9), and then merge them one-by-one. Hopefully, you will encounter some merge conflicts so that you get to practice de-conflicting branches. - The Java and Git standards to follow (for
A-CodingStandard) are given in this page. - After finishing, assuming you encountered merge conflicts (and some were rather painful to resolve), think of how such conflicts could have been reduced (e.g., by changing the order of merging, or minimizing parallel branches when certain type of changes are being done to the code).