committer-tools 0.1.0 → 0.1.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/.gitignore +1 -0
- data/README.md +19 -5
- data/committer-tools.gemspec +1 -1
- data/lib/committer-tools.rb +2 -15
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1affe04dad34132bc8fced2cb164ced45c2fb0b6
|
4
|
+
data.tar.gz: 8851d93082f8e38ba7768688bd643973fecefdea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19aac12185440f7b6e37b3dfad50b5e00ee25857edef54aa51e3570f3d723571bf471c88c8cfe43347aece26ae30350a102436851c324df3037cf80bc12784f2
|
7
|
+
data.tar.gz: fabb7fe46b238a98ea169a9255036dcd45a252e740f34950f779034c98544579ee651f052340349db6bc41dc60e03a8feb94688d1a4b71d7573ebfddfac994d9
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/README.md
CHANGED
@@ -1,16 +1,30 @@
|
|
1
1
|
# committer-tools-rb
|
2
2
|
|
3
|
-
|
3
|
+
Useful CLI utilities for Node.js collaborators. Writing in Ruby while I
|
4
|
+
try and figure out what's going on with Promises in the JS version of
|
5
|
+
this :)
|
4
6
|
|
5
|
-
###
|
6
|
-
|
7
|
-
Globally:
|
7
|
+
### Installation
|
8
8
|
|
9
9
|
```bash
|
10
10
|
gem install committer-tools
|
11
11
|
```
|
12
12
|
|
13
|
-
|
13
|
+
### Usage
|
14
|
+
|
15
|
+
##### `committer-tools land`
|
16
|
+
|
17
|
+
- What this automates:
|
18
|
+
- get pr id
|
19
|
+
- get pr from github api
|
20
|
+
- put together metadata for commit
|
21
|
+
- do a few checks, make sure ok to land
|
22
|
+
- add metadata to commit message
|
23
|
+
- make sure final commit message ok
|
24
|
+
- What this does not automates:
|
25
|
+
- pushing the actual commit
|
26
|
+
|
27
|
+
Try it out by using:
|
14
28
|
|
15
29
|
```
|
16
30
|
GH_TOKEN=mytoken123 committer-tools land
|
data/committer-tools.gemspec
CHANGED
data/lib/committer-tools.rb
CHANGED
@@ -16,7 +16,7 @@ class Lander
|
|
16
16
|
add_metadata_to_commit(metadata)
|
17
17
|
validate_commit
|
18
18
|
|
19
|
-
puts "\n[\u{2714}] committer-
|
19
|
+
puts "\n[\u{2714}] Landed in #{`git rev-list upstream/master...HEAD`} -- committer-tools is done! Edit away to your content, and then push away :)"
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -43,7 +43,7 @@ class Lander
|
|
43
43
|
|
44
44
|
def validate_commit
|
45
45
|
puts "Running core-validate-commit..."
|
46
|
-
system('core-validate-commit
|
46
|
+
system('git rev-list upstream/master...HEAD | xargs core-validate-commit')
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -169,16 +169,3 @@ class Preparer
|
|
169
169
|
{ org: org, repo: repo, id: id }
|
170
170
|
end
|
171
171
|
end
|
172
|
-
|
173
|
-
###
|
174
|
-
# What this tool does:
|
175
|
-
###
|
176
|
-
# * get pr id
|
177
|
-
# * get pr from github api
|
178
|
-
# * put together metadata for commit
|
179
|
-
# * do a few checks, make sure ok to land
|
180
|
-
# * figure out squashing commit, make sure final message ok
|
181
|
-
##
|
182
|
-
# What you have to do:
|
183
|
-
##
|
184
|
-
# * push commit
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: committer-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Moss
|
@@ -31,6 +31,7 @@ executables:
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- ".gitignore"
|
34
35
|
- Gemfile
|
35
36
|
- Gemfile.lock
|
36
37
|
- README.md
|