github_flow_cli 0.1.0 → 0.1.1

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: 002c8c4e81bd601b09a96ccf31aa16f73044dded
4
- data.tar.gz: 40f5e206e42458ae94cdc23bb386f574f319bdde
3
+ metadata.gz: 5b2e3063e075d387e29e4f05f4627dfb664f3279
4
+ data.tar.gz: a1f32725fe4bbffac54db69dad958ca587269e57
5
5
  SHA512:
6
- metadata.gz: ead3a197702d2394a6207d0b5f7dfae139fea3efec589f44ecb4f99dea3b3be2d90efedd5c37d86145c016c1983433964a97388cdca7a78417f98c7a3ede8823
7
- data.tar.gz: 34ed6b7f0e49e2e279266bd6e633d129015a61ce6414f5dc2a877cbf6accf7f6bb71d92598982823dd0254ef3a8b8f0d001f36b650a01510cd55ea5c4096baf3
6
+ metadata.gz: f3b3ce0879fafd58cdcea2feb2233865c7e066f15dc1824af38d2dfd20cbce42f75dab50d64ca1dddc1ea63ada3eece4d6c3f948bd91fcbbbf47c263bcdeceb8
7
+ data.tar.gz: 667647cc1f3a1dcce5a9532b50eb696d577db8419ab126534cd71386ef8e02e5e6a2d0591e084d411f75e5e18e87b0c6b3f9b776a5413e40cb65df6d1ec0551d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_flow_cli (0.1.0)
4
+ github_flow_cli (0.1.1)
5
5
  facets
6
6
  git
7
7
  octokit
data/README.md CHANGED
@@ -1,20 +1,55 @@
1
1
  # GithubFlowCli
2
2
 
3
- This CLI tool is aiming to fasten the developing flow with Github by automating issue/PR creation according to the repo's convention.
3
+ Normally how do you push your code to Github to resolve a ticket? Probably like this:
4
+
5
+ 1. go to Github issues page or your task manager, create a ticket;
6
+ 2. create a branch locally;
7
+ 3. finish your work, push it to Github;
8
+ 4. go to Github project home page, click "new pull request";
9
+ 5. redirect to "new pull request" page, fill in the title and other information.
10
+
11
+ I always found it a waste of my time doing the process above. Especially most of the time I type the same information again and again -- it's very likely the issue contents, the branch name, and the pr contents are connected. Also waiting response from the Chrome browser is not enjoyable.
12
+
13
+ This CLI tool is aiming to fasten the developing flow with Github by automating issue/PR creation according to the repo's convention. It's very new and primitive, but the goal is glory -- to make developing with Github as smoothly as possible!
4
14
 
5
15
  ## Installation
6
16
 
7
- This gem is not published yet. For now please clone the repo and run the app via:
17
+ ```
18
+ gem install github_flow_cli
19
+ ```
20
+
21
+ ## Usage
8
22
 
23
+ For the very first version, I present a workflow that is 100% browser-free until the PR reviewing phase. Here's an example:
24
+
25
+ ![image](https://user-images.githubusercontent.com/3524125/40894925-82156c58-6761-11e8-9f21-2d467426bd58.png)
26
+
27
+ 1. When you're in ready position, check your ticket list via `hubflow issue mine`;
28
+ 2. Pick a ticket to work on via `hubflow issue start NUMBER`, this will create a branch based on the issue number and name;
29
+ 3. After you finished your work, just hit `hubflow pr create`, it will:
30
+ 1. create a remote branch;
31
+ 2. set upstream;
32
+ 3. push code;
33
+ 4. create PR based on the issue title.
34
+
35
+ And you can just copy the PR URL from the CLI output to your boss to request a review.
36
+
37
+ You can also create an issue via `hubflow issue create TITLE`
38
+ ![image](https://user-images.githubusercontent.com/3524125/40895228-ee1c56a4-6762-11e8-9e5f-5efc4f6b90f7.png)
39
+
40
+ For other commands please refer to:
9
41
  ```
10
- rake build
11
- gem install pkg/*.gem
12
42
  hubflow help
13
43
  ```
14
44
 
15
- ## Usage
45
+ There's a huge room to improve, including but not limited to:
46
+
47
+ - custom issue title/branch name/PR title template
48
+ - custom issue body/PR body template
49
+ - interactive UI
50
+ - more automations
16
51
 
17
- TODO: Write usage instructions here
52
+ If you like this idea, not hesitate to join the development!
18
53
 
19
54
  ## Development
20
55
 
data/exe/hubflow CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'github_flow_cli/cli'
3
3
  begin
4
- GithubFlowCli::Config.setup unless ARGV == ["login"]
4
+ GithubFlowCli::Config.setup unless ARGV == ["login"] || ARGV == ["help"] || ARGV.empty?
5
5
  GithubFlowCli::CLI.start
6
6
  rescue Interrupt => e
7
7
  puts "\nbye."
@@ -1,3 +1,3 @@
1
1
  module GithubFlowCli
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_flow_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yang Liu