committer-tools 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcb0ca6adc4041de06bee3d441c7b50e83aee16a
4
- data.tar.gz: f760a7d9bbebf9615d2580984650cb5eab6b0dee
3
+ metadata.gz: 1affe04dad34132bc8fced2cb164ced45c2fb0b6
4
+ data.tar.gz: 8851d93082f8e38ba7768688bd643973fecefdea
5
5
  SHA512:
6
- metadata.gz: 32fa3be15f3190091b8ca272f05c7f7b4a1edf2d76032f089a344feccd41b60781b3dada491db2154c6b3c2573c46be9d4a43a1bc31212a92e566b0268aac7c6
7
- data.tar.gz: 821cf9d1df32651e37680dc047b133733c8738e73ac13e4194af287d8b9a1e08c5d005f42b32d6f597d2f689944eb104272f31f271373b93b643f7456d97cc1b
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
- Working on [committer-tools](https://github.com/maclover7/committer-tools) for right now because Promises are givin me a huge headache :)
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
- ### Usage
6
-
7
- Globally:
7
+ ### Installation
8
8
 
9
9
  ```bash
10
10
  gem install committer-tools
11
11
  ```
12
12
 
13
- In actual working directory repo:
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'committer-tools'
5
- spec.version = '0.1.0'
5
+ spec.version = '0.1.1'
6
6
  spec.authors = 'Jon Moss'
7
7
  spec.email = 'me@jonathanmoss.me'
8
8
 
@@ -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-tool is done! Edit away to your content, and then push away :)"
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 6b050dc70bd4aa4e7914f694927ef01b7b1d48a9')
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.0
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