This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Merge branch 'standalone_develop' of
https://gitlink.org.cn/Trustie/forgeplus
into standalone_develop
pull/342/head
yystopf
3 years ago
parent
657cfcb846
c2cda6a4a2
commit
45bf8daf07
2 changed files
with
5 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
app/controllers/installations_controller.rb
+1
-1
config/routes.rb
+ 4
- 1
app/controllers/installations_controller.rb
View File
@@ -16,7 +16,10 @@ class InstallationsController < ApplicationController
end
end
def repositories
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
end
def update_secret
def update_secret
+ 1
- 1
config/routes.rb
View File
@@ -1080,7 +1080,7 @@ Rails.application.routes.draw do
end
end
resources :installations, only: [] do
resources :installations, only: [] do
get :repositories, on: :
collection
get :repositories, on: :
member
end
end
root 'main#index'
root 'main#index'
Write
Preview
Loading…
Cancel
Save