mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fixed bot安装仓库列表,与github差异,所以取安装用户和bot对应所有的仓库
This commit is contained in:
@@ -16,8 +16,10 @@ class InstallationsController < ApplicationController
|
||||
end
|
||||
|
||||
def repositories
|
||||
# 与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 => bot.owner_id)
|
||||
@install_bots = BotInstall.where(bot_id: bot.id).where(:installer_id => install_bot.installer_id)
|
||||
end
|
||||
|
||||
def update_secret
|
||||
|
||||
Reference in New Issue
Block a user