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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -0
- data/lib/commands/issue.rb +1 -1
- data/lib/commands/pr.rb +2 -2
- data/lib/github_flow_cli/local.rb +1 -1
- data/lib/github_flow_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: 9633c88cccd1c1b03e580103af026d44a552868a
|
4
|
+
data.tar.gz: 6c73adb56a7b5005e3ba2c1de86eb24d52e4a548
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acec134668969e53a5cafc784e4474a94790c8968f51308041fcc88ca1a0584907b7eef2d41671e187da4215ed69bd04a920d8d3ebc3df1fed3471caae542da0
|
7
|
+
data.tar.gz: 0d93d9983cb2ec00429a267184d45ff914250f29824f472e9330e93f164a081aa8976b1acd06cafa7ccf762a6d207712b9b9a889421d3155a5c56a71524dc7a7
|
data/Gemfile.lock
CHANGED
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:
|
data/lib/commands/issue.rb
CHANGED
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
|
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
|
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/
|