zimdel 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/zimdel/version.rb +1 -1
- data/lib/zimdel.rb +1 -0
- 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: e65ce6486c4621af3b9328c257ae049a3c6817db
|
4
|
+
data.tar.gz: 798d6049147f2e59977525b7cccf6f8d0c797a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859f6abeac0c06c93347359dc8214c3d7f84a0996a846bf564a2a95dc1b4d8951b51d68bd67d9b6a9d247d080a691ec99da624afde986c9ff4a6341dffe51e30
|
7
|
+
data.tar.gz: '08b4e23adbac84d97f744e1a51d1810da21d3d3e7d7cf450ddac6fd1f422f09919590974110b85ed4995412f06d4b5c739ca609a22542255786173603261ae2c'
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Zimdel
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Zimdel is a simple auto-reply bot for GitHub, it is triggered by mentioning.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,11 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
To start the bot, you will need a configuration file. All the available configuration options are specified in the `config_sample.yml`.
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
zimdel -c config.yml
|
27
|
+
```
|
26
28
|
|
27
29
|
## Development
|
28
30
|
|
data/lib/zimdel/version.rb
CHANGED
data/lib/zimdel.rb
CHANGED
@@ -9,6 +9,7 @@ module Zimdel
|
|
9
9
|
@client.notifications.each do |notification|
|
10
10
|
next unless notification[:reason] == 'mention'
|
11
11
|
@client.add_comment(notification[:repository][:full_name], notification[:subject][:url][/[0-9]+$/], message)
|
12
|
+
@client.update_thread_subscription(notification[:id], :ignored => true)
|
12
13
|
end
|
13
14
|
|
14
15
|
@client.mark_notifications_as_read
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zimdel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dávid Halász
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|