mirror of
https://github.com/dolphin-emu/redmine_webhook.git
synced 2026-01-31 01:15:19 +01:00
add 'assignee' to data
This commit is contained in:
18
README.md
18
README.md
@@ -34,6 +34,15 @@ Post Data Example
|
||||
"login": "test",
|
||||
"id": 3
|
||||
},
|
||||
"assignee": {
|
||||
"icon_url": "http://www.gravatar.com/avatar/example",
|
||||
"identity_url": null,
|
||||
"lastname": "user",
|
||||
"firstname": "test",
|
||||
"mail": "test@example.com",
|
||||
"login": "test",
|
||||
"id": 3
|
||||
},
|
||||
"priority": {
|
||||
"name": "normal",
|
||||
"id": 2
|
||||
@@ -90,6 +99,15 @@ Post Data Example
|
||||
"login": "test",
|
||||
"id": 3
|
||||
},
|
||||
"assignee": {
|
||||
"icon_url": "http://www.gravatar.com/avatar/example",
|
||||
"identity_url": null,
|
||||
"lastname": "user",
|
||||
"firstname": "test",
|
||||
"mail": "test@example.com",
|
||||
"login": "test",
|
||||
"id": 3
|
||||
},
|
||||
"private_notes": false,
|
||||
"created_on": "2014-03-01T16:22:46Z",
|
||||
"notes": "Fixed",
|
||||
|
||||
@@ -23,7 +23,8 @@ class RedmineWebhook::IssueWrapper
|
||||
:status => RedmineWebhook::StatusWrapper.new(@issue.status).to_hash,
|
||||
:tracker => RedmineWebhook::TrackerWrapper.new(@issue.tracker).to_hash,
|
||||
:priority => RedmineWebhook::PriorityWrapper.new(@issue.priority).to_hash,
|
||||
:author => RedmineWebhook::AuthorWrapper.new(@issue.author).to_hash
|
||||
:author => RedmineWebhook::AuthorWrapper.new(@issue.author).to_hash,
|
||||
:assignee => RedmineWebhook::AuthorWrapper.new(@issue.assigned_to).to_hash
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user