gitlab_merge_request 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef4a919c391e5c7599e0855d480275b1f5461922
4
- data.tar.gz: b7f5e8276e6a27c43e50d184d86e9487269dd0fa
3
+ metadata.gz: 1cfc73e3941dd469b0282547f52c2d66f979c21b
4
+ data.tar.gz: e1c02d5ee0912b3022a69d03e4c56a01dafc16cf
5
5
  SHA512:
6
- metadata.gz: b0263fd8f1ef6b8f49e07b5a749239d58e0316a7faa7808049be23c3afe8482ca80af1490facf791a2c7680b5ae0cdbcfc30b179a3b92e55870941b4d2764936
7
- data.tar.gz: 3809c5e007a9bdd40a74d0b85217acb208b9009e6af423fd3a6ee30de660d2dd94d8bf783082202b348849ef309e77c2e05053a8fd3dc5ed5a072ed64e744a7b
6
+ metadata.gz: 617ca31adb11abf35639ae37cf5b20cc8b0062808678bd077525ae494314ea9bf7e04f4ef32dea069dfd27503705a9209072b70e0dee7160d90e41cdfd0f79d5
7
+ data.tar.gz: b846a128c065eb0b9f8d49ccc68c6324d52ed847cb505408ed58130e44bdf106bd5a6f611e0cf2a13e9fc1967f356d8ce3e563043629e3b92e3cb4728c809bc3
data/bin/git-mr CHANGED
@@ -39,8 +39,13 @@ target_branch = git_config 'gitlab.merge-request-target' do
39
39
  Gitlab.project(project_id).default_branch
40
40
  end
41
41
 
42
- task_url_template = git_config 'gitlab.task-url-template' do
43
- "http://jira.softswiss.com/browse/CASINO-%s"
42
+ task_url_template = git_config 'gitlab.task-url-template' do |key|
43
+ puts <<-EOF
44
+ Please run:
45
+ git config #{key} TASK_URL_TEMPLATE
46
+ Task url template should be of form "http://jira.example.com/browse/PROJECT-%s" (%s will be replaced with task id from branch name)
47
+ EOF
48
+ exit 1
44
49
  end
45
50
 
46
51
  print "Creating merge request.
@@ -39,8 +39,13 @@ target_branch = git_config 'gitlab.merge-request-target' do
39
39
  Gitlab.project(project_id).default_branch
40
40
  end
41
41
 
42
- task_url_template = git_config 'gitlab.task-url-template' do
43
- "http://jira.softswiss.com/browse/CASINO-%s"
42
+ task_url_template = git_config 'gitlab.task-url-template' do |key|
43
+ puts <<-EOF
44
+ Please run:
45
+ git config #{key} TASK_URL_TEMPLATE
46
+ Task url template should be of form "http://jira.example.com/browse/PROJECT-%s" (%s will be replaced with task id from branch name)
47
+ EOF
48
+ exit 1
44
49
  end
45
50
 
46
51
  print "Creating merge request.
@@ -1,3 +1,3 @@
1
1
  module GitlabMergeRequest
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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.0
4
+ version: 1.0.1
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-10 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab