git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| #.circleci/config.yml | |
| version: 2.1 | |
| executors: | |
| test_executor: | |
| docker: | |
| - image: circleci/ruby:${RUBY_VERSION} | |
| working_directory: ~/app |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| require 'rails_helper' | |
| RSpec.describe TodosController, :type => :controller do | |
| context "GET index" do | |
| #context "POST create" do | |
| #context "GET show" do | |
| #context "PATCH update" do (or PUT update) | |
| #context "DELETE destroy" do | |
| #context "GET new" do |
| describe 'git process' do | |
| describe 'commit message' do | |
| it 'includes the Pivotal Tracker story id' do | |
| includes_properly_formatted_pt_id?.should be_true | |
| end | |
| def includes_properly_formatted_pt_id? | |
| # [Fixes #1234555] for individual stories | |
| # [Fixes #1234555 #928756] if the fix affects multiple stories | |
| last_commit_message = %x{git log -1 --pretty=%B --no-merges} |