ruboty-redmine 0.0.9 → 0.0.10

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: 9995604b7e359911e2192a9d74162baaf21b8d3a
4
- data.tar.gz: a72d7332f1166c31774894d924d2945d85d4a4d7
3
+ metadata.gz: 28cfa0c5ef4048efef19d0e357dd019577b63747
4
+ data.tar.gz: 28187057f166ef44785b0e895fb5fc7754df0221
5
5
  SHA512:
6
- metadata.gz: 1d38fa169d1b54d8f1807f5048f013064b3d26e598a37e2bbb2c245cf2ec2da514fecef62d509f0e28fb62688b3c56de5de8f799ca4ead3cdcc91ddbad019f2f
7
- data.tar.gz: 405e720585c37e4b6998f674f3baab689d72fee5043509af7f291e8c9536e3a3c233dba68cccc4acb6809216a586f355f92b423c72144912d8580f9648b5c72f
6
+ metadata.gz: 12ca7ec1cf59515b82a5bb168d85b9e5dbf58cd38108de55394af6bdceffb882d85b2041868d63890654da8ffc1e0f334422b7fb25cf74784c04727612fa6fde
7
+ data.tar.gz: b10767e3e0013fad24284ccad8965f912322fb16ce6bec60b95b1f8134bb87edad809d5f8bce5e7974cb4c122bfc3d1e10cdddb5f532b1f225ec6df369e43b92
data/README.md CHANGED
@@ -4,9 +4,66 @@ Redmine plugin for Ruboty
4
4
 
5
5
  ## Available commands
6
6
 
7
+ ### create issue
8
+
9
+ ```
10
+ > ruboty create issue "subject" "Mobile" project "Feature" tracker
11
+ ```
12
+
13
+ You can register aliases:
14
+
15
+ ```
16
+ > ruboty register redmine alias "mobile" '"Mobile" project "Feature" tracker'
17
+ > ruboty create issue "subject" mobile
18
+ ```
19
+
20
+ ### watch issues
21
+
22
+ ```
23
+ > ruboty watch redmine issues in "Feature" tracker of "Mobile" project
24
+ ```
25
+
26
+ You will get notifications:
27
+
28
+ ```
29
+ New Issue of Feature in Mobile project
30
+ -> Awesome search feature
31
+ -> https://redmine.example.com/issues/123
7
32
  ```
8
- ruboty create issue "subject" "project name" project "tracker name" tracker
33
+
34
+ You can list and stop watching issues:
35
+
9
36
  ```
37
+ > ruboty list watching redmine issues
38
+ #1 Feature tracker in Mobile project and assign to [] (your_chat_room)
39
+ > ruboty stop watching redmine issues 1
40
+ ```
41
+
42
+ ### watch and assign issues
43
+
44
+ First, associate Redmine user ID with your name in chat:
45
+
46
+ ```
47
+ > ruboty associate redmine user 123 with "bob"
48
+ > ruboty associate redmine user 456 with "alice"
49
+ ```
50
+
51
+ Register tracker:
52
+
53
+ ```
54
+ > ruboty watch redmine issues in "Feature" tracker of "Mobile" project and assign to 123,456
55
+ ```
56
+
57
+ You will get notifications and the issue is assigned automatically:
58
+
59
+ ```
60
+ New Issue of Feature in Mobile project
61
+ -> Awesome search feature
62
+ -> Assigned to @bob
63
+ -> https://redmine.example.com/issues/123
64
+ ```
65
+
66
+ The assignee will be elected by round-robin.
10
67
 
11
68
  ## Installation
12
69
 
@@ -219,7 +219,7 @@ module Ruboty
219
219
  new_issues.each do |new_issue|
220
220
  assignees = watch['assignees']
221
221
  assignee = nil
222
- unless !new_issue.assigned_to && assignees.empty?
222
+ if !assignees.empty? && !new_issue.assigned_to
223
223
  assignee = assignees[watch['assignee_index'] % assignees.size]
224
224
  watch['assignee_index'] += 1
225
225
 
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Redmine
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-redmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-02 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty