pronto-labelman 0.0.2.1 → 0.0.3
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 +4 -1
- data/lib/pronto/labelman.rb +4 -2
- data/lib/pronto/labelman/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bedbe0fc45774120428a25d775a3b36ce9e68a19
|
4
|
+
data.tar.gz: 79afd7b274356a79defc410d7b839aeb711ff23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dac17dfa9d7120755b9b5f816b816a0e507d9f64ad71efca3f5d5925405a7f82d6dbdbf4bf80946a522cf2fcb5389e52162d8b726cb5879d25bd905bee4ad5f
|
7
|
+
data.tar.gz: 8a2469f2fe857c08da8c5c83f061dddb66cd352fe7e1196350e207d13b92523e3005eba3e27bafb964debf665b57d8191c936786cda92845142d176789c458ee
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
## Pronto-Labelman
|
2
2
|
|
3
|
-
|
3
|
+
<p align="center">
|
4
|
+
<img src="https://cloud.githubusercontent.com/assets/5194847/23930916/406685ae-096a-11e7-9c35-f6d4daddb68f.png" alt="pronto-labelman logo"></img>
|
5
|
+
</p>
|
4
6
|
|
5
7
|
### Pronto runner for automatically adding labels to Github Pull Requests.
|
6
8
|
|
@@ -85,4 +87,5 @@ export LABELMAN_RULES=custom/pronto/labelman_rules
|
|
85
87
|
|
86
88
|
### Todo List
|
87
89
|
* Improve "monkey patching"
|
90
|
+
* Improve logging (do not use `p`)
|
88
91
|
* More configuration
|
data/lib/pronto/labelman.rb
CHANGED
@@ -9,8 +9,9 @@ module Pronto
|
|
9
9
|
super
|
10
10
|
|
11
11
|
@rules_load_path = ENV['LABELMAN_RULES']
|
12
|
+
|
12
13
|
if @rules_load_path
|
13
|
-
p "Using additional rules load path #{File.absolute_path(
|
14
|
+
p "Using additional rules load path #{File.absolute_path(@rules_load_path)}"
|
14
15
|
require_and_load_rules
|
15
16
|
end
|
16
17
|
end
|
@@ -36,7 +37,8 @@ module Pronto
|
|
36
37
|
end
|
37
38
|
|
38
39
|
def require_and_load_rules
|
39
|
-
|
40
|
+
load_dir = "#{File.absolute_path(@rules_load_path)}/*.rb"
|
41
|
+
Dir[load_dir].each do |file|
|
40
42
|
require file
|
41
43
|
load file
|
42
44
|
end
|