Welcome to the IWD Website 2024 GitHub repository! This document provides guidelines on how to contribute to the project using Visual Studio Code (VS Code). Follow these steps to clone the repository, create feature or bug-fix branches, commit your changes, and create a pull request.
- Open VS Code.
- Go to View -> Command Palette (or press
Ctrl+Shift+Pon Windows/Linux,Cmd+Shift+Pon Mac). - Type
Git: Cloneand select it. - Enter the repository URL:
https://github.com/maryamtello1/IWD-website-2024.git - Choose a local directory where you want to clone the repository and click
Select Repository Location. - Once cloned, a prompt will ask if you want to open the cloned repository. Click
Open.
Always ensure your branches are created off the dev branch. Don't commit directly to main because this can mess the website up. Before creating a new branch, make sure to pull the latest changes:
- Switch to the
devbranch by clicking on the branch name in the bottom left corner and selectingdevfrom the list. - Pull the latest changes from
deveither by clicking on the source control tab, and then selectingpullfrom the dropdown menu or by typing git pull in the terminal.
For new features, create a branch named feature/<feature-name>. For example, if you are adding a navbar, create a branch called feature/navbar. I would prefer if your feature name aligns with your issue name.
For bug fixes, create a branch named bug-fix/<bug-name>.
For refactoring tasks, create a branch named refactor/<task-name>. Refractoring is when I ask you to modify/clean up the code without changing its function. that might involve moving it to a different file, making it more modular, etc.
- In VS Code, open the Source Control sidebar (or press
Ctrl+Shift+G). - Click on the branch icon in the bottom left corner, then choose
Create new branch.... - Enter your branch name (e.g.,
feature/navbar) and selectdevas the base branch when prompted.
- Make your changes in the codebase.
- Open the Source Control sidebar.
- Stage your changes by clicking the
+button next to each changed file or right-click and selectStage Changes. - Enter a commit message in the message box at the top. Make it descriptive, indicating what changes you've made.
- Commit the changes by clicking the checkmark icon at the top of the Source Control sidebar or pressing
Ctrl+Enter.
- Push your branch to GitHub by clicking on the
...icon in the Source Control sidebar, selectingPush, and then pushing your current branch. - Go to the GitHub repository page in your web browser.
- You should see your recently pushed branch. Click
Compare & pull request. - Ensure the base branch is set to
dev. - Fill in the pull request details, explaining your changes.
- Assign the pull request to either Maryam or Abdul for review by adding them as reviewers.
- Click
Create pull request.