rubyhub 0.1.4 → 0.1.7

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
  SHA256:
3
- metadata.gz: 83028bab1fd8a4d37df8820dd5133ebca35080c404f0313d533c15915367f1fc
4
- data.tar.gz: a56feabee3a6d4abf26e9de68f76f41d4a4d71c763edace917352ec7c6c81f04
3
+ metadata.gz: d584e46421546a1c4e3723c2999c58b542aa7e405fc26210e35d01858ed74dd5
4
+ data.tar.gz: b1b1db4ce84974c3c0c701ffd6e695260509c4bb8cadea6455852a87a6e9e8f5
5
5
  SHA512:
6
- metadata.gz: ba92291585e029e4b06300e254777147f1b4efc3689ace0a8687a9a88bc4e18130d1874924ba8c91f27ca90b1fe4c37084babac9a222e0874ac0ae711d615665
7
- data.tar.gz: 88ba605cb153be28e00a11c2225809593d4a60adc43af270d59c9dabcda12cb343601aea862cc9f674abe3c38a2be7bc5db3d16bcd7aa8ac24ffc4cc5dee3602
6
+ metadata.gz: 858a46058552b9257c9855509e9e52f4f97ebcdae78cb97c928344bbe8d2ba7743bd1e14daf17b8bd5ec7a0ce28e8ce150cab829f5b5cc90594519dca0a4cc0d
7
+ data.tar.gz: 8f392c3c51c6d877fb9ee35e1da63ae31ea6a5eec016a3c959f1626e24d624824b39df93a97bca8072406ac846e35d668ee36b8076d7b9983c22793806782c40
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Rubyhub
2
2
 
3
- Rubyhub allows you to create pull requests faster with all those labels, assignees and reviewers you always had to put manually.
3
+ Rubyhub allows you to create pull requests faster with all сomponents - labels, assignees, reviewers and other stuff you had to put manually each time.
4
4
 
5
5
  ## Installation
6
6
 
7
+ Install [Github's Hub](https://github.com/github/hub)
8
+
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  ```ruby
@@ -20,23 +22,30 @@ Or install it yourself as:
20
22
 
21
23
  ## Usage
22
24
 
23
- 1. Create `.rubyhub.yml` file with your own properties. Don't forget to add it to gitignore.
24
- Example config:
25
- ```yaml
26
- ---
27
- base_branch: master
28
- label: needs review
29
- assignees:
30
- - any
31
- - github
32
- - assignee
33
- - you
34
- - want
35
- description_main_body: describe your changes here
36
- jira_base_url: https://sample.atlassian.net/browse/
37
- ```
25
+ 1. Generate config file
26
+
27
+ `$ rubyhub install`
28
+
29
+ 2. Create the templates for all subteams/needs in your repository and configure each template with provided options
38
30
 
39
- `description_main_body` and `jira_base_url` are optional.
31
+ 2. Run pull request creator
40
32
 
41
- 2. Run `bin/rubyhub`
33
+ `$ rubyhub create -t your_template_name`
34
+
35
+ ## Configuration options
36
+ | Config | Description | Example |
37
+ |-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|
38
+ | base_branch | String. Define the base branch you Pull Request would be targeted to | develop |
39
+ | reviewers | Array. List of reviewers | - some_user<br>- another_user |
40
+ | assignees | Array. List of assignees | - some_user<br>- another_user |
41
+ | labels | Array. List of labels | - needs_review<br>- some_another_label |
42
+ | jira_base_url | String. The first line of your Pull Request description could be JIRA link to your task<br>Put here the constant part of your URL.<br>Task name would be taken from your branch name.<br><br>feature/MyTask-1399 -> https://sample.atlassian.net/browse/MyTask-1399 | https://sample.atlassian.net/browse/ |
43
+ | description_main_body | String. Put the description template here. We recommended to use Markdown.<br><br>Note: The first line of your body - would be a title of your pull-request | Feature / RGWEB<br><br>Great moments! |
44
+ | push | Boolean. These options allows to push the code to Github before creating the pull-request | true |
45
+ | open | Boolean. Open the pull-request after creating | true |
46
+
47
+
48
+ ---
49
+ <a href="https://rubygarage.org/"><img src="https://rubygarage.s3.amazonaws.com/assets/assets/rg_color_logo_horizontal-919afc51a81d2e40cb6a0b43ee832e3fcd49669d06785156d2d16fd0d799f89e.png" alt="RubyGarage Logo" width="415" height="128"></a>
42
50
 
51
+ RubyGarage is a leading software development and consulting company in Eastern Europe. Our main expertise includes Ruby and Ruby on Rails, but we successfully employ other technologies to deliver the best results to our clients. [Check out our portfolio](https://rubygarage.org/portfolio) for even more exciting works!
@@ -12,8 +12,8 @@ module Rubyhub
12
12
  add_labels if @labels&.any?
13
13
  add_assignees if @assignees&.any?
14
14
  add_reviewers if @reviewers&.any?
15
- add_push_setting if @push
16
- add_open_setting if @open
15
+ add_push_settings if @push
16
+ add_open_settings if @open
17
17
 
18
18
  @query
19
19
  end
@@ -53,7 +53,7 @@ module Rubyhub
53
53
  end
54
54
 
55
55
  def add_open_settings
56
- @query << ' --open'
56
+ @query << ' --browse'
57
57
  end
58
58
 
59
59
  def add_message
@@ -1,3 +1,3 @@
1
1
  module Rubyhub
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.7'.freeze
3
3
  end
@@ -19,6 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.bindir = 'exe'
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
+ spec.post_install_message = %q{
23
+ Note that Rubyhub requires additional dependencies!
24
+
25
+ Please install https://github.com/github/hub
26
+ }
22
27
 
23
28
  spec.add_dependency 'thor'
24
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Zemlianoy
@@ -171,7 +171,8 @@ homepage: https://github.com
171
171
  licenses:
172
172
  - MIT
173
173
  metadata: {}
174
- post_install_message:
174
+ post_install_message: "\n Note that Rubyhub requires additional dependencies!\n\n
175
+ \ Please install https://github.com/github/hub\n "
175
176
  rdoc_options: []
176
177
  require_paths:
177
178
  - lib