diff --git a/pagure/static/request_ev.js b/pagure/static/request_ev.js
new file mode 100644
index 0000000..a293315
--- /dev/null
+++ b/pagure/static/request_ev.js
@@ -0,0 +1,50 @@
+add_comment = function(data) {
+ console.log('Adding comment ' + data.comment_added);
+ if (data.commit_id){
+ // Inline comment
+ console.log('Inline');
+ var _data = '
| |
';
+ var field = $('[data-commit="' + data.commit_id + '"]').parent();
+ var id = field.children().children().attr('id').split('_')[0];
+ var row = $('#' + id + '_' + (parseInt(data.line) + 1)).parent().parent();
+ row.before(_data);
+ } else {
+ // Generic comment
+ console.log('generic');
+ var field = $('#request_comment');
+ var _data = '';
+
+ field.html(field.html() + _data);
+ }
+}
+
+process_event = function(data, requestid){
+ console.log(data);
+ if (data.comment_added){
+ add_comment(data);
+ }
+}
diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html
index 581883e..910a139 100644
--- a/pagure/templates/pull_request.html
+++ b/pagure/templates/pull_request.html
@@ -273,13 +273,14 @@
{% if pull_request and pull_request.comments%}
-
' + data.comment_added + '
\ +