Note
This procedure is based on the GitHub flow.
Issue ➜ Branch ➜ Commits ➜ PR ➜ Review ➜ Merge
The following diagram shows this workflow in the context of repositories:
Outline:
- Create a
Lab Taskissue - Switch to the
mainbranch - Pull changes from
mainonorigin - Pull changes from
mainonupstream - Switch to the
<task-branch> - Edit files
- Commit changes
- (Optional) Undo commits
- Push commits
- Create a PR to the
mainbranch in your fork - Get a PR review
- Merge the PR
- Clean up
Create an issue using the Lab Task issue form.
Switch to the main branch in VS Code.
Pull changes from main on origin.
Pull changes from main on upstream to get the latest fixes from the instructors' repository.
Create a new <task-branch> and switch to it.
Alternatively, the name of that branch (without < and >).
Edit files using VS Code to produce changes.
Commit changes to the <task-branch> to complete the task.
Undo commits if necessary.
- Publish the branch with your changes if it's not yet published.
- Push more commits to the published branch if necessary.
Create a PR from the branch <task-branch> to main. Replace:
Warning
By default, GitHub sets the base repository to the upstream (inno-se-toolkit). You must change the base repository to your own fork (<your-github-username>/<lab-repo-name>) before creating the PR. Do not create PRs to the upstream repo.
-
Request a review of the PR from the collaborator.
-
Conduct the PR review together following the PR review rules.
-
Get the collaborator to approve the PR.
As a reviewer:
- Check the task's Acceptance criteria.
- Leave at least one comment — point out problems or confirm that items look good.
- Approve the PR when all relevant acceptance criteria are met.
As a PR author:
- Address reviewer comments (fix issues or explain your reasoning).
- Reply to comments, e.g., "Fixed in d0d5aeb".
Click Merge pull request.
-
Close the issue.
-
Delete the PR branch (
<task-branch>).