github_flow_cli 0.1.2 → 0.1.3

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: 5a44a07d009f36c0f65a79e8b9e509864f3f08f7
4
- data.tar.gz: 34229676929d20b34624c342a1beba61f76f72fb
3
+ metadata.gz: 9633c88cccd1c1b03e580103af026d44a552868a
4
+ data.tar.gz: 6c73adb56a7b5005e3ba2c1de86eb24d52e4a548
5
5
  SHA512:
6
- metadata.gz: cd2c5b01196984c29d06984db654471418ec2d834a58bfa687f492a3990a77da28284ca4435941458e0902d8e84e8a335b26eb0de8fae279e5039a1781ef3a53
7
- data.tar.gz: f107a08bf3fafe3690f442e2a9636d97a106c977bf17009b353d82f2af1f764fe16904c685961bbe8216da9e98ef460eeeab471f3822d8638c2f3973f9832d62
6
+ metadata.gz: acec134668969e53a5cafc784e4474a94790c8968f51308041fcc88ca1a0584907b7eef2d41671e187da4215ed69bd04a920d8d3ebc3df1fed3471caae542da0
7
+ data.tar.gz: 0d93d9983cb2ec00429a267184d45ff914250f29824f472e9330e93f164a081aa8976b1acd06cafa7ccf762a6d207712b9b9a889421d3155a5c56a71524dc7a7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_flow_cli (0.1.2)
4
+ github_flow_cli (0.1.3)
5
5
  facets
6
6
  git
7
7
  octokit
data/README.md CHANGED
@@ -18,6 +18,12 @@ This CLI tool is aiming to fasten the developing flow with Github by automating
18
18
  gem install github_flow_cli
19
19
  ```
20
20
 
21
+ You will need use your Github credentials to grant access to this app:
22
+
23
+ ```
24
+ hubflow login
25
+ ```
26
+
21
27
  ## Usage
22
28
 
23
29
  For the very first version, I present a workflow that is 100% browser-free until the PR reviewing phase. Here's an example:
@@ -30,7 +30,7 @@ module GithubFlowCli
30
30
  def start(number)
31
31
  # TODO: before filer
32
32
  unless Local.repo
33
- puts "not valid outside of a git repo."
33
+ puts "not valid outside of a github repo."
34
34
  exit(4)
35
35
  end
36
36
  issue = API.issue(Local.repo, number)
data/lib/commands/pr.rb CHANGED
@@ -8,7 +8,7 @@ module GithubFlowCli
8
8
  def all
9
9
  # TODO: before filer
10
10
  unless Local.repo
11
- puts "not valid outside of a git repo."
11
+ puts "not valid outside of a github repo."
12
12
  exit(4)
13
13
  end
14
14
  pull_requests = API.pull_requests(Local.repo)
@@ -21,7 +21,7 @@ module GithubFlowCli
21
21
  def create(title = nil)
22
22
  # TODO: before filer
23
23
  unless Local.repo
24
- puts "not valid outside of a git repo."
24
+ puts "not valid outside of a github repo."
25
25
  exit(4)
26
26
  end
27
27
  puts API.create_pr(title: title).html_url
@@ -7,7 +7,7 @@ module GithubFlowCli
7
7
  return @repo if @repo
8
8
  url = git.remote.url
9
9
  match = url&.match(%r{.*[:/](?<owner>.*?)/(?<name>.*?)\.git$})
10
- return nil unless match[:owner] && match[:name]
10
+ return nil unless match && match[:owner] && match[:name]
11
11
  @repo = Octokit::Repository.from_url("/#{match[:owner]}/#{match[:name]}")
12
12
  rescue ArgumentError => ex
13
13
  if ex.message =~ /path does not exist/
@@ -1,3 +1,3 @@
1
1
  module GithubFlowCli
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yang Liu