Commit 958ee053 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Inherit from ApplicationController

parent 748c9354
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
# flow routes for Jira DVCS integration. # flow routes for Jira DVCS integration.
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/2381 # See https://gitlab.com/gitlab-org/gitlab-ee/issues/2381
# #
class Oauth::Jira::AuthorizationsController < ActionController::Base class Oauth::Jira::AuthorizationsController < ApplicationController
skip_before_action :authenticate_user!
skip_before_action :verify_authenticity_token
# 1. Rewire Jira OAuth initial request to our stablished OAuth authorization URL. # 1. Rewire Jira OAuth initial request to our stablished OAuth authorization URL.
def new def new
session[:redirect_uri] = params['redirect_uri'] session[:redirect_uri] = params['redirect_uri']
......
...@@ -29,6 +29,12 @@ module API ...@@ -29,6 +29,12 @@ module API
email: commit.author_email email: commit.author_email
} }
end end
expose :committer do |commit|
{
login: commit.author&.username,
email: commit.committer_email
}
end
expose :commit do |commit| expose :commit do |commit|
{ {
author: { author: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment