Merge branch 'standalone_develop' of https://gitlink.org.cn/Trustie/forgeplus into standalone_develop

This commit is contained in:
yystopf 2023-04-04 16:14:18 +08:00
commit 45bf8daf07
2 changed files with 5 additions and 2 deletions

View File

@ -16,7 +16,10 @@ class InstallationsController < ApplicationController
end
def repositories
@install_bots = BotInstall.where(:installer_id => current_user.id)
# 与github差异所以取安装用户和bot对应所有的仓库
install_bot = BotInstall.find params[:id]
bot = Bot.find_by(uid: current_user.id)
@install_bots = BotInstall.where(bot_id: bot.id).where(:installer_id => install_bot.installer_id)
end
def update_secret

View File

@ -1080,7 +1080,7 @@ Rails.application.routes.draw do
end
resources :installations, only: [] do
get :repositories, on: :collection
get :repositories, on: :member
end
root 'main#index'