gitlab_merge_request 1.0.1 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cfc73e3941dd469b0282547f52c2d66f979c21b
4
- data.tar.gz: e1c02d5ee0912b3022a69d03e4c56a01dafc16cf
3
+ metadata.gz: 10642f3ed1a992b6ada7e82d1018af08ce6f10b5
4
+ data.tar.gz: b91e2dc0061ff622337215d12db1dfedec89c16b
5
5
  SHA512:
6
- metadata.gz: 617ca31adb11abf35639ae37cf5b20cc8b0062808678bd077525ae494314ea9bf7e04f4ef32dea069dfd27503705a9209072b70e0dee7160d90e41cdfd0f79d5
7
- data.tar.gz: b846a128c065eb0b9f8d49ccc68c6324d52ed847cb505408ed58130e44bdf106bd5a6f611e0cf2a13e9fc1967f356d8ce3e563043629e3b92e3cb4728c809bc3
6
+ metadata.gz: 386deb1ca06abd25222f3d648d1abb67fb6655e73e6f058555a695f3a8fdd214d0f1f240b58d5a9fef94fb64722fe1c31f073f4cbeb27e1328c9890eacb88363
7
+ data.tar.gz: 1e59e9cfce000e1df3c2f9d016e95cf53320317269dd7b93625eecc2a3d2c3dfdba5eb034ffdeddc24855f5076e0d7fb4b6ca0d5bcc7361aec19eb2253ebbd5e
data/bin/git-mr CHANGED
@@ -54,6 +54,9 @@ From: #{source_branch}
54
54
  To: #{target_branch}
55
55
  Title: "
56
56
  title = gets.chomp
57
+
58
+ last_commit_message=`git log --format="%s" HEAD~1..HEAD`
59
+ task_id = $1 if last_commit_message.match(/\A(\d+): /)
57
60
  task_id = $1 if source_branch.match(/\At(\d+)_/)
58
61
 
59
62
  if task_id
@@ -54,6 +54,9 @@ From: #{source_branch}
54
54
  To: #{target_branch}
55
55
  Title: "
56
56
  title = gets.chomp
57
+
58
+ last_commit_message=`git log --format="%s" HEAD~1..HEAD`
59
+ task_id = $1 if last_commit_message.match(/\A(\d+): /)
57
60
  task_id = $1 if source_branch.match(/\At(\d+)_/)
58
61
 
59
62
  if task_id
@@ -1,3 +1,3 @@
1
1
  module GitlabMergeRequest
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_merge_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ales Guzik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab
@@ -110,3 +110,4 @@ signing_key:
110
110
  specification_version: 4
111
111
  summary: Make GitLab merge request
112
112
  test_files: []
113
+ has_rdoc: