githole 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -0
- data/lib/githole/git.rb +8 -1
- data/lib/githole/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 311e635db99d1c42005e159fda8dae4a1ea4bd43
|
4
|
+
data.tar.gz: fc8f9fa3de6b94d58e0e5cc59711c85ad0be6709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a2fb8427c2510823cc854ec7a6eab68149b1b86318c76be0be1c631cc7470c11775a0c393e145b0b4bf3c5ef5c6c50e3f8ed2fde06a6c949fe7a16f3b2f61ed
|
7
|
+
data.tar.gz: 2284e29a9998746d73a91de6d8b93e94a718540336ebcb11be2e2e57b7cd9ef0b9a87b3483bef2e7476845d142f0869e786ce44122a38cae089c0765f30d51f7
|
data/README.md
CHANGED
@@ -170,6 +170,27 @@ $ git branch -D v1.4.1
|
|
170
170
|
$ git branch -D local-v1.4.1
|
171
171
|
```
|
172
172
|
|
173
|
+
### Tag
|
174
|
+
|
175
|
+
Tag will pull and tag the `master` branch of your current repo, then *push all
|
176
|
+
tags* to origin.
|
177
|
+
|
178
|
+
This is a separate action because it has to happen **after the merge/pull
|
179
|
+
request is accepted.**
|
180
|
+
|
181
|
+
```text
|
182
|
+
$ githole tag 1.4.1
|
183
|
+
```
|
184
|
+
|
185
|
+
The tag action runs these commands:
|
186
|
+
|
187
|
+
```text
|
188
|
+
$ git checkout master
|
189
|
+
$ git pull origin master
|
190
|
+
$ git tag -a v1.4.1 -m "v1.4.1"
|
191
|
+
$ git push origin --tags
|
192
|
+
```
|
193
|
+
|
173
194
|
Contributing
|
174
195
|
----------------
|
175
196
|
|
@@ -178,3 +199,8 @@ Contributing
|
|
178
199
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
179
200
|
4. Push to the branch (`git push origin my-new-feature`)
|
180
201
|
5. Create a new Pull Request
|
202
|
+
|
203
|
+
Changelog
|
204
|
+
----------------
|
205
|
+
|
206
|
+
* **v1.1.0**: Add a `tag` action that pulls and tags master, then pushes tag
|
data/lib/githole/git.rb
CHANGED
@@ -6,7 +6,7 @@ module Githole
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def respond_to?(cmd)
|
9
|
-
['add','update','push','remove'].include?(cmd)
|
9
|
+
['add','update','push','remove', 'tag'].include?(cmd)
|
10
10
|
end
|
11
11
|
|
12
12
|
def add
|
@@ -43,6 +43,13 @@ module Githole
|
|
43
43
|
delete local
|
44
44
|
end
|
45
45
|
|
46
|
+
def tag
|
47
|
+
checkout master
|
48
|
+
pull master
|
49
|
+
git "tag -a v#{@version} -m v#{@version}"
|
50
|
+
git_push "--tags"
|
51
|
+
end
|
52
|
+
|
46
53
|
private
|
47
54
|
|
48
55
|
def git(cmd)
|
data/lib/githole/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: githole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean C Davis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|