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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f505b77639435a60bae3d100184b246ed1aeaf05
4
- data.tar.gz: 08596d623cec3e7e1f9e7b721a12d60fe014101e
3
+ metadata.gz: da8c1066129b0faf86a427e81d3350db5e41c95d
4
+ data.tar.gz: 35f494b920588f3bd0956f89cbeae7a9dd3016a0
5
5
  SHA512:
6
- metadata.gz: d38cdd82a8132ed90ec4851047c5d909e27e1fa6ea2e8c658a41e53ad628b959455c5db013245b9cff6a6373a119fdca3a3aa9bb38ce068f735abe95a8fa314b
7
- data.tar.gz: 5c41740976525594f21beef3832b9b8b2eb748f74ef005d27765916858b710d68c685c1a0f0c54986e6fcbffdedd97092ac807f260763642942a0142575d2628
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: configatron.defaults.target_branch,
248
+ target_branch: target_branch,
241
249
  target_slug: configatron.defaults.target_slug,
242
250
  reviewers: reviewers
243
251
  }
@@ -1,3 +1,3 @@
1
1
  module StashCli
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stash_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Chun-Lum