|
|
|
@ -127,7 +127,10 @@ class IssuesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
def new
|
|
|
|
|
@all_branches = []
|
|
|
|
|
get_all_branches = Gitea::Repository::BranchesService.new(@user, @project.repository.try(:identifier)).call
|
|
|
|
|
get_all_branches = Gitea::Repository::BranchesService.new(@project.owner, @project.repository.identifier).call
|
|
|
|
|
Rails.logger.info("######____________###########{@project.owner.login}")
|
|
|
|
|
Rails.logger.info("######____________###########{@user.login}")
|
|
|
|
|
Rails.logger.info("######_____@project.repository.identifier_______###########{@project.repository.identifier}")
|
|
|
|
|
if get_all_branches && get_all_branches.size > 0
|
|
|
|
|
get_all_branches.each do |b|
|
|
|
|
|
@all_branches.push(b["name"])
|
|
|
|
|