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 +4 -4
- data/CHANGELOG.md +4 -1
- data/README.md +16 -4
- data/lib/gitlab_mr_release/cli.rb +1 -1
- data/lib/gitlab_mr_release/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00d31b1babd4f48b1e7b557985dc02f6adbeb563
|
4
|
+
data.tar.gz: 68d69687663be7d891eb54efd1de5fd9d51afd75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93af3007cd402a4e12cfba042a791b478cec36b4ab233d0411ca2b8d4592e5db144a3a1d3af0b5fb7257eaf6528aa5b8ad9bc7c76bff1674509bc5347d86f0f5
|
7
|
+
data.tar.gz: 898863fb4e1f56df0c04de62f1f224d2775d107fa15f22d318747d77501104ce5e7fc5dbd3958c5a34093fc969d0c1b0bd903cc2e9b40b2d7b41cf329aad075e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
## Unreleased
|
2
|
-
[full changelog](http://github.com/sue445/gitlab_mr_release/compare/v0.
|
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`
|
115
|
-
* `target_branch` is `--target` in
|
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)
|
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
|
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:
|
213
|
+
version: '0'
|
214
214
|
requirements: []
|
215
215
|
rubyforge_project:
|
216
216
|
rubygems_version: 2.5.1
|