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 +4 -4
- data/README.md +37 -15
- data/bin/lazypr +2 -1
- data/lib/lazy_pr/version.rb +1 -1
- data/screenshots/github_access_token.png +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2720e65781d63ae0849917c0ce2268e14e913c02
|
4
|
+
data.tar.gz: 10233b05f8afad0d30ffdd2aff3fd09d78172b86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fed3ec6fbcaef57f20ef935b8d23650cee9dcdf2af0c97557d53287ffc2cd2b7d42f99ef50573a9cb2389de47dfe7842615c2a293329766fd122f64b63219b95
|
7
|
+
data.tar.gz: 9a1a7371d467c27588df3f5ace1276f6f149ee7040f823ca28b5c52fb3f7a16aef1d418e6c1d3268624376dd69130139009a07251e657500512579d66f3b56b6
|
data/README.md
CHANGED
@@ -1,39 +1,61 @@
|
|
1
1
|
# LazyPr
|
2
2
|
|
3
|
-
|
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
|
10
|
+
gem install lazypr
|
13
11
|
```
|
14
12
|
|
15
|
-
|
13
|
+
## Usage
|
16
14
|
|
17
|
-
|
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
|
-
|
20
|
+
### Example
|
20
21
|
|
21
|
-
|
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
|
-
|
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
|
-
|
34
|
+
#### Github Personal Access Token
|
26
35
|
|
27
|
-
|
36
|
+
Lazypr allows you to authenticate your Github account using your personal access token.
|
28
37
|
|
29
|
-
|
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
|
-
|
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
|
+

|
32
49
|
|
33
|
-
## Contributing
|
34
50
|
|
35
|
-
|
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
data/lib/lazy_pr/version.rb
CHANGED
Binary file
|
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.
|
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:
|
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
|