lazypr 1.0.0 → 1.0.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: 3f404b9340f9b571cf5950b2943be415adfb4240
4
- data.tar.gz: d26b3167f6b1086fe78e22a6e6479e5f44161250
3
+ metadata.gz: 2720e65781d63ae0849917c0ce2268e14e913c02
4
+ data.tar.gz: 10233b05f8afad0d30ffdd2aff3fd09d78172b86
5
5
  SHA512:
6
- metadata.gz: 16f35396bb9ca5bf27c80ae0363d1e7d6b9b2cc7901f0ef09f5e149346985071160867fe5598c89bf8873e7f40eb4a713a2ccab6caef943099c9a430a033286e
7
- data.tar.gz: ae5a4add048bf4c4c202dd74e548b2f2637b19fca13dd64646ba778d0d539edaf059650e8665481a8564af4f81879e003f7cb9e3642c9c75f3c5d729d3ab6284
6
+ metadata.gz: fed3ec6fbcaef57f20ef935b8d23650cee9dcdf2af0c97557d53287ffc2cd2b7d42f99ef50573a9cb2389de47dfe7842615c2a293329766fd122f64b63219b95
7
+ data.tar.gz: 9a1a7371d467c27588df3f5ace1276f6f149ee7040f823ca28b5c52fb3f7a16aef1d418e6c1d3268624376dd69130139009a07251e657500512579d66f3b56b6
data/README.md CHANGED
@@ -1,39 +1,61 @@
1
1
  # LazyPr
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/lazy_pr`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Create a PR in Github from the terminal :)
6
4
 
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
11
9
  ```ruby
12
- gem 'lazy_pr'
10
+ gem install lazypr
13
11
  ```
14
12
 
15
- And then execute:
13
+ ## Usage
16
14
 
17
- $ bundle
15
+ ```
16
+ lazypr [base branch name]
17
+ ```
18
+ lazypr creates a PR to update the changes of the current branch to the base branch.
18
19
 
19
- Or install it yourself as:
20
+ ### Example
20
21
 
21
- $ gem install lazy_pr
22
+ ```
23
+ lazypr master
24
+ ```
25
+ Let's say you are in the branch 'develop'. The above command creates a PR to update the changes of 'develop' in to 'master'
22
26
 
23
- ## Usage
27
+ You can also enter the PR title by passing the second argument.
28
+ ```
29
+ lazypr master "Update changes from develop"
30
+ ```
31
+
32
+ ### How lazypr authenticate your Github account
24
33
 
25
- TODO: Write usage instructions here
34
+ #### Github Personal Access Token
26
35
 
27
- ## Development
36
+ Lazypr allows you to authenticate your Github account using your personal access token.
28
37
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
+ Just set the following **ENV** variable in your **.bash_profile** or in your **.zshrc** file
39
+ ```
40
+ export github_personal_access_token=xxxxxxxxxx
41
+ ```
42
+ And don't forgot to source it. ``` source ./bash_profile``` or ``` source ./zshrc```
30
43
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
44
+ **Follow this [link](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) to setup your Github access token.**
45
+
46
+
47
+ **You need to add repo access to your access token. Refer the below screenshot.**
48
+ ![add scope for access token](screenshots/github_access_token.png)
32
49
 
33
- ## Contributing
34
50
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lazy_pr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
51
+ #### Using username and password
52
+
53
+ If Lazypr can't find the access_token then it prompts for your Github username and password
54
+
55
+
56
+ ## Contributing
36
57
 
58
+ Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
37
59
 
38
60
  ## License
39
61
 
data/bin/lazypr CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'octokit'
4
4
  require 'lazy_pr.rb'
5
+ require 'io/console'
5
6
  pull_request = LazyPr::CreatePr.new
6
7
  pull_request.login_user
7
- pull_request.create_pull_request
8
+ pull_request.create_pull_request
@@ -1,3 +1,3 @@
1
1
  module LazyPr
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazypr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Srebalaji Thirumalai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-17 00:00:00.000000000 Z
11
+ date: 2018-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -73,6 +73,7 @@ files:
73
73
  - lazy_pr.gemspec
74
74
  - lib/lazy_pr.rb
75
75
  - lib/lazy_pr/version.rb
76
+ - screenshots/github_access_token.png
76
77
  homepage: ''
77
78
  licenses:
78
79
  - MIT