popper 0.3.3 → 0.4.0

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: 8f2ef0a62e6f06ed443844c63b3b492aee82b69d
4
- data.tar.gz: 40cdfb56ecb0c8664e187560bb91b9b19d28d701
3
+ metadata.gz: b770e96e37247c065c5158b3b674e671104fdb95
4
+ data.tar.gz: 3e44ae48e362fe43051f718d56d8b369fed0e3f3
5
5
  SHA512:
6
- metadata.gz: d04288ee6817b3c4d2eae10bde85e86af9a9043dc225daf210b7e191753cd54190ff6debe8617a0370697040e962e8c9f469ff6e6e32a382800ab3c759417ade
7
- data.tar.gz: a5f5f22ba4face1c0cc22e9b424319d992adcd82af69c3b727847db288b4ca532ed989c6c89da3c8aa198993d2d0b22e73bf7d3f45ea58b864be8dba36ea1076
6
+ metadata.gz: 8018b062a27badde09041db2b3ea4ec11cb8ed7be69a167fb6e0a2bd958c83c0ad5c50bd25a25ca48db80057e6897073469e269d9f9f3b597f770c1cb8bd2621
7
+ data.tar.gz: 6b8f32612012f59494f9f7054c05a97c16e50cc81f86ddef4c82ca7f5e4b6c2eea19b0fac5e0a1bba996eca194d4e87c861468525dfa50c2d302b4305b408b6e
data/README.md CHANGED
@@ -76,6 +76,7 @@ message = "webmailer error mail"
76
76
 
77
77
  [example.rules.normal_log.action.git]
78
78
  repo = "example/fuu"
79
+ labels = "label1,label2"
79
80
 
80
81
  [example.rules.normal_log.action.exec_cmd]
81
82
  cmd = "/path/to/other_command.rb"
@@ -3,10 +3,14 @@ require 'octokit'
3
3
  module Popper::Action
4
4
  class Git < Base
5
5
  def self.task(mail, params={})
6
+ issue_options = {}
7
+ issue_options[:labels] = @action_config.labels if @action_config.labels
8
+
6
9
  url = octkit.create_issue(
7
10
  @action_config.repo,
8
11
  mail.subject,
9
- mail.utf_body
12
+ mail.utf_body,
13
+ issue_options
10
14
  )
11
15
  params["#{action_name}_url".to_sym] = url[:html_url] if url
12
16
  params
@@ -1,3 +1,3 @@
1
1
  module Popper
2
- VERSION = "0.3.3"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-27 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.2.2
176
+ rubygems_version: 2.5.1
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: email notification tool