Skip to content

Shaybs/QA-Portal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QA Portal - Source Control

Source code for the QA Portal will be managed in Github. The Qa Portal repository is located at

https://github.com/DevQAC/QA-Portal

Assumption

a) It is assumed you already have a Git account set up. If this is not the case, access http://www.github.com and register for an account

b) It is also assumed that you have Git installed on your development machine (either command line or through your IDE). If not, download and install a Git client (or Git plugin for your IDE)

Project Startup

Clone the Git repository

Create a top level (workspace) folder to store the source code. From this folder run the following command

git clone https://github.com/DevQAC/QA-Portal.git

Pull the development branches

Pull the development branch into your local workspace as follows

git checkout -t origin/development

QA Portal Development

When starting work on a new Jira task, for each repository that you will have to amend, create a local feature branch (i.e. if you need to change both qa-portal-angular and qa-portal-services repos then you'll need to create a local feature branch for each of them)

Create local feature branch

Make sure you are in the development branch of the repository and get the latest changes by running the following commands

cd {path to repo folder in your local workspace}

git checkout development

git pull

Create a new feature branch (name it by Jira Task number and title of change) as follows

git branch feature/JIRA-XXXX-Task-title

Switch to the new branch

git checkout feature/JIRA-XXXX-Task-title

Once you've created your local feature branch start making your changes to the feature branch(es). After you've made amendments to your code, it is advisable to push your local feature branch to the remote repo and create a pull request. This can be done as follows

Push your local feature branch(es)

Repeat the following for each of your feature branches to push local branch to the remote repository

git push origin feature/JIRA-XXXX-Task-title

Create a Pull Request

Log in to Github

Navigate to the repository with your feature branch.

Press the 'New Pull Request' button

Leave the base as 'development'

Press the compare button and select your feature branch

Press the 'Create Pull Request' button.

Complete development

Continue to develop your feature until you are happy that it is working and has been developed in accordance with the projects development guidelines, with unit and integration tests.

Ensure that your feature branch also contains the latest changes that have been merged into the development branch, and works with these changes. You can do this by merging the latest development branch code into your local feature branch. This is best done with your IDE as merging from the command line when there are conflicts can be cumbersome.

At this point, push the changes from your local branch to the branch in the remote repository and inform the development lead that your feature is ready for review.

Pull Request Review

The development lead should then review your changes, ensure that there are no conflicts with the development branch, and that your work adheres to the project standards.

If there are any issues, these should be documented on the Pull request and returned to the developer to address. The review cycle is then repeated.

Approval and Merge

Once the development lead is happy that your changes are acceptable, they should approve the Pull request and merge the changes into the development branch. The feature branches should then be deleted from the repository and you should delete the feature branches from your local workspace.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 45.8%
  • Java 40.9%
  • JavaScript 6.3%
  • HTML 4.3%
  • CSS 2.7%