gitlab_mr_release 0.3.0.beta1 → 0.3.0

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: dfd1bd012a6623b07ec88422301e7a903bd27e52
4
- data.tar.gz: c210cb149e78a9633a35a6e99a4a88f2058bc40f
3
+ metadata.gz: 00d31b1babd4f48b1e7b557985dc02f6adbeb563
4
+ data.tar.gz: 68d69687663be7d891eb54efd1de5fd9d51afd75
5
5
  SHA512:
6
- metadata.gz: b0f883786063a983f7d1e822fa40845835a19b00b71439835ee34c60049f1639e8523fd7928abf06aaa8d2e55a8397b3bd537eb491d1a7bfca5f32b9876e62c6
7
- data.tar.gz: f9babb8178923687b0f47b7d5ca066f5efc0bdd04d25b84e86fd2d9450103095c3ce702f40c6ac07a0bfca086c1d5cc6426b425c7c60dd99e7a4ced9d21ecf0a
6
+ metadata.gz: 93af3007cd402a4e12cfba042a791b478cec36b4ab233d0411ca2b8d4592e5db144a3a1d3af0b5fb7257eaf6528aa5b8ad9bc7c76bff1674509bc5347d86f0f5
7
+ data.tar.gz: 898863fb4e1f56df0c04de62f1f224d2775d107fa15f22d318747d77501104ce5e7fc5dbd3958c5a34093fc969d0c1b0bd903cc2e9b40b2d7b41cf329aad075e
@@ -1,5 +1,8 @@
1
1
  ## Unreleased
2
- [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v0.2.0...master)
2
+ [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v0.3.0...master)
3
+
4
+ ## v0.3.0
5
+ [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v0.2.0...v0.3.0)
3
6
 
4
7
  * Support MR labels
5
8
  * https://github.com/sue445/gitlab_mr_release/pull/13
data/README.md CHANGED
@@ -53,7 +53,7 @@ description is accepted MergeRequests title between `--source` and `--target`
53
53
 
54
54
  ![merge_request](img/merge_request.png)
55
55
 
56
- detail
56
+ #### detail
57
57
 
58
58
  ```sh
59
59
  $ gitlab_mr_release help create
@@ -63,12 +63,24 @@ Usage:
63
63
  Options:
64
64
  -s, [--source=SOURCE] # Source branch (e.g. develop)
65
65
  -t, [--target=TARGET] # Target branch (e.g. master)
66
- [--title=TITLE] # MergeRequest title (default. 'Release :source -> :target')
66
+ [--title=TITLE] # MergeRequest title (default. 'Release :timestamp :source -> :target')
67
67
  -l, [--labels=LABELS] # Labels for MR as a comma-separated list (e.g. 'label1,label2')
68
68
 
69
69
  Create merge requrst
70
70
  ```
71
71
 
72
+ #### options
73
+ Some options can be specified in both the command arguments and environment variables
74
+
75
+ * `--source` , `DEFAULT_SOURCE_BRANCH` **(either one is required)**
76
+ * Source branch (e.g. `develop`)
77
+ * `--target` , `DEFAULT_TARGET_BRANCH` **(either one is required)**
78
+ * Target branch (e.g. `master`)
79
+ * `--title`
80
+ * MergeRequest title (default. 'Release :timestamp :source -> :target')
81
+ * `--labels` , `DEFAULT_LABELS`
82
+ * Labels for MR as a comma-separated list (e.g. `label1,label2`, default. no labels)
83
+
72
84
  ## ProTip
73
85
  ### .env.gitlab
74
86
  Environment variables read from `~/.env.gitlab` and current `.env.gitlab`
@@ -111,8 +123,8 @@ DEFAULT_TITLE=Release <%= Time.now %> <%= source_branch %> -> <%= target_branch
111
123
 
112
124
  `DEFAULT_TITLE` supports erb.
113
125
 
114
- * `source_branch` is `--source` in commandline args
115
- * `target_branch` is `--target` in commandline args
126
+ * `source_branch` is `--source` or `DEFAULT_SOURCE_BRANCH`
127
+ * `target_branch` is `--target` in `DEFAULT_TARGET_BRANCH`
116
128
 
117
129
 
118
130
  ## Development
@@ -28,7 +28,7 @@ module GitlabMrRelease
28
28
  desc "create", "Create merge requrst"
29
29
  option :source, aliases: "-s", desc: "Source branch (e.g. develop)"
30
30
  option :target, aliases: "-t", desc: "Target branch (e.g. master)"
31
- option :title, desc: "MergeRequest title (default. 'Release :source -> :target')"
31
+ option :title, desc: "MergeRequest title (default. 'Release :timestamp :source -> :target')"
32
32
  option :labels, aliases: "-l", desc: "Labels for MR as a comma-separated list (e.g. 'label1,label2')"
33
33
  def create
34
34
  Dotenv.load(*GITLAB_ENV_FILES)
@@ -1,3 +1,3 @@
1
1
  module GitlabMrRelease
2
- VERSION = "0.3.0.beta1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_mr_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.beta1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -208,9 +208,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
208
  version: '0'
209
209
  required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  requirements:
211
- - - ">"
211
+ - - ">="
212
212
  - !ruby/object:Gem::Version
213
- version: 1.3.1
213
+ version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
216
  rubygems_version: 2.5.1