gitcycle 0.2.16 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -152,27 +152,24 @@ Gitcycle automatically knows if you are checking out an upstream branch:
152
152
  Todo
153
153
  ----
154
154
 
155
+ Nice to haves:
156
+ * gitc branch [lh]
157
+ * gitc branch [gitissue]
158
+ * gitc ready # switch me back to rc or master
159
+ * gitc ready - issue already closed, will open a new issue
160
+
155
161
  * Conflict recording not working
156
- * Add comment on lighthouse with issue URL
157
- * Collab fork should change gitc ready to auo merge to the parent fork. gitc pull should pull from br and parent fork. gitc push should push to your same fork.
158
- Lighthouse ticket changes to pending-qa if ticket is not the same as the parent.
162
+ * gitc qa pass [issue] should use a qa_rc_tongueroo_temp branch so it doesnt blow away the changes in the qa_rc_tongueroo branch
163
+ * not working : https://gist.github.com/819c99281f5d6492de47
164
+ * gitc qa pass (all), doesnt update lighthouse to state pending-approval
165
+ * Collaborator mode = work on same ticket, gitc ready readys ticket no matter who is working on it, if more than one ticket then we should have a feature branch that people are basing tickets off of
159
166
  * Hook to run after gitc qa pass, so I can write a script for amit that will auto merge master into rc
160
- * gitc merge chrisped/branch-with-reverts # to quickly revert changes
161
- * Label issues with ticket milestone
162
167
  * Issues aren't assigned to people
163
- * Add comment on lighthouse with issue URL
164
168
  * On pass or fail, send email to Github email
165
169
  * Note you can use gitc with a string (and get this working)
166
170
  * gitc qa pass, should not set ticket to pending-approval if its already resolved
167
- * If gitc redo happens on branch with Github issue, close the existing issue
168
- * Instead of detecting CONFLICT, use error status $? != 0
169
- * gitc ready - possibly do syntax checks
171
+ * Everything before colon in ticket name, make shorter somehow
170
172
  $ gitc st - shortcut
171
- * issues aren't assigned to people
172
- * There's still a Tagging Issue I tried to fix parseLabel http://d.pr/8eOS , Pass should remove Pending, but remove the Branch Name
173
- * gitc qa pass 1234 # doesnt update lighthouse and screws up git issue tags
174
- * [issue number] it marks it pending-qa and failed.. not correct. I'll take a look at this over the weekend -Tung
175
- * gitc qa clean # to clean up old branches
176
- * gitc qa pass # if ticket resolved, it should stay resolved
177
- * gitc ready # if pull requests already created, it should prompt and explain that a new branch and issue is being created, consider effect of multiple developers
178
- * If feature branch changed between QA branch creation and QA merge, alert QA engineer
173
+ * gitc clean # to clean up old branches
174
+ * fail should change to inactive
175
+ * gitc pull: shouldnt matter who does it, it should update the latest br/rc, not working https://gist.github.com/22b1e248e8dba7a32288
@@ -1,6 +1,6 @@
1
1
  Feature: Discuss
2
2
 
3
- Scenario: No parameters and nothing committed
3
+ Scenario: (Discuss) No parameters and nothing committed
4
4
  Given a fresh set of repositories
5
5
  When I cd to the user repo
6
6
  And I execute gitcycle branch with a new URL or string
@@ -15,7 +15,7 @@ Scenario: No parameters and nothing committed
15
15
  """
16
16
  And redis entries valid
17
17
 
18
- Scenario: No parameters and something committed
18
+ Scenario: (Discuss) No parameters and something committed
19
19
  Given a fresh set of repositories
20
20
  When I cd to the user repo
21
21
  And I execute gitcycle branch with a new URL or string
@@ -327,7 +327,8 @@ Then /^redis entries valid$/ do
327
327
  'user' => config['user'],
328
328
  'source' => collab ? 'some_branch' : 'master'
329
329
  }
330
- if @scenario_title == 'No parameters and something committed'
330
+ if @scenario_title.include?("(Discuss)") && @scenario_title.include?("something committed")
331
+ should['labels'] = 'Branch - master'
331
332
  should['issue_url'] = $github_url
332
333
  end
333
334
  branch.should == should
data/gitcycle.gemspec CHANGED
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "gitcycle"
9
- s.version = '0.2.16'
9
+ s.version = '0.2.17'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'Winton Welsh' ]
12
12
  s.email = [ 'mail@wintoni.us' ]
data/lib/gitcycle.rb CHANGED
@@ -550,12 +550,12 @@ class Gitcycle
550
550
 
551
551
  if branches(:match => target)
552
552
  if yes?("You already have a branch called '#{target}'. Overwrite?")
553
- run("git push origin :#{target} -q")
554
- run("git checkout master -q")
555
- run("branch -D #{target}")
553
+ run_safe("git push origin :#{target} -q")
554
+ run_safe("git checkout master -q")
555
+ run_safe("git branch -D #{target}")
556
556
  else
557
- run("git checkout #{target} -q")
558
- run("git pull origin #{target} -q")
557
+ run_safe("git checkout #{target} -q")
558
+ run_safe("git pull origin #{target} -q")
559
559
  return
560
560
  end
561
561
  end
@@ -859,6 +859,14 @@ class Gitcycle
859
859
  end
860
860
  end
861
861
 
862
+ def run_safe(cmd)
863
+ run(cmd)
864
+ if $? != 0
865
+ puts "The last command was supposed to run without error, but it didn't :(\n".red
866
+ puts "Please copy this session's output and send it to gitcycle@bleacherreport.com.\n".yellow
867
+ end
868
+ end
869
+
862
870
  def yes?(question)
863
871
  q(question, " (#{"y".green}/#{"n".red})").downcase[0..0] == 'y'
864
872
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcycle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 16
10
- version: 0.2.16
9
+ - 17
10
+ version: 0.2.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-02 00:00:00 -08:00
18
+ date: 2012-05-01 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency