{"action":"created","issue":{"url":"https://api.github.com/repos/opf/openproject/issues/3323","labels_url":"https://api.github.com/repos/opf/openproject/issues/3323/labels{/name}","comments_url":"https://api.github.com/repos/opf/openproject/issues/3323/comments","events_url":"https://api.github.com/repos/opf/openproject/issues/3323/events","html_url":"https://github.com/opf/openproject/pull/3323","id":99626335,"number":3323,"title":"[21047] Work package activities also display repository revisons","user":{"login":"oliverguenther","id":459462,"avatar_url":"https://avatars.githubusercontent.com/u/459462?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverguenther","html_url":"https://github.com/oliverguenther","followers_url":"https://api.github.com/users/oliverguenther/followers","following_url":"https://api.github.com/users/oliverguenther/following{/other_user}","gists_url":"https://api.github.com/users/oliverguenther/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverguenther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverguenther/subscriptions","organizations_url":"https://api.github.com/users/oliverguenther/orgs","repos_url":"https://api.github.com/users/oliverguenther/repos","events_url":"https://api.github.com/users/oliverguenther/events{/privacy}","received_events_url":"https://api.github.com/users/oliverguenther/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opf/openproject/labels/feature","name":"feature","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/opf/openproject/milestones/3","html_url":"https://github.com/opf/openproject/milestones/5.0","labels_url":"https://api.github.com/repos/opf/openproject/milestones/3/labels","id":1104474,"number":3,"title":"5.0","description":"","creator":{"login":"myabc","id":755,"avatar_url":"https://avatars.githubusercontent.com/u/755?v=3","gravatar_id":"","url":"https://api.github.com/users/myabc","html_url":"https://github.com/myabc","followers_url":"https://api.github.com/users/myabc/followers","following_url":"https://api.github.com/users/myabc/following{/other_user}","gists_url":"https://api.github.com/users/myabc/gists{/gist_id}","starred_url":"https://api.github.com/users/myabc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myabc/subscriptions","organizations_url":"https://api.github.com/users/myabc/orgs","repos_url":"https://api.github.com/users/myabc/repos","events_url":"https://api.github.com/users/myabc/events{/privacy}","received_events_url":"https://api.github.com/users/myabc/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":30,"state":"open","created_at":"2015-05-11T10:04:28Z","updated_at":"2015-08-18T09:23:21Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-08-07T10:51:13Z","updated_at":"2015-08-18T10:53:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/3323","html_url":"https://github.com/opf/openproject/pull/3323","diff_url":"https://github.com/opf/openproject/pull/3323.diff","patch_url":"https://github.com/opf/openproject/pull/3323.patch"},"body":"This commit adds preliminary support for showing aggregated regular work\r\npackage activities and revisions linked to that particular work package\r\n(through commit message referencing).\r\n\r\n### TODOS\r\n\r\n* [x] APIv3 endpoint must receive a property to output `formatted_identifier` (e.g., Git SHA shortened to 7chars)\r\n* [x] Activities are only shown when fully aggregated. Need to check for errors in the revisions collection retrieval\r\n* [x] Can we introduce a more abstract `activity` template to build upon? `revisions_activity` and `user_activity` share quite a bit of HTML.\r\n* [x] Unit tests\r\n* [X] Integration tests\r\n\r\n### Notes\r\n\r\nAuthor of a commit is not always linked to a user, if the committers were not set. Currently only the author name is shown in that case. We need to identify whether users should be matched heuristically (e.g., by name or mail), or rather pessimistically.\r\n\r\n\r\nRelated work packages:\r\nhttps://community.openproject.org/work_packages/15422\r\nhttps://community.openproject.org/work_packages/21047"},"comment":{"url":"https://api.github.com/repos/opf/openproject/issues/comments/132170956","html_url":"https://github.com/opf/openproject/pull/3323#issuecomment-132170956","issue_url":"https://api.github.com/repos/opf/openproject/issues/3323","id":132170956,"user":{"login":"oliverguenther","id":459462,"avatar_url":"https://avatars.githubusercontent.com/u/459462?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverguenther","html_url":"https://github.com/oliverguenther","followers_url":"https://api.github.com/users/oliverguenther/followers","following_url":"https://api.github.com/users/oliverguenther/following{/other_user}","gists_url":"https://api.github.com/users/oliverguenther/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverguenther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverguenther/subscriptions","organizations_url":"https://api.github.com/users/oliverguenther/orgs","repos_url":"https://api.github.com/users/oliverguenther/repos","events_url":"https://api.github.com/users/oliverguenther/events{/privacy}","received_events_url":"https://api.github.com/users/oliverguenther/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T10:53:35Z","updated_at":"2015-08-18T10:53:35Z","body":"@NobodysNightmare I've accounted for the localization remark and [added a workaround for initial activities that are not of type `Activity`](https://github.com/oliverguenther/openproject/commit/ccd86a4b75c3192a8533aa6461c34db0a486d9c8). I'll assign this to you once more since you're already familiar with the rest of the PR."}}