stash_cli 0.1.4 → 0.1.5
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 +4 -4
- data/lib/stash_cli/cli.rb +9 -1
- data/lib/stash_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da8c1066129b0faf86a427e81d3350db5e41c95d
|
4
|
+
data.tar.gz: 35f494b920588f3bd0956f89cbeae7a9dd3016a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f7a11fdb2ad5e1af04b85bdf51706c2d84c342c30c2560378f958bab529663fb96f92cd8057e026915e9ecdb077d4d6319cc775f322fa873394308927f64940
|
7
|
+
data.tar.gz: b2704403d36f246e0c918ac5a74aa6b31df073fed4df38409114fadef9f4d232482f639360c675dc0aee91e4a756e69ca27cc5226b3cb429b62a749a3220b314
|
data/lib/stash_cli/cli.rb
CHANGED
@@ -124,6 +124,11 @@ module StashCLI
|
|
124
124
|
default: [],
|
125
125
|
desc: 'the only users to include in this pull request (will ignore --groups and --additional-reviewers)'
|
126
126
|
|
127
|
+
option :branch,
|
128
|
+
aliases: '-b',
|
129
|
+
type: :string,
|
130
|
+
desc: 'the target branch for the pull request. Will default to the one in your config'
|
131
|
+
|
127
132
|
option :dry_run,
|
128
133
|
type: :boolean,
|
129
134
|
default: false,
|
@@ -232,12 +237,15 @@ module StashCLI
|
|
232
237
|
def default_pr(title)
|
233
238
|
reviewers = initial_reviewers
|
234
239
|
|
240
|
+
target_branch = configatron.defaults.target_branch
|
241
|
+
target_branch = options[:branch] if options[:branch]
|
242
|
+
|
235
243
|
opts = {
|
236
244
|
title: title,
|
237
245
|
project: configatron.defaults.project,
|
238
246
|
from_branch: GitUtils.current_branch,
|
239
247
|
from_slug: configatron.defaults.source_slug,
|
240
|
-
target_branch:
|
248
|
+
target_branch: target_branch,
|
241
249
|
target_slug: configatron.defaults.target_slug,
|
242
250
|
reviewers: reviewers
|
243
251
|
}
|
data/lib/stash_cli/version.rb
CHANGED