spire-git-pivotal-tracker 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@ class GitPivotalTrackerIntegration::Command::Finish < GitPivotalTrackerIntegrati
42
42
  repo: github.repo,
43
43
  base: GitPivotalTrackerIntegration::Util::Git.root_branch,
44
44
  head: branch_name,
45
- title: "Fixing #{branch_name}",
45
+ title: "[Delivers ##{story.id}] #{branch_name.gsub("#{story.id}-","")}",
46
46
  body: "#{story.name}\n#{story.description}\nPivotal Task: #{story.url}"
47
47
  )
48
48
  puts 'OK'
@@ -51,6 +51,7 @@ class GitPivotalTrackerIntegration::Command::Start < GitPivotalTrackerIntegratio
51
51
 
52
52
  def development_branch_name(story)
53
53
  suggested = "#{story.id}-#{story.name.strip.gsub(/[^a-zA-Z0-9]/, '-').squeeze}"
54
+ suggested = suggested.split("-")[0, 10].join("-")
54
55
  puts "suggested name: #{suggested}"
55
56
  user_choice = ask("Enter branch name (or enter to accept suggestion)").strip
56
57
  if (user_choice == '')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spire-git-pivotal-tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-03 00:00:00.000000000 Z
12
+ date: 2016-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline