|
|
|
@ -95,7 +95,7 @@ class PullRequestsController < ApplicationController
|
|
|
|
|
@commits_count = @commits.count
|
|
|
|
|
@changes = @g.merge_request_changes(@project.gpid, params[:id]).try(:changes)
|
|
|
|
|
@changes_count = @changes.count
|
|
|
|
|
@comments = @g.merge_request_comments(@project.gpid, params[:id])
|
|
|
|
|
@comments = @g.merge_request_comments(@project.gpid, params[:id]).reverse
|
|
|
|
|
@comments_count = @comments.count
|
|
|
|
|
|
|
|
|
|
@limit = 10
|
|
|
|
@ -178,7 +178,7 @@ class PullRequestsController < ApplicationController
|
|
|
|
|
# Gitlab.merge_request_comments(5, 1)
|
|
|
|
|
def pull_request_comments
|
|
|
|
|
begin
|
|
|
|
|
@comments = @g.merge_request_comments(@project.gpid, params[:id])
|
|
|
|
|
@comments = @g.merge_request_comments(@project.gpid, params[:id]).reverse
|
|
|
|
|
@comments_count = @comments.count
|
|
|
|
|
|
|
|
|
|
@limit = 10
|
|
|
|
@ -198,6 +198,7 @@ class PullRequestsController < ApplicationController
|
|
|
|
|
# merge_request_id (required) - The ID of MR
|
|
|
|
|
def pull_request_commits
|
|
|
|
|
begin
|
|
|
|
|
@type = params[:type]
|
|
|
|
|
@commits = @g.merge_request_commits(@project.gpid, params[:id])
|
|
|
|
|
@commits_count = @commits.count
|
|
|
|
|
|
|
|
|
@ -218,6 +219,7 @@ class PullRequestsController < ApplicationController
|
|
|
|
|
# merge_request_id (required) - The ID of MR
|
|
|
|
|
def pull_request_changes
|
|
|
|
|
begin
|
|
|
|
|
@type = params[:type]
|
|
|
|
|
@changes = @g.merge_request_changes(@project.gpid, params[:id]).try(:changes)
|
|
|
|
|
@changes_count = @changes.count
|
|
|
|
|
|
|
|
|
|