paint-brush
How to protect code with Buddy and GitHub status checksby@BuddyWorks
919 reads
919 reads

How to protect code with Buddy and GitHub status checks

by BuddyMarch 21st, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This article will explain how to secure yourself from merging errors in your <a href="https://hackernoon.com/tagged/github" target="_blank">GitHub</a> projects with BuddyWorks tests run on Buddy.

Company Mentioned

Mention Thumbnail
featured image - How to protect code with Buddy and GitHub status checks
Buddy HackerNoon profile picture

This article will explain how to secure yourself from merging errors in your GitHub projects with BuddyWorks tests run on Buddy.

Introduction

Git along with its branches seems to be the best invention over the ages (at least for developers). Adding branches, gitflow and pull requests to development workflow is a perfect way to make your code quality better.

Gitflow in practice usually looks like this:

  1. Junior Developer gets a task ‘extend a new feature’
  2. He/she adds a new branch and codes the feature
  3. Once the feature is ready, the developer adds a pull request
  4. Senior Developer checks the code and assigns back with the comments
  5. Eventually, the feature branch is merged into the master branch and the brand new feature is ready to be deployed

Bear in mind that no matter how well-skilled the Senior Dev is, such approach doesn't guarantee that the code includes no errors.

The principle rule of Continuous Integration states that all changes made in the code need to be tested before merging them to the master branch.

Read the whole article here.