Compare commits

...

380 Commits

Author SHA1 Message Date
otto 2b1ea5c717 Update README.md 2025-09-12 09:05:33 +08:00
wanjia9506 b774ba9e48 Update README.md 2025-09-12 09:04:39 +08:00
maxjhandsome 93fdd503e3 Update README.md 2025-09-12 09:00:57 +08:00
lydia222 24a5a2e4e5 Update README.md 2025-09-12 08:59:59 +08:00
yangbiaodong 5037f05ea2 Update README.md 2025-09-12 08:57:06 +08:00
xxq250 cb34089982 Merge pull request '20250615版本' (#348) from Trustie/forgeplus:trustie_server into master 2025-06-15 11:47:51 +08:00
yystopf 4eb7d275a0 Merge branch 'pre_trustie_server' into trustie_server 2025-06-06 16:26:07 +08:00
yystopf 89dd43e079 Merge branch 'standalone_develop' into pre_trustie_server 2025-06-06 16:24:48 +08:00
xxq250 6ffac40f8d fixed 项目排行导出增加3列,时间处理 2025-06-06 10:23:45 +08:00
xxq250 0364b2b47c fixed 项目排行导出增加3列,时间处理 2025-06-06 10:23:25 +08:00
xxq250 a3e94e47e7 fixed 项目排行导出增加3列,时间 2025-06-06 10:18:37 +08:00
xxq250 0be92d5288 fixed 项目排行导出增加3列,时间 2025-06-06 10:18:07 +08:00
xxq250 8665d989c1 fixed 项目排行导出增加3列 2025-06-05 20:20:31 +08:00
xxq250 5df4f2d0b1 fixed 项目排行导出增加3列 2025-06-05 20:20:03 +08:00
xxq250 33138aed80 fixed readme路径转换问题处理 2025-05-12 16:00:56 +08:00
xxq250 b21317eb0a fixed 参数不传时处理pipeline_name 2025-04-08 09:30:43 +08:00
xxq250 925e9f1c64 fixed 我的工作项仅显示负责人的 2025-04-07 10:17:32 +08:00
xxq250 6c73c6f485 Merge branch 'standalone_develop' into trustie_server 2025-04-01 11:51:53 +08:00
xxq250 46873a77cd fixed 工作项加到项目时project_issues_index重排序号 2025-03-25 16:13:06 +08:00
xxq250 7fdf4e7557 fixed 工作项加到项目时project_issues_index重排序号 2025-03-25 15:51:47 +08:00
xxq250 272639f9fd Merge branch 'pre_trustie_server' into trustie_server 2025-03-25 15:41:53 +08:00
xxq250 fe77a97057 Merge branch 'standalone_develop' into pre_trustie_server 2025-03-25 15:41:24 +08:00
xxq250 c9e259e2e8 Merge branch 'pre_trustie_server' into trustie_server 2025-03-20 10:32:53 +08:00
xxq250 ce5beac223 Merge branch 'standalone_develop' into pre_trustie_server 2025-03-20 10:31:58 +08:00
xxq250 756ed9152e Merge branch 'pre_trustie_server' into trustie_server 2025-03-13 14:08:12 +08:00
xxq250 e17021b9c1 Merge branch 'standalone_develop' into pre_trustie_server 2025-03-13 14:07:15 +08:00
xxq250 552037642e fixed 接口限流增加白名单ip 2025-03-04 14:26:51 +08:00
xxq250 21a78563a0 fixed issue关闭时,到期结束时间更新 2025-03-03 10:51:53 +08:00
xxq250 8b72f5157c fixed 迭代完成时,结束时间更新 2025-03-03 10:38:10 +08:00
xxq250 49bd1a130a raw api limit request.path 2025-02-28 22:25:05 +08:00
xxq250 ae6400a06d raw api limit request.path 2025-02-28 22:23:43 +08:00
xxq250 36c6e77f6d raw api limit log 2025-02-28 22:13:01 +08:00
xxq250 add2afeb5f raw api limit 2025-02-28 21:59:54 +08:00
xxq250 6ede037c62 raw api limit 2025-02-28 21:58:16 +08:00
xxq250 292248b9b8 raw referer 2025-02-28 21:51:18 +08:00
xxq250 377adf901f Merge pull request '20250225版本' (#346) from Trustie/forgeplus:trustie_server into master 2025-02-25 11:04:14 +08:00
yystopf 9e10625b8b Merge branch 'pre_trustie_server' into trustie_server 2025-02-14 16:35:37 +08:00
yystopf 383019b7f5 Merge branch 'standalone_develop' into pre_trustie_server 2025-02-14 16:35:09 +08:00
xxq250 54c38fd9e7 Merge pull request 'nps增加明细更新' (#330) from pre_trustie_server into trustie_server 2025-01-23 10:55:50 +08:00
xxq250 26621340f1 Merge pull request 'nps增加明细更新' (#329) from standalone_develop into pre_trustie_server 2025-01-23 10:55:12 +08:00
xxq250 d188e5bb7b Merge branch 'pre_trustie_server' into trustie_server 2024-11-28 17:37:12 +08:00
xxq250 f7d3e7acdf Merge branch 'standalone_develop' into pre_trustie_server 2024-11-28 17:36:49 +08:00
xxq250 2b67333f74 Merge branch 'pre_trustie_server' into trustie_server 2024-11-28 17:24:27 +08:00
xxq250 de9e7cfcd6 Merge branch 'standalone_develop' into pre_trustie_server 2024-11-28 17:23:50 +08:00
xxq250 5dbf614e00 Merge branch 'pre_trustie_server' into trustie_server 2024-11-28 17:00:45 +08:00
xxq250 3d3c09a804 Merge branch 'standalone_develop' into pre_trustie_server 2024-11-28 17:00:10 +08:00
yystopf 12061f4ce8 Merge branch 'pre_trustie_server' into trustie_server 2024-11-22 15:38:30 +08:00
yystopf f94d224afc Merge branch 'standalone_develop' into pre_trustie_server 2024-11-22 15:38:08 +08:00
yystopf 73f0b2c075 Merge branch 'pre_trustie_server' into trustie_server 2024-11-18 17:23:27 +08:00
yystopf ad239580da Merge branch 'standalone_develop' into pre_trustie_server 2024-11-18 17:23:07 +08:00
yystopf b55f24e6fe Merge branch 'pre_trustie_server' into trustie_server 2024-11-16 14:36:37 +08:00
yystopf 0336aa0cca Merge branch 'standalone_develop' into pre_trustie_server 2024-11-16 14:36:07 +08:00
yystopf a0138a8d7b Merge branch 'pre_trustie_server' into trustie_server 2024-11-08 13:57:57 +08:00
yystopf a3075c157b Merge branch 'standalone_develop' into pre_trustie_server 2024-11-08 13:55:39 +08:00
xxq250 a247c3ae46 fixed 群智熵汇聚 2024-11-08 13:35:23 +08:00
xxq250 25630ce40f fixed 群智熵汇聚 2024-11-06 17:22:38 +08:00
xxq250 acda84fec2 Merge remote-tracking branch 'origin/trustie_server' into trustie_server 2024-11-06 16:19:56 +08:00
xxq250 cfcc0d8d0a fixed 群智熵汇聚 2024-11-06 16:19:40 +08:00
yystopf ba20708514 Merge branch 'pre_trustie_server' into trustie_server 2024-10-25 15:32:39 +08:00
yystopf 64ffab243c Merge branch 'standalone_develop' into pre_trustie_server 2024-10-25 15:31:56 +08:00
xxq250 0d2ed00e4c fixed raw request.referer 防盗链 2024-10-22 09:27:53 +08:00
xxq250 7303be9db2 fixed oauth2用户接口用户信息过滤表情 2024-10-18 09:13:15 +08:00
xxq250 3e09ee08d3 fixed get_file request.referer 防盗链优化处理 2024-10-17 16:25:18 +08:00
xxq250 84a46a1042 fixed get_file request.referer 防盗链 2024-10-17 16:25:17 +08:00
xxq250 d887eb5d41 fixed get_file request.referer 测试 2024-10-17 16:25:17 +08:00
xxq250 3229ef5e2e fixed get_file request.referer 2024-10-17 15:33:57 +08:00
xxq250 267adf354b fixed get_file ref空处理 2024-10-17 14:37:35 +08:00
xxq250 e91ae81589 fixed gitea文件下载缓存,md5 tmp_path 2024-10-17 14:33:07 +08:00
xxq250 e94e45bb63 fixed gitea文件下载缓存,md5 file 2024-10-17 14:33:07 +08:00
xxq250 3597dc38e7 fixed gitea文件下载缓存,md5 2024-10-17 14:33:07 +08:00
xxq250 314ccdba0b fixed gitea文件下载缓存,更改目录 2024-10-17 12:00:31 +08:00
xxq250 670f05c658 fixed gitea文件下载缓存,更改目录 2024-10-17 11:58:53 +08:00
xxq250 e0b47faec9 fixed gitea文件下载缓存,更改目录 2024-10-17 11:51:59 +08:00
xxq250 768b4f1f57 fixed gitea文件下载缓存,更改目录 2024-10-17 11:47:58 +08:00
xxq250 2055a5a3a6 gitea文件下载缓存,更改目录 2024-10-17 11:33:40 +08:00
xxq250 f2ab9f6a28 gitea文件下载缓存 2024-10-17 11:33:40 +08:00
xxq250 2e773e92fb oauth2已登录跳转 2024-10-16 13:47:46 +08:00
xxq250 db736cae66 oauth2已登录跳转 2024-10-16 13:44:55 +08:00
xxq250 13517c8eab Merge branch 'pre_trustie_server' into trustie_server 2024-10-15 08:59:31 +08:00
xxq250 1bf1651b0c Merge branch 'standalone_develop' into pre_trustie_server 2024-10-15 08:58:28 +08:00
xxq250 77f31e3a78 脚本:增加成员用户到批量仓库 2024-10-14 11:56:55 +08:00
xxq250 8b8388f8db Merge branch 'pre_trustie_server' into trustie_server 2024-09-20 17:21:43 +08:00
xxq250 2dd567d212 Merge branch 'standalone_develop' into pre_trustie_server 2024-09-20 17:21:16 +08:00
xxq250 6ba0374119 fixed 头歌接口增加安全参数 2024-09-18 15:53:20 +08:00
xxq250 bf7178fb37 fixed 头歌接口增加安全参数 2024-09-18 15:50:43 +08:00
xxq250 53988cf557 fixed 授权登录session 2024-09-18 15:22:46 +08:00
xxq250 ba77db7cc3 fixed 授权登录session 2024-09-18 15:20:34 +08:00
xxq250 f221e9c069 Merge branch 'pre_trustie_server' into trustie_server 2024-09-18 11:51:30 +08:00
xxq250 cc8899906f Merge branch 'standalone_develop' into pre_trustie_server 2024-09-18 11:50:42 +08:00
yystopf 7bc213fe88 Merge branch 'pre_trustie_server' into trustie_server 2024-09-14 11:45:12 +08:00
yystopf 91125c5e44 Merge branch 'standalone_develop' into pre_trustie_server 2024-09-14 11:45:00 +08:00
yystopf 1e47fa7c91 Merge branch 'pre_trustie_server' into trustie_server 2024-09-14 09:39:18 +08:00
yystopf b63b15c7fd Merge branch 'standalone_develop' into pre_trustie_server 2024-09-14 09:39:05 +08:00
yystopf 38ef156b55 Merge branch 'pre_trustie_server' into trustie_server 2024-09-14 08:42:11 +08:00
yystopf 26736a1cd6 Merge branch 'standalone_develop' into pre_trustie_server 2024-09-14 08:40:33 +08:00
xxq250 8ccaedd3d1 短信ip限制2小时30次 2024-09-12 17:24:39 +08:00
yystopf 1026a5ea3d Merge branch 'pre_trustie_server' into trustie_server 2024-09-06 10:24:05 +08:00
yystopf 2a1b9792cd Merge branch 'standalone_develop' into pre_trustie_server 2024-09-06 10:23:45 +08:00
xxq250 5b9b08c05d fixed 个人项目列表条件增加标签名查询,索引失效 2024-08-29 17:08:31 +08:00
xxq250 ccfe28ceb9 Merge branch 'standalone_develop' into trustie_server 2024-08-29 16:31:45 +08:00
xxq250 d10334a825 fixed 个人项目列表条件增加标签名查询 2024-08-29 16:25:14 +08:00
xxq250 30eedbafb9 fixed 个人项目列表条件增加标签名查询 2024-08-29 16:24:43 +08:00
xxq250 7b6845ec3e fixed 个人项目列表条件增加标签名查询 2024-08-29 16:22:28 +08:00
xxq250 f80a33c9df Merge branch 'standalone_develop' into trustie_server 2024-08-29 16:21:18 +08:00
xxq250 04f8bcb1b0 fixed 项目列表条件count增加标签名 2024-08-29 16:05:32 +08:00
xxq250 0559110d12 fixed 项目列表条件count增加标签名 2024-08-29 16:05:18 +08:00
xxq250 05dd162646 fixed 项目列表支持多个标签名称查询, 定制项目标签可查自己私有仓 2024-08-29 16:02:25 +08:00
yystopf 0dea83488d Merge branch 'pre_trustie_server' into trustie_server 2024-08-27 16:37:04 +08:00
yystopf 792810f4a9 Merge branch 'standalone_develop' into pre_trustie_server 2024-08-27 16:36:43 +08:00
xxq250 adf77df1bf Merge pull request '20240823版本' (#345) from Trustie/forgeplus:trustie_server into master 2024-08-23 15:06:57 +08:00
xxq250 fde238eb1b fixed 项目列表支持多个标签名称查询 2024-08-21 11:06:43 +08:00
xxq250 19c2367257 fixed 项目列表支持多个标签名称查询 2024-08-21 11:00:54 +08:00
yystopf 233642d903 Merge branch 'pre_trustie_server' into trustie_server 2024-08-13 15:48:35 +08:00
yystopf fd54d4d10c Merge branch 'standalone_develop' into pre_trustie_server 2024-08-13 15:48:19 +08:00
yystopf 65dba54a41 Merge branch 'pre_trustie_server' into trustie_server 2024-08-12 15:04:58 +08:00
yystopf 913f4faefd Merge branch 'standalone_develop' into pre_trustie_server 2024-08-12 15:04:40 +08:00
yystopf 8819c9b9ae Merge branch 'pre_trustie_server' into trustie_server 2024-08-09 11:31:07 +08:00
yystopf 61a36cc847 Merge branch 'standalone_develop' into pre_trustie_server 2024-08-09 11:30:23 +08:00
xxq250 2b55bfacf8 Merge remote-tracking branch 'origin/trustie_server' into trustie_server 2024-07-22 09:42:08 +08:00
xxq250 97af146a30 sitemaptest.xml 2024-07-22 09:41:56 +08:00
yystopf b7c009ae94 Merge branch 'pre_trustie_server' into trustie_server 2024-07-19 14:34:28 +08:00
yystopf 1fc75379e4 Merge branch 'standalone_develop' into pre_trustie_server 2024-07-19 14:34:13 +08:00
yystopf ecde7be506 Merge branch 'pre_trustie_server' into trustie_server 2024-07-12 17:06:00 +08:00
yystopf 87bcc7b8d0 Merge branch 'standalone_develop' into pre_trustie_server 2024-07-12 17:05:37 +08:00
yystopf 79e3ac3fa8 Merge branch 'pre_trustie_server' into trustie_server 2024-07-05 15:05:34 +08:00
yystopf a34f17b669 Merge branch 'standalone_develop' into pre_trustie_server 2024-07-05 15:05:03 +08:00
yystopf 8637dfb193 Merge branch 'pre_trustie_server' into trustie_server 2024-06-27 09:16:01 +08:00
yystopf 90d0c8a282 Merge branch 'standalone_develop' into pre_trustie_server 2024-06-27 09:15:37 +08:00
xxq250 2c8e285170 release 可不登录下载 2024-06-21 15:46:47 +08:00
xxq250 6d593f786b Merge branch 'pre_trustie_server' into trustie_server 2024-06-21 15:42:58 +08:00
xxq250 b4c5991bc8 Merge branch 'standalone_develop' into pre_trustie_server 2024-06-21 15:42:03 +08:00
xxq250 59907c371d fixed 私有用户信息接口查询 2024-06-12 11:12:25 +08:00
xxq250 2219dc5b76 fixed 私有用户信息接口查询 2024-06-12 11:08:31 +08:00
xxq250 90928219fb fixed request.referer 跟踪 2024-06-11 10:28:55 +08:00
yystopf f68224ea2b Merge branch 'pre_trustie_server' into trustie_server 2024-06-07 10:41:28 +08:00
yystopf 7df9bfd297 Merge branch 'standalone_develop' into pre_trustie_server 2024-06-07 10:41:16 +08:00
yystopf fdc7c1565e Merge branch 'pre_trustie_server' into trustie_server 2024-06-06 11:39:43 +08:00
yystopf 0c361b0c54 Merge branch 'standalone_develop' into pre_trustie_server 2024-06-06 11:37:46 +08:00
yystopf 7482458135 Merge branch 'standalone_develop' into pre_trustie_server 2024-06-06 11:35:04 +08:00
xxq250 4a4ffea71c fixed attachment.uuid 2024-06-05 09:38:09 +08:00
xxq250 d6399e26db fixed attachment.uuid 2024-06-05 09:34:35 +08:00
xxq250 f6c5916b97 fixed referer log 2024-06-04 09:36:50 +08:00
xxq250 cfb7f61f0d fixed referer log 2024-06-04 09:33:17 +08:00
xxq250 73c747397f fixed 竞赛日志 2024-06-03 11:26:14 +08:00
xxq250 6eafc2eb84 fixed 竞赛日志 2024-06-03 11:22:58 +08:00
xxq250 58e17d6a01 fixed 竞赛日志 2024-06-03 11:18:15 +08:00
xxq250 b83982c623 fixed 竞赛用户错误和日志 2024-06-03 11:15:11 +08:00
xxq250 411e7535d9 sitemap 2024-05-23 13:47:18 +08:00
yystopf 65ad9f6c44 Merge branch 'pre_trustie_server' into trustie_server 2024-05-16 17:25:23 +08:00
yystopf 2724174f9a Merge branch 'standalone_develop' into pre_trustie_server 2024-05-16 17:25:04 +08:00
yystopf 35378c3a04 Merge branch 'pre_trustie_server' into trustie_server 2024-05-15 16:22:33 +08:00
yystopf 697f022ab1 Merge branch 'standalone_develop' into pre_trustie_server 2024-05-15 16:22:06 +08:00
yystopf cf6b991027 Merge branch 'pre_trustie_server' into trustie_server 2024-05-11 16:28:19 +08:00
yystopf 6155187550 Merge branch 'standalone_develop' into pre_trustie_server 2024-05-11 16:28:10 +08:00
yystopf 26b00f364f Merge branch 'pre_trustie_server' into trustie_server 2024-05-11 15:03:26 +08:00
yystopf ba2e03287d Merge branch 'standalone_develop' into pre_trustie_server 2024-05-11 15:03:14 +08:00
yystopf 0414086daa Merge branch 'pre_trustie_server' into trustie_server 2024-05-10 15:12:24 +08:00
yystopf 35f1b840a6 Merge branch 'standalone_develop' into pre_trustie_server 2024-05-10 15:11:51 +08:00
xxq250 c63258a519 fork报错日志跟踪 2024-05-08 17:19:55 +08:00
xxq250 e96d4e3d05 Merge remote-tracking branch 'origin/pre_trustie_server' into pre_trustie_server 2024-05-08 17:19:19 +08:00
xxq250 b1b234d6c0 fork报错日志跟踪 2024-05-08 17:19:06 +08:00
yystopf ef6d952124 Merge branch 'pre_trustie_server' into trustie_server 2024-04-30 16:28:59 +08:00
yystopf be73306cf8 Merge branch 'standalone_develop' into pre_trustie_server 2024-04-30 16:28:40 +08:00
yystopf 6683fef667 Merge branch 'pre_trustie_server' into trustie_server 2024-04-30 15:48:14 +08:00
yystopf 289d1e795e Merge branch 'standalone_develop' into pre_trustie_server 2024-04-30 15:47:37 +08:00
xxq250 031ad5fb08 提交日志中创建时间按commit date来 2024-04-24 11:16:59 +08:00
xxq250 6f0993396d 统计优化,月份统计还需要优化 2024-04-24 10:25:35 +08:00
xxq250 8cdacc3210 统计优化,月份统计还需要优化 2024-04-24 10:19:48 +08:00
xxq250 01a38f89a7 统计优化,月份统计还需要优化 2024-04-24 10:09:56 +08:00
xxq250 9a7e9b4237 提交记录表增加日期索引 2024-04-24 08:46:08 +08:00
xxq250 b744e10dfc Merge branch 'pre_trustie_server' into trustie_server 2024-04-22 08:46:25 +08:00
xxq250 a54aa72f46 Merge branch 'standalone_develop' into pre_trustie_server 2024-04-22 08:45:50 +08:00
xxq250 b7a400060b Merge branch 'pre_trustie_server' into trustie_server 2024-04-19 17:22:15 +08:00
xxq250 7ab159d7f9 Merge branch 'standalone_develop' into pre_trustie_server 2024-04-19 17:21:35 +08:00
xxq250 5fb4a82f2b Merge branch 'pre_trustie_server' into trustie_server 2024-04-19 10:58:00 +08:00
xxq250 1a186547d3 Merge branch 'standalone_develop' into pre_trustie_server 2024-04-19 10:56:46 +08:00
xxq250 4dc1c0b7b4 竞赛banner跳转链接 setting中配置 2024-04-18 14:02:14 +08:00
xxq250 4c7963585f 竞赛banner跳转链接 setting中配置 2024-04-18 13:44:42 +08:00
xxq250 1554268b17 竞赛banner setting中配置 2024-04-17 11:13:13 +08:00
xxq250 9950273460 竞赛banner setting中配置 2024-04-17 11:12:38 +08:00
xxq250 2dafe8c9c9 Merge branch 'pre_trustie_server' into trustie_server 2024-04-16 13:40:53 +08:00
xxq250 8e8226d15b Merge branch 'standalone_develop' into pre_trustie_server 2024-04-16 13:40:13 +08:00
xxq250 810db632d9 Merge branch 'pre_trustie_server' into trustie_server 2024-04-16 10:05:58 +08:00
xxq250 3762515207 Merge branch 'standalone_develop' into pre_trustie_server 2024-04-16 10:04:42 +08:00
yystopf 7ef905c7d6 Merge branch 'pre_trustie_server' into trustie_server 2024-04-15 08:53:06 +08:00
yystopf f9b1aac07e Merge branch 'standalone_develop' into pre_trustie_server 2024-04-15 08:52:18 +08:00
xxq250 e861dd059e Merge pull request 'fixed 附件为视频时,点击播放' (#275) from pre_trustie_server into trustie_server 2024-04-10 09:23:30 +08:00
xxq250 957a8f9d85 Merge pull request 'fixed 附件为视频时,点击播放' (#274) from standalone_develop into pre_trustie_server 2024-04-10 09:22:45 +08:00
yystopf 49bcff6277 Merge branch 'pre_trustie_server' into trustie_server 2024-04-08 09:35:01 +08:00
yystopf abed0079d9 Merge branch 'standalone_develop' into pre_trustie_server 2024-04-08 09:34:49 +08:00
yystopf dea9444a56 Merge branch 'pre_trustie_server' into trustie_server 2024-04-07 17:25:40 +08:00
yystopf 493de92920 Merge branch 'standalone_develop' into pre_trustie_server 2024-04-07 17:25:01 +08:00
yystopf a0b7cc99a1 Merge branch 'pre_trustie_server' into trustie_server 2024-03-27 17:19:32 +08:00
yystopf 59a6e3121e Merge branch 'standalone_develop' into pre_trustie_server 2024-03-27 17:19:07 +08:00
xxq250 35cc2cb735 Merge pull request '20240326版本' (#344) from develop into master 2024-03-26 15:18:26 +08:00
xxq250 f4ddc45d6b Merge pull request '20240326版本' (#343) from Trustie/forgeplus:pre_trustie_server into develop 2024-03-26 15:17:25 +08:00
yystopf 30ffd95fa5 Merge branch 'pre_trustie_server' into trustie_server 2024-03-22 13:44:44 +08:00
yystopf 51266553f8 Merge branch 'standalone_develop' into pre_trustie_server 2024-03-22 13:44:14 +08:00
xxq250 acb99701a1 site map zone 2024-03-18 14:13:32 +08:00
xxq250 768764a814 sitemap.txt 2024-01-26 14:58:33 +08:00
xxq250 d106ac9763 上周统计一直显示 2024-01-24 15:38:21 +08:00
xxq250 7a57108ca5 Merge branch 'pre_trustie_server' into trustie_server 2024-01-22 13:03:54 +08:00
xxq250 99e0d8b128 Merge branch 'standalone_develop' into pre_trustie_server 2024-01-22 13:03:18 +08:00
xxq250 c562d5a102 Merge branch 'pre_trustie_server' into trustie_server 2024-01-22 12:58:34 +08:00
xxq250 24e4020809 Merge branch 'standalone_develop' into pre_trustie_server 2024-01-22 12:57:48 +08:00
xxq250 1fd4196751 sitemap.txt 2024-01-20 12:09:37 +08:00
xxq250 89e755a590 dashboards 总数据统计缓存1天 2024-01-19 14:51:05 +08:00
yystopf ec2f7d8c03 Merge branch 'pre_trustie_server' into trustie_server 2024-01-18 09:59:05 +08:00
yystopf 302e501610 Merge branch 'standalone_develop' into pre_trustie_server 2024-01-18 09:58:49 +08:00
yystopf 7d6e09c696 Merge branch 'pre_trustie_server' into trustie_server 2024-01-17 17:53:48 +08:00
yystopf db0b47c39e Merge branch 'standalone_develop' into pre_trustie_server 2024-01-17 17:53:25 +08:00
yystopf 4453975b54 Merge branch 'standalone_develop' into pre_trustie_server 2024-01-17 16:38:24 +08:00
yystopf 2ebd8c44f5 Merge branch 'pre_trustie_server' into trustie_server 2024-01-17 16:29:44 +08:00
yystopf 817b607a54 Merge branch 'standalone_develop' into pre_trustie_server 2024-01-17 16:28:41 +08:00
yystopf 6d2ae4dcf1 Merge branch 'pre_trustie_server' of https://gitlink.org.cn/Trustie/forgeplus into pre_trustie_server 2024-01-17 16:28:20 +08:00
xxq250 5a5a602ce5 sitemap.xml 2024-01-16 15:52:03 +08:00
xxq250 4498369064 google提交sitemap认证 2024-01-15 16:50:54 +08:00
xxq250 109ef3fe1c fixed 版本发布uuid 变化 2024-01-15 15:52:20 +08:00
xxq250 38f711f4ae sitemap.txt 2024-01-15 15:17:57 +08:00
xxq250 3333e8c779 接入百度统计部分数据,按天存储,refresh_access_token 2024-01-15 11:31:06 +08:00
xxq250 fd62ffdee2 Merge branch 'pre_trustie_server' into trustie_server 2024-01-15 11:28:49 +08:00
xxq250 6ca883aedd Merge branch 'standalone_develop' into pre_trustie_server 2024-01-15 11:27:41 +08:00
xxq250 72b3279e8b Merge remote-tracking branch 'origin/trustie_server' into trustie_server 2024-01-11 14:20:17 +08:00
xxq250 3a85d1d736 附件表uuid增加索引 2024-01-11 14:19:46 +08:00
xxq250 1e159ec1cf 附件表uuid增加索引 2024-01-11 14:18:53 +08:00
yystopf 9d45ea07c8 Merge branch 'trustie_server' of https://gitlink.org.cn/Trustie/forgeplus into trustie_server 2023-12-22 14:00:51 +08:00
yystopf beb96c5526 Merge branch 'pre_trustie_server' into trustie_server 2023-12-22 14:00:36 +08:00
yystopf 2562329a5e Merge branch 'standalone_develop' into pre_trustie_server 2023-12-22 13:47:39 +08:00
xxq250 2c5b9649aa Merge branch 'pre_trustie_server' into trustie_server 2023-12-18 13:45:05 +08:00
xxq250 c8217d8596 Merge branch 'standalone_develop' into pre_trustie_server 2023-12-18 13:44:15 +08:00
yystopf 1ecd7f26b6 Merge branch 'pre_trustie_server' into trustie_server 2023-12-15 10:49:54 +08:00
xxq250 d4b46dbf97 Merge branch 'standalone_develop' into pre_trustie_server
# Conflicts:
#	app/controllers/api/v1/issues_controller.rb
#	app/models/identity_verification.rb
#	app/models/issue.rb
#	app/models/journal.rb
#	app/services/api/v1/issues/list_service.rb
2023-12-15 10:40:58 +08:00
xxq250 03283813c2 fixed 用户搜索按昵称和登录时间倒排序 2023-12-14 16:50:13 +08:00
xxq250 4b57e96914 fixed 用户搜索按昵称和登录时间倒排序 2023-12-14 16:49:44 +08:00
xxq250 095c83d2d0 Merge pull request '20231213版本' (#342) from Trustie/forgeplus:trustie_server into master 2023-12-13 15:01:17 +08:00
xxq250 03277d2ad7 commit_log_to_db.rake trustie all 2023-12-09 12:23:17 +08:00
xxq250 c2a4e62131 commit_log_to_db.rake trustie all 2023-12-09 12:21:37 +08:00
xxq250 f81b3a0b35 commit_log_to_db.rake trustie 2023-12-09 09:40:03 +08:00
xxq250 6fb22d3117 Merge branch 'pre_trustie_server' into trustie_server 2023-12-01 14:59:47 +08:00
xxq250 d0623e4d57 rake copy attachemnt 2023-12-01 14:59:44 +08:00
xxq250 32f03abe84 合并开发分支代码 2023-12-01 14:57:01 +08:00
xxq250 24b5c4e672 合并开发分支代码 2023-12-01 14:53:48 +08:00
xxq250 33c56e3e79 fixed 评论回复增加parent_id索引,解决性能问题 2023-11-15 08:53:30 +08:00
xxq250 ce7a0e4884 fixed 评论回复增加parent_id索引,解决性能问题 2023-11-15 08:53:04 +08:00
xxq250 5541002dab Merge branch 'pre_trustie_server' into trustie_server 2023-11-15 08:45:17 +08:00
xxq250 228209b52c fixed 容错处理 2023-11-15 08:44:35 +08:00
yystopf 9ee2c8dde3 修复:issue子评论关联查询错误 2023-11-15 08:44:35 +08:00
xxq250 6a989f972a Merge branch 'pre_trustie_server' into trustie_server
# Conflicts:
#	app/models/issue.rb
#	app/models/journal.rb
2023-10-24 20:46:02 +08:00
xxq250 2e2f7b2bd5 fixed issue和评论里的附件解析关联,增强附件访问权限控制,切换到 项目保护 2023-10-24 20:43:19 +08:00
xxq250 cf190632a1 fixed issue评论里的附件解析关联,增强附件访问权限控制 2023-10-24 20:43:19 +08:00
xxq250 d4d96759ac fixed issue描述里的附件解析关联,增强附件访问权限控制 2023-10-24 20:43:18 +08:00
xxq250 abbb033fc7 fixed issue评论里的附件解析关联,增强附件访问权限控制 2023-10-18 15:24:39 +08:00
xxq250 99fe06c788 fixed issue描述里的附件解析关联,增强附件访问权限控制 2023-10-18 15:16:14 +08:00
xxq250 fa1a03e4db Merge branch 'pre_trustie_server' into trustie_server 2023-10-18 14:02:49 +08:00
xxq250 28b8e15fea fixed 设置非公开图片权限 2023-10-18 13:59:54 +08:00
呱呱呱 624e5b150e 设置非public图片查看权限 2023-10-18 13:57:54 +08:00
xxq250 bf232f3518 Merge branch 'pre_trustie_server' into trustie_server 2023-10-13 14:14:46 +08:00
xxq250 50a0ecdbd2 Merge branch 'standalone_develop' into pre_trustie_server 2023-10-13 14:14:07 +08:00
xxq250 bb0bbeb06c fixed 文件增加是否文本判断,可显示多种文本文件 2023-10-11 17:25:24 +08:00
xxq250 1e427a62a6 Merge pull request '20231011版本' (#338) from Trustie/forgeplus:standalone_develop into develop 2023-10-11 10:15:55 +08:00
xxq250 ef3472567e fixed 组织pr识别 2023-10-07 21:12:58 +08:00
xxq250 e07af929b2 Merge branch 'pre_trustie_server' into trustie_server 2023-10-07 20:08:08 +08:00
xxq250 31b07e47a9 Merge branch 'standalone_develop' into pre_trustie_server 2023-10-07 20:07:31 +08:00
xxq250 4c354f6841 Merge branch 'pre_trustie_server' into trustie_server 2023-09-28 15:33:37 +08:00
xxq250 9cd148e108 Merge branch 'standalone_develop' into pre_trustie_server 2023-09-28 15:32:43 +08:00
xxq250 e6f2e9a798 Merge branch 'pre_trustie_server' into trustie_server 2023-09-26 15:01:07 +08:00
xxq250 0da32d15a9 Merge branch 'standalone_develop' into pre_trustie_server 2023-09-26 15:00:37 +08:00
xxq250 c6461de871 Merge branch 'pre_trustie_server' into trustie_server 2023-09-25 17:58:15 +08:00
xxq250 09bab2f462 Merge branch 'standalone_develop' into pre_trustie_server 2023-09-25 17:57:57 +08:00
xxq250 02b85859b5 pages 合并 2023-09-25 10:50:35 +08:00
xxq250 14462752cc Merge branch 'standalone_develop' into pre_trustie_server 2023-09-25 10:47:59 +08:00
xxq250 18377dc2e0 Merge branch 'pre_trustie_server' into trustie_server 2023-08-31 16:08:38 +08:00
xxq250 743c63a796 fixed 文件无权限提示修改 2023-08-31 16:07:48 +08:00
xxq250 74c42f679a fixed 册除失败提示 2023-08-31 16:07:48 +08:00
xxq250 300dffd2a1 fixed 分支删除时有开启的pr需要一同关闭,整理fix 2023-08-31 16:07:47 +08:00
xxq250 9db60413d9 fixed 分支删除时有开启的pr需要一同关闭,整理 2023-08-31 16:07:47 +08:00
xxq250 04c147d80d fixed 分支删除时有开启的pr需要一同关闭,合并请求下issue关闭 2023-08-31 16:07:46 +08:00
xxq250 1da6c582f0 fixed 分支删除时有开启的pr需要一同关闭 2023-08-31 16:07:46 +08:00
xxq250 2e15988ad6 gitea api error log show 2023-08-31 16:07:30 +08:00
xxq250 f47c4e4b9c gitea api error show 2023-08-31 16:07:29 +08:00
xxq250 1d1d6ebda1 fixed 注册时支持中划线的邮箱地址 2023-08-31 16:07:14 +08:00
xxq250 56103a885b fixed fork后重命名项目标识再forked失败 2023-08-31 16:07:14 +08:00
xxq250 c9659fd926 fixed fork后重命名项目标识再forked失败 2023-08-22 12:25:15 +08:00
xxq250 b73f724bb7 fixed fork后重命名项目标识再forked失败 2023-08-22 11:45:10 +08:00
xxq250 ca85975197 fixed fork后重命名项目标识再forked失败 2023-08-22 11:42:26 +08:00
呱呱呱 9763d5c780 fix fork create bug 2023-08-22 09:46:06 +08:00
xxq250 391059602e Merge branch 'pre_trustie_server' into trustie_server
# Conflicts:
#	app/helpers/repositories_helper.rb
2023-08-16 17:18:03 +08:00
xxq250 dd938a218e Merge pull request 'GLCC PR检测并发送邮件功能' (#104) from KingChan/forgeplus:pr_detection into pre_trustie_server 2023-08-16 17:15:39 +08:00
xxq250 0ea45459b8 fixed PR中合并来源显示错误,列表 2023-08-11 17:33:42 +08:00
xxq250 d1adffbd76 fixed PR中合并来源显示错误 2023-08-11 17:24:05 +08:00
xxq250 232bef8f88 fixed readme图片解析增加多种格式 2023-08-09 16:43:35 +08:00
xxq250 7e29a5d47f fixed readme图片解析增加多种格式 2023-08-09 16:43:34 +08:00
xxq250 174a2d47dc fixed @compare_result null done 2023-08-07 15:20:33 +08:00
xxq250 9f23400d2a readme中变量路径修正,放行符处理 2023-07-28 17:56:40 +08:00
xxq250 3527e89866 readme中变量路径修正,放行符处理 2023-07-28 17:54:14 +08:00
xxq250 9a5a4e8d66 readme中变量路径修正 2023-07-27 18:33:29 +08:00
xxq250 92f0ed71a1 readme中变量图片相对路径 2023-07-27 18:10:33 +08:00
xxq250 9428b5aebb SyncRepoUpdateTimeJob stop 2023-07-27 15:38:45 +08:00
xxq250 72f88c8c13 Update deploy.md 2023-07-18 15:52:54 +08:00
xxq250 349c775404 fixed 更新时判断是否有昵称 2023-07-17 23:05:26 +08:00
xxq250 dd914595fa 用户支持手机号搜索 2023-07-17 21:47:20 +08:00
xxq250 3ac9c0b5d8 merge develop 2023-07-14 14:07:48 +08:00
xxq250 0f5b0b6b48 Merge branch 'standalone_develop' into pre_trustie_server 2023-07-14 14:04:49 +08:00
xxq250 0f45f31db0 Get gitea tokens 2023-07-12 15:22:32 +08:00
xxq250 3bd4187b0e fixed diff接口切换到hat 2023-07-11 17:00:57 +08:00
xxq250 46456d956a fixed 调用区块链接口 2023-07-11 15:30:01 +08:00
xxq250 f15bc3a3bf fixed log跟踪 2023-07-11 15:16:46 +08:00
xxq250 466705bd0f fixed 项目detail 2023-07-10 14:02:08 +08:00
xxq250 a40c5a7619 贡献者数量调整 2023-07-07 17:14:25 +08:00
xxq250 fc4520c06f 项目贡献排行分页参数3年内 2023-07-07 10:32:55 +08:00
xxq250 909488b072 项目贡献排行分页参数3年内 2023-07-07 10:31:35 +08:00
xxq250 3a2b476dd0 项目贡献排行分页参数 2023-07-07 10:05:07 +08:00
xxq250 bbacebc1c9 更新文件失败处理 2023-07-06 16:04:28 +08:00
xxq250 c344859063 更新文件日志 2023-07-06 15:37:37 +08:00
xxq250 c85a15b794 更新文件日志 2023-07-06 15:26:23 +08:00
xxq250 1b68e7c9d5 fixed: user rank project owner changed remove rank 2023-07-04 16:08:40 +08:00
xxq250 2b03ccc67c Merge branch 'pre_trustie_server' into trustie_server 2023-06-30 17:11:56 +08:00
xxq250 f18f71db9c Merge branch 'standalone_develop' into pre_trustie_server 2023-06-30 17:10:32 +08:00
chenjing 921c285d0f fix bug 2023-06-26 11:15:44 +08:00
chenjing bc7008d8a4 fix bug 2023-06-26 11:15:06 +08:00
xxq250 61b0d4d302 Merge branch 'pre_trustie_server' into trustie_server 2023-06-21 16:33:51 +08:00
xxq250 f094c3a84c Merge branch 'pre_trustie_server' into trustie_server 2023-06-21 16:19:54 +08:00
xxq250 3b896fca3d fixed job中issue不存在处理 2023-06-19 15:45:14 +08:00
xxq250 0faf192b45 fixed job中issue不存在处理 2023-06-19 15:41:28 +08:00
xxq250 076120de8d fixed job中issue不存在 2023-06-19 15:39:45 +08:00
xxq250 63cc2528cd Update README.md 2023-06-15 14:47:00 +08:00
xxq250 e3df5a0f64 Update README.md 2023-06-15 14:45:32 +08:00
xxq250 6be6dd1bf1 fixed readme中图片链接问号处理2 2023-06-15 14:43:13 +08:00
xxq250 d0baa9073d fixed readme中图片链接问号处理 2023-06-15 14:38:31 +08:00
xxq250 f28d835e58 Update README.md 2023-06-15 14:35:34 +08:00
xxq250 f4a7903613 fixed readme中图片链接问号处理 2023-06-15 14:31:00 +08:00
xxq250 a74b6a1ca4 Update README.md 2023-06-15 13:58:23 +08:00
xxq250 6e42b84040 图片链接 2023-06-15 13:54:49 +08:00
xxq250 a46de1b658 fixed 发送通知报错 2023-06-12 18:10:15 +08:00
xxq250 89c64e276e site css 2023-06-09 17:45:54 +08:00
xxq250 46252c2feb site css 2023-06-09 15:54:08 +08:00
xxq250 eb8266db90 site css 2023-06-09 15:52:04 +08:00
xxq250 31923c9086 competition 配置 2023-06-09 15:49:26 +08:00
xxq250 5135f60e50 merge pre 2023-06-09 15:38:41 +08:00
xxqfamous b114ee9701 fixed 最后提交增加参数stat加整 2023-06-06 17:55:04 +08:00
xxqfamous d6aa23b484 fixed 注册错误记录日志 2023-06-05 16:21:05 +08:00
xxqfamous 1b93da7f67 Merge branch 'standalone_develop' into trustie_server 2023-06-05 16:05:28 +08:00
xxqfamous cddb204d28 Merge branch 'pre_trustie_server' into trustie_server 2023-06-05 15:01:36 +08:00
xxqfamous da7e0a4143 Merge branch 'pre_trustie_server' into trustie_server 2023-05-30 18:34:00 +08:00
xxqfamous 7116f38061 fixed 修改用户参数错误 log 2023-05-30 14:00:36 +08:00
xxqfamous a7968ed95c fixed 修改用户参数错误 log 2023-05-30 13:55:48 +08:00
xxqfamous 2998fce62e fixed 修改用户参数错误 log 2023-05-30 13:51:29 +08:00
xxqfamous b45e9fb224 fixed 修改用户参数错误 log 2023-05-30 12:40:30 +08:00
xxqfamous fa57d3a9ba fixed 修改用户参数错误 log 2023-05-30 12:38:36 +08:00
xxqfamous 9c9c376224 fixed 修改用户参数错误 log 2023-05-30 12:36:43 +08:00
xxqfamous cc6228bcfe fixed 修改用户参数错误 2023-05-30 12:34:49 +08:00
xxqfamous 818781f6e0 fixed 修改用户参数错误 2023-05-30 12:34:09 +08:00
xxqfamous ba134ad0fa fixed 修改用户 log 2023-05-30 12:27:16 +08:00
xxqfamous 1327fcb4f4 fixed 修改用户 log 2023-05-30 12:25:34 +08:00
xxqfamous 166952560e fixed 修改用户 log 2023-05-30 11:43:59 +08:00
xxqfamous 7fdd39291b fixed 修改用户 2023-05-30 11:41:36 +08:00
xxqfamous d78408d799 Merge branch 'pre_trustie_server' into trustie_server 2023-05-30 11:38:33 +08:00
xxqfamous f289b8046f 竞赛用户关联优化 2023-05-30 11:16:54 +08:00
xxqfamous 41a9773c90 注册失败日志 2023-05-29 15:15:52 +08:00
xxqfamous d14fca3792 fixed 项目查询增加id参数 2023-05-24 14:35:26 +08:00
xxq250 b66293b044 Add Dockerfile-ruby 2023-05-24 10:12:10 +08:00
xxqfamous 9449bd6eb9 fixed 补偿users.gitea_uid不存在的用户,error message 2023-05-22 14:20:47 +08:00
xxqfamous 9f4d9aa5db fixed 补偿users.gitea_uid不存在的用户,error message 2023-05-22 14:17:24 +08:00
xxqfamous a336e91dd8 fixed 补偿users.gitea_uid不存在的用户 2023-05-22 14:02:42 +08:00
xxqfamous 65a00efd32 fixed 补偿users.gitea_uid不存在的用户 2023-05-22 14:01:14 +08:00
xxqfamous 9859c30f9d fixed 补偿users.gitea_uid不存在的用户 2023-05-22 11:35:26 +08:00
xxqfamous 9232f3ca9b fixed 补偿users.gitea_uid不存在的用户 2023-05-22 11:33:00 +08:00
xxqfamous 24ac425c21 fixed 修改user login唯一索引 2023-05-22 11:22:12 +08:00
xxqfamous e16452ac90 fixed 修改user login唯一索引 2023-05-20 12:28:35 +08:00
xxqfamous 8cc565ca0c fixed 修改user login唯一索引 2023-05-20 12:27:34 +08:00
xxqfamous 1b2a4e0b94 fixed 清除user未使用关联表 2023-05-20 11:35:20 +08:00
xxqfamous 99f7fe6102 Merge branch 'pre_trustie_server' into trustie_server 2023-05-19 15:01:10 +08:00
xxq250 681a485192 fixed 审批utf8mb4 2023-05-18 09:50:56 +08:00
xxq250 58354dc944 Merge branch 'pre_trustie_server' into trustie_server 2023-05-12 17:06:36 +08:00
xxq250 e815710c57 Update Dockerfile 2023-05-11 10:27:42 +08:00
xxq250 dbcac032dd Update Dockerfile 2023-05-11 10:23:36 +08:00
xxq250 d1c8f1aead 整理gitea docker配置文件 2023-05-10 18:38:35 +08:00
xxq250 bf1ffadf41 整理docker配置文件 2023-05-10 17:41:15 +08:00
xxq250 f07ae49246 整理配置文件 2023-05-10 17:31:57 +08:00
xxq250 5eee13ea87 Merge pull request '20230220版本' (#332) from master into develop 2023-05-10 14:48:41 +08:00
39 changed files with 95898 additions and 76 deletions

View File

@ -1,13 +1,17 @@
FROM ubuntu:20.04
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt install -y tzdata
# basics
RUN apt-get install -y libssl-dev curl libmysqlclient-dev imagemagick nodejs mysql-server redis-server tzdata
RUN apt-get install -y libssl-dev curl libmysqlclient-dev imagemagick nodejs mysql-server redis-server
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# confirm openssl version
RUN openssl version
RUN which openssl
# install RVM, Ruby, and Bundler
RUN \curl -L https://get.rvm.io | bash -s stable
# rvm environment variable
RUN /bin/bash -l -c "source /etc/profile.d/rvm.sh"
RUN /bin/bash -l -c "rvm requirements"
# replace ruby mirror url, accelerate install ruby
RUN sed -i 's/rvm_remote_server_url2/#rvm_remote_server_url2/g' /usr/local/rvm/config/db
@ -37,11 +41,19 @@ RUN /bin/bash -l -c 'gem install puma -v 5.6.5'
RUN rm -rf Gemfile.lock
RUN cp config/configuration.yml.example config/configuration.yml
RUN cp config/database.yml.example config/database.yml
RUN cp config/database-docker.yml.example config/database.yml
RUN touch config/redis.yml
RUN touch config/elasticsearch.yml
RUN /bin/bash -l -c 'bundle install'
#EXPOSE 4000
#RUN /bin/bash -l -c 'RAILS_ENV=production puma'
RUN redis-server &
RUN /bin/bash -l -c 'bundle exec rake sync_table_structure:import_csv'
RUN /bin/bash -l -c 'rails db:migrate RAILS_ENV=development'
RUN /bin/bash -l -c 'bundle exec sidekiq -C config/sidekiq.yml -e production -d'
EXPOSE 4000
RUN /bin/bash -l -c 'RAILS_ENV=production puma -C config/puma.rb'

19
Dockerfile-ruby Normal file
View File

@ -0,0 +1,19 @@
FROM ubuntu:20.04
RUN apt-get update
# basics
RUN apt-get install -y libssl-dev curl libmysqlclient-dev imagemagick nodejs mysql-server redis-server tzdata
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# confirm openssl version
RUN openssl version
RUN which openssl
# install RVM, Ruby, and Bundler
RUN \curl -L https://get.rvm.io | bash -s stable
RUN /bin/bash -l -c "rvm requirements"
# replace ruby mirror url, accelerate install ruby
RUN sed -i 's/rvm_remote_server_url2/#rvm_remote_server_url2/g' /usr/local/rvm/config/db
RUN sed -i 's/cache.ruby-lang.org/cache.ruby-china.com/g' /usr/local/rvm/config/db
# install ruby
RUN /bin/bash -l -c "rvm install 2.4.5"
# confirm ruby version
RUN /bin/bash -l -c "rvm list"
RUN /bin/bash -l -c "ruby -v"

View File

@ -253,7 +253,7 @@ GEM
pry-rails (0.3.9)
pry (>= 0.10.4)
public_suffix (4.0.3)
puma (5.6.8)
puma (5.6.5)
nio4r (~> 2.0)
raabro (1.4.0)
rack (2.0.9)

View File

@ -1,9 +1,10 @@
# GitLink - CCF开源创新服务平台
# GitLink - CCF开源创新服务平台
GitLink确实开源是中国计算机学会CCF官方指定的开源创新服务平台旨在以“为开源创新服务”为使命以“成为开源创新的汇聚地”为愿景秉承“创新、开放、协作、共享”的价值观致力于为大规模开源开放协同创新助力赋能打造创新成果孵化和新工科人才培养的开源创新生态
<center>
<img src="https://code.gitlink.org.cn/young/forgeplus/raw/branch/master/docs/figs/gitlink.png?raw=true" width=80% /></center>
<img src="docs/figs/gitlink.png" width=80% /></center>
## 特色功能
@ -174,31 +175,31 @@ http://localhost:3000/
- 项目列表
<center>
<img src="https://code.gitlink.org.cn/young/forgeplus/raw/branch/master/docs/figs/project_list.png?raw=true" width=50% />
<img src="docs/figs/project_list.png" width=80% />
</center>
- 代码仓库
<center>
<img src="https://code.gitlink.org.cn/young/forgeplus/raw/branch/master/docs/figs/repo.png?raw=true" width=50% />
<img src="docs/figs/repo.png" width=80% />
</center>
- 任务管理
<center>
<img src="https://code.gitlink.org.cn/young/forgeplus/raw/branch/master/docs/figs/issues.png?raw=true" width=50% />
<img src="docs/figs/issues.png" width=80% />
</center>
- 合并请求
<center>
<img src="https://code.gitlink.org.cn/young/forgeplus/raw/branch/master/docs/figs/PR.png?raw=true" width=50% />
<img src="docs/figs/PR.png" width=80% />
</center>
- 引擎配置
<center>
<img src="https://code.gitlink.org.cn/young/forgeplus/raw/branch/master/docs/figs/engine.png?raw=true" width=50% />
<img src="docs/figs/engine.png" width=80% />
</center>

View File

@ -1,9 +1,13 @@
class Admins::DashboardsController < Admins::BaseController
def index
# 查询优化
week_greater_id = CommitLog.where(created_at: current_week).limit(1)[0]&.id
#月份统计还需要优化
month_greater_id = CommitLog.where(created_at: current_month).limit(1)[0]&.id
# 用户活跃数
day_user_ids = CommitLog.where(created_at: today).pluck(:user_id).uniq
weekly_user_ids = CommitLog.where(created_at: current_week).pluck(:user_id).uniq
month_user_ids = CommitLog.where(created_at: current_month).pluck(:user_id).uniq
weekly_user_ids = CommitLog.where(created_at: current_week).where("id>= ?", week_greater_id).distinct.pluck(:user_id)
month_user_ids = CommitLog.where(created_at: current_month).where("id>= ?", month_greater_id).distinct.pluck(:user_id)
@active_user_count = User.where(last_login_on: today).or(User.where(id: day_user_ids)).count
@weekly_active_user_count = User.where(last_login_on: current_week).or(User.where(id: weekly_user_ids)).count
@month_active_user_count = User.where(last_login_on: current_month).or(User.where(id: month_user_ids)).count
@ -18,8 +22,8 @@ class Admins::DashboardsController < Admins::BaseController
# 活跃项目数
day_project_ids = (CommitLog.where(created_at: today).pluck(:project_id).uniq + Issue.where(created_on: today).pluck(:project_id).uniq).uniq
weekly_project_ids = (CommitLog.where(created_at: current_week).pluck(:project_id).uniq + Issue.where(created_on: current_week).pluck(:project_id).uniq).uniq
month_project_ids = (CommitLog.where(created_at: current_month).pluck(:project_id).uniq + Issue.where(created_on: current_month).pluck(:project_id).uniq).uniq
weekly_project_ids = (CommitLog.where(created_at: current_week).where("id>= ?", week_greater_id).distinct.pluck(:project_id) + Issue.where(created_on: current_week).pluck(:project_id).uniq).uniq
month_project_ids = (CommitLog.where(created_at: current_month).where("id>= ?", month_greater_id).distinct.pluck(:project_id) + Issue.where(created_on: current_month).pluck(:project_id).uniq).uniq
@day_active_project_count = Project.where(updated_on: today).or(Project.where(id: day_project_ids)).count
@weekly_active_project_count = Rails.cache.fetch("dashboardscontroller:weekly_active_project_count", expires_in: 10.minutes) do
Project.where(updated_on: current_week).or(Project.where(id: weekly_project_ids)).count

View File

@ -37,19 +37,22 @@ class Admins::ProjectsRankController < Admins::BaseController
def export_excel(data)
book = Spreadsheet::Workbook.new
sheet = book.create_worksheet :name => "项目活跃度排行"
sheet.row(0).concat %w(排名 项目全称 项目地址 得分 访问数 关注数 点赞数 fork数 疑修数 合并请求数 提交数)
sheet.row(0).concat %w(排名 项目全称 项目地址 项目分类 首次创建时间 外部迁移/独立创建 得分 访问数 关注数 点赞数 fork数 疑修数 合并请求数 提交数)
data.each_with_index do |d, index|
sheet[index+1,0] = index+1
sheet[index+1,1] = "#{d&.project&.owner&.real_name}/#{d&.project&.name}"
sheet[index+1,2] = "#{Rails.application.config_for(:configuration)['platform_url']}/#{d&.project&.owner&.login}/#{d&.project&.identifier}"
sheet[index+1,3] = d.score
sheet[index+1,4] = d.visits
sheet[index+1,5] = d.watchers
sheet[index+1,6] = d.praises
sheet[index+1,7] = d.forks
sheet[index+1,8] = d.issues
sheet[index+1,9] = d.pullrequests
sheet[index+1,10] = d.commits
sheet[index+1,3] = d&.project&.project_category&.name
sheet[index+1,4] = d&.project&.created_on.present? ? d&.project&.created_on.strftime("%Y-%m-%d %H:%M:%S") : ""
sheet[index+1,5] = d&.project&.common? ? "独立创建" : "外部迁移"
sheet[index+1,6] = d.score
sheet[index+1,7] = d.visits
sheet[index+1,8] = d.watchers
sheet[index+1,9] = d.praises
sheet[index+1,10] = d.forks
sheet[index+1,11] = d.issues
sheet[index+1,12] = d.pullrequests
sheet[index+1,13] = d.commits
end
book.write "#{Rails.root}/public/项目活跃度排行.xls"
end

View File

@ -1,6 +1,6 @@
class Api::V1::IssuesController < Api::V1::BaseController
before_action :require_login, except: [:index, :show, :show_by_id]
before_action :require_public_and_member_above, only: [:index, :show, :show_by_id, :create, :update, :destroy]
before_action :require_public_and_member_above, only: [:index, :show, :show_by_id, :create, :update, :destroy]
before_action :require_operate_above, only: [:batch_update, :batch_destroy]
def index
@ -24,7 +24,7 @@ class Api::V1::IssuesController < Api::V1::BaseController
before_action :check_issue_operate_permission, only: [:update, :destroy]
before_action :load_issue_by_id, only: [:show_by_id]
def show_by_id
def show_by_id
@issue.associate_attachment_container
@user_permission = current_user.present? && current_user.logged? && (@project.member?(current_user) || current_user.admin? || @issue.user == current_user)
end
@ -76,9 +76,9 @@ class Api::V1::IssuesController < Api::V1::BaseController
end
end
def load_issue_by_id
def load_issue_by_id
@issue = Issue.find_by_id(params[:index])
if @issue.blank?
if @issue.blank?
render_not_found("疑修不存在!")
end
end

View File

@ -19,9 +19,10 @@ class CommitLogsController < ApplicationController
params[:commits].each do |commit|
commit_id = commit[:id]
message = commit[:message]
commit_date = Time.parse(commit[:timestamp]) || Time.now
commit_log = CommitLog.create(user: user, project: project, repository_id: repository_id,
name: repository_name, full_name: repository_full_name,
ref: ref, commit_id: commit_id, message: message)
ref: ref, commit_id: commit_id, message: message, created_at: commit_date, updated_at: commit_date)
commit_log.project_trends.create(user_id: user.id, project_id: project&.id, action_type: "create") if user.id !=2
# 统计数据新增
CacheAsyncSetJob.perform_later("project_common_service", {commits: 1}, project.id)

View File

@ -21,6 +21,7 @@ class MainController < ApplicationController
end
def index
Rails.logger.info("request.referer============#{request.referer},#{params[:path]}") if request.referer.to_s.include?("educoder.net")
domain_session = params[:_educoder_session]
if domain_session
uid_logger("main start domain_session is #{domain_session}")

View File

@ -45,6 +45,9 @@ class Oauth::EducoderController < Oauth::BaseController
result = EducoderOauth::Service.access_token(code)
result = EducoderOauth::Service.user_info(result[:access_token])
Rails.logger.info("OAuth2-session-unionid====111=======#{result['login']}")
tip_exception("调用头歌接口错误") if result['login'].blank?
# 存在该用户
open_user = OpenUsers::Educoder.find_by(uid: result['login'])
if open_user.present? && open_user.user.present?
@ -68,7 +71,7 @@ class Oauth::EducoderController < Oauth::BaseController
OpenUsers::Educoder.create!(user: current_user, uid: result['login'], extra: result)
end
end
Rails.logger.info("[OAuth2] session[:unionid] -> #{session[:unionid]}")
Rails.logger.info("OAuth2-session-unionid=========== #{session[:unionid]}")
redirect_to "/bindlogin/educoder"
# redirect_to root_path(new_user: new_user)

View File

@ -1,4 +1,4 @@
class Oauth2Controller < ActionController::Base
class Oauth2Controller < ApplicationController
layout 'doorkeeper/application'
include LoginHelper
@ -6,6 +6,9 @@ class Oauth2Controller < ActionController::Base
client_id = params[:call_url].split("client_id=")[1].split("&redirect_uri")[0]
@call_url = request.fullpath.split('call_url=').last
@app = Doorkeeper::Application.find_by(uid: client_id)
if User.current.logged?
redirect_to @call_url + "&auth=" + User.current.login
end
end
def create

View File

@ -253,6 +253,7 @@ class PullRequestsController < ApplicationController
normal_status(-1, result.message)
end
rescue => e
logger_error(e)
normal_status(-1, e.message)
raise ActiveRecord::Rollback
end

View File

@ -168,7 +168,6 @@ class VersionReleasesController < ApplicationController
attachment.container = target
attachment.author_id = current_user.id
attachment.description = ""
attachment.uuid = SecureRandom.uuid
attachment.save
end
end

View File

@ -9,7 +9,7 @@ module Register
login_exist = Owner.exists?(login: login) || ReversedKeyword.check_exists?(login)
if user.present?
raise LoginError, '登录名已被使用' if login_exist && login != user&.login
raise LoginError, '登录名已被他人使用' if login_exist && login != user&.login
else
raise LoginError, '登录名已被使用' if login_exist
end

View File

@ -8,7 +8,7 @@ module Register
def check!
user = User.find_by(id: user_id)
Rails.logger.info "Register::RemoteForm params: id: #{user&.id}; username: #{username}; email: #{email}; password: #{password}; platform: #{platform}"
Rails.logger.info "Register::RemoteForm params: id: #{user_id}; username: #{username}; email: #{email}; password: #{password}; platform: #{platform}"
check_login(username, user)
check_mail(email,user)
check_password(password)

View File

@ -145,17 +145,17 @@ module ProjectsHelper
url = EduSetting.get("ai_shang_url") || "https://shang.gitlink.org.cn"
case project.identifier.to_s.downcase
when nil then ""
when 'rails' then "#{url}/v1/rails/entropy"
when 'jittor' then "#{url}/v1/jittor/entropy"
when 'paddle' then "#{url}/v1/Paddle/entropy"
when 'vue' then "#{url}/v1/vue/entropy"
when 'bootstrap' then "#{url}/v1/bootstrap/entropy"
when 'tensorflow' then "#{url}/v1/tensorflow/entropy"
when 'kernel' then "#{url}/v1/openeuler/entropy"
when 'opengauss-server' then "#{url}/v1/opengauss/entropy"
when 'mindspore' then "#{url}/v1/mindspore/entropy"
when 'openharmony' then "#{url}/api/openharmony/entropy"
when 'openeuler' then "#{url}/api/openeuler/entropy"
# when 'rails' then "#{url}/v1/rails/entropy"
# when 'jittor' then "#{url}/v1/jittor/entropy"
# when 'paddle' then "#{url}/v1/Paddle/entropy"
# when 'vue' then "#{url}/v1/vue/entropy"
# when 'bootstrap' then "#{url}/v1/bootstrap/entropy"
# when 'tensorflow' then "#{url}/v1/tensorflow/entropy"
# when 'kernel' then "#{url}/v1/openeuler/entropy"
# when 'opengauss-server' then "#{url}/v1/opengauss/entropy"
# when 'mindspore' then "#{url}/v1/mindspore/entropy"
when 'openharmony-kernel' then "#{url}/api/openharmony/entropy"
when 'kernel' then "#{url}/api/openeuler/entropy"
when 'xiuos' then "#{url}/api/xiuos/entropy"
else ''
end

View File

@ -7,7 +7,7 @@ module EducoderOauth::Service
begin
Rails.logger.info("[EducoderOauth] [#{method.to_s.upcase}] #{url} || #{params}")
client = Faraday.new(url: EducoderOauth.base_url)
client = Faraday.new(url: EducoderOauth.base_url, headers: {'X-EDU-Timestamp' => "#{Time.now.to_i}"})
response = client.public_send(method, url, params)
result = JSON.parse(response.body)

View File

@ -26,7 +26,7 @@ class IdentityVerification < ApplicationRecord
after_create do
Attachment.where(uuid:[card_front,card_back,hold_card_front,hold_card_back]).update_all(is_public:0)
end
after_save do
if state == "已通过"
user.update(id_card_verify: true, website_permission: true)

View File

@ -356,7 +356,7 @@ class Issue < ApplicationRecord
end
end
def to_builder
def to_builder
Jbuilder.new do |issue|
issue.(self, :id, :project_issues_index, :subject, :description, :branch_name, :start_date, :due_date)
issue.created_at self.created_on.strftime('%Y-%m-%d %H:%M')

View File

@ -46,7 +46,7 @@ class Api::V1::Issues::ListService < ApplicationService
end
def call
raise Error, errors.full_messages.join(', ') unless valid?
raise Error, errors.full_messages.join(', ') unless valid?
# begin
issue_query_data

View File

@ -39,14 +39,14 @@ class InfoRiskControlService < ApplicationService
def remote_ip_risk_control
result = Rails.cache.read("InfoRiskControlService-RemoteIp-#{remote_ip}")
if result.present?
if result.to_i > 20
if result.to_i > 30
@status = 0
@message = "暂时无法请求,请稍后再试"
else
Rails.cache.write("InfoRiskControlService-RemoteIp-#{remote_ip}", result.to_i + 1)
end
else
Rails.cache.write("InfoRiskControlService-RemoteIp-#{remote_ip}", 1, expires_in: 1.day)
Rails.cache.write("InfoRiskControlService-RemoteIp-#{remote_ip}", 1, expires_in: 2.hours)
end
end

View File

@ -15,7 +15,7 @@
</tr>
</thead>
<tbody>
<% if @current_week_statistic.size ==1 && @pre_week_statistic.present? %>
<% if @pre_week_statistic.present? %>
<tr class="">
<td>上周合计</td>
<td><%= @pre_week_statistic.map(&:pv).sum %></td>

View File

@ -3,11 +3,11 @@
<tr>
<th width="5%">序号</th>
<th width="15%">名称</th>
<th width="30%">路由</th>
<th width="20%">标识</th>
<th width="35%">路由</th>
<th width="15%">标识</th>
<th width="10%">类型</th>
<th width="20%"><%= sort_tag('创建时间', name: 'created_at', path: admins_sites_path) %></th>
<th width="25%">操作</th>
<th width="15%"><%= sort_tag('创建时间', name: 'created_at', path: admins_sites_path) %></th>
<th width="15%">操作</th>
</tr>
</thead>
<tbody>
@ -20,7 +20,7 @@
</td>
<td><%= site.url %></td>
<td><%= overflow_hidden_span display_text(site.key), width: 150 %></td>
<td><%= overflow_hidden_span display_text(site.key), width: 170 %></td>
<td><%= site.site_type.humanize %></td>
<td><%= site.created_at&.strftime('%Y-%m-%d %H:%M') %></td>
<td class="action-container">

View File

@ -6,7 +6,7 @@
<%= form_tag(admins_sites_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
<div class="form-group mr-2">
<label for="status">类型:</label>
<% type_options = [['全部', ''], ['Add', Site.site_types[:add]], ['Personal', Site.site_types[:personal]], ['Common', Site.site_types[:common]]] %>
<% type_options = [['全部', ''], ['Add', Site.site_types[:add]], ['Personal', Site.site_types[:personal]], ['Common', Site.site_types[:common]], ['Competition', Site.site_types[:competition]]] %>
<%= select_tag(:site_type, options_for_select(type_options), class: 'form-control') %>
</div>

View File

@ -1,4 +1,4 @@
json.id attachment.uuid
json.id attachment.uuid.blank? ? attachment.id : attachment.uuid
json.title attachment.title
json.description attachment.description
json.filesize number_to_human_size(attachment.filesize)

View File

@ -16,7 +16,7 @@ json.phone @user.phone
json.profile_completed @user.profile_is_completed?
json.professional_certification @user.professional_certification
json.devops_step @user.devops_step
json.ci_certification @user.ci_certification?
json.ci_certification false
json.email @user.mail
json.province @user.province
json.city @user.city

View File

@ -0,0 +1,28 @@
default: &default
adapter: mysql2
host: <%= ENV.fetch("MYSQL_HOST") { '127.0.0.1' } %>
encoding: utf8mb4
reconnect: true
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
gitea_server:
adapter: mysql2
database: <%= ENV.fetch("MYSQL_DB") { 'gitea' } %>
host: 127.0.0.1
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
encoding: utf8
development:
<<: *default
host: 127.0.0.1
database: forge_development
test:
<<: *default
database: forge_test
production:
<<: *default
database: <%= ENV.fetch("MYSQL_DB") { 'forge_production' } %>

View File

@ -0,0 +1,5 @@
class AddIndexCreatedCommitLogs < ActiveRecord::Migration[5.2]
def change
add_index :commit_logs, :created_at
end
end

View File

@ -16,9 +16,9 @@
## Steps
### 1. 克隆稳定版本仓库
### 1. 克隆本地版本仓库(去掉了邮箱和手机号验证码)
```
git clone -b standalone https://git.trustie.net/jasder/forgeplus.git
git clone -b dev_local_v1 https://gitlink.org.cn/Gitlink/forgeplus.git
```
### 2. 安装依赖包
@ -54,7 +54,7 @@ default: &default
### 4. 配置gitea服务(可选)
**如需要部署自己的gitea平台请参考gitea官方平台https://docs.gitea.io/zh-cn/install-from-binary/**
**因目前gitea平台api受限暂时推荐从forge平台获取gitea部署文件进行部署https://forgeplus.trustie.net/projects/Trustie/gitea-binary**
**因目前gitea平台api受限暂时推荐从forge平台获取gitea部署文件进行部署https://gitlink.org.cn/Gitlink/gitea-binary**
#### 配置gitea服务步骤
1. 部署gitea服务并注册root账户
@ -93,7 +93,7 @@ rails db:migrate RAILS_ENV=development
### 9. clone前端代码
**将前端代码克隆到public/react目录下目录结构应该是: public/react/build**
```bash
git clone -b standalone https://git.trustie.net/jasder/build.git
git clone -b dev_local_v1 https://gitlink.org.cn/Gitlink/build.git
```
### 10. 启动redis(此处已mac系统为例)

16
gitea/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM golang:1.20.4
RUN yum update -y && \
yum install -y wget gcc make openssl-devel bzip2-devel libffi-devel zlib-devel git
#ENV GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa'
RUN yum install -y autoconf gettext && \
wget http://github.com/git/git/archive/v2.32.0.tar.gz && \
tar -xvf v2.32.0.tar.gz && \
rm -f v2.32.0.tar.gz && \
cd git-* && \
make configure && \
./configure --prefix=/usr && \
make -j16 && \
make install

121
gitea/app.ini Normal file
View File

@ -0,0 +1,121 @@
APP_NAME = Trustie: Git with trustie
RUN_USER = git
RUN_MODE = prod
[oauth2]
JWT_SECRET = pyD-ZA6zwykBhVCWdF5FsdRGDtM6kg16JLhcCu8uLPM
[security]
INTERNAL_TOKEN = eyDDbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1NzQyMzU3OTN9.w7RDQaNanZHdC2XIrr9kAntPIjhfkXXOiBnNTbEdqQ8
INSTALL_LOCK = true
SECRET_KEY = K4DDaucPzKQnTf7WQxKFIoFNtIlsWVacoN5Ss3VDypQBUes7Ncy96UU735sfGOar
PASSWORD_COMPLEXITY = off
REVERSE_PROXY_LIMIT = 1
REVERSE_PROXY_TRUSTED_PROXIES = *
[database]
DB_TYPE = mysql
HOST = 127.0.0.1:3306
NAME = gitea
USER = root
PASSWD = `123456`
CHARSET = utf8
SSL_MODE = disable
PATH = /var/lib/gitea/data/gitea.db
CONN_MAX_LIFE_TIME=180
MAX_IDLE_CONNS=5
MAX_OPEN_CONNS=200
LOG_SQL =true
[repository]
ROOT = /data/gitea-repositories
DEFAULT_BRANCH = master
[lfs]
PATH = /data/gitea/data/lfs
[server]
SSH_DOMAIN = testgitea2.trustie.net
DOMAIN = testgitea2.trustie.net
ROOT_URL = https://testgitea2.trustie.net/
DISABLE_SSH = false
SSH_PORT = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /data/gitea/data/lfs
LFS_JWT_SECRET = n2kib4qdArULO57JW0jD2Ygm3z1ehzI8Y4zVfbxouyY
OFFLINE_MODE = false
ENABLE_PPROF = true
#REGISTER_EMAIL_CONFIRM = false
[webhook]
QUEUE_LENGTH = 1000
DELIVER_TIMEOUT = 5
SKIP_TLS_VERIFY = false
PAGING_NUM = 10
#PROXY_URL =
#PROXY_HOSTS =
[mailer]
ENABLED = false
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = ANCH = master
DISABLE_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = true
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.example.org
SHOW_REGISTRATION_BUTTON = false
[picture]
DISABLE_GRAVATAR = true
ENABLE_FEDERATED_AVATAR = false
[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true
[session]
PROVIDER = file
[log]
MODE = file
LEVEL = Trace
ROOT_PATH = /var/lib/gitea/log
REDIRECT_MACARON_LOG = true
[api]
DEFAULT_PAGING_NUM = 20
[git]
PATH =
DISABLE_DIFF_HIGHLIGHT = false
MAX_GIT_DIFF_LINES = 250
MAX_GIT_DIFF_LINE_CHARACTERS = 1200
MAX_GIT_DIFF_FILES = 25
GC_ARGS =
EnableAutoGitWireProtocol = true
; Operation timeout in seconds
[git.timeout]
DEFAULT = 1800
MIGRATE = 21600
MIRROR = 1800
CLONE = 1800
PULL = 1800
GC = 60
[migrations]
ALLOW_LOCALNETWORKS = true
[cron.update_mirrors]
SCHEDULE = @every 24h
[cron.delete_repo_archives]
ENABLED = true
RUN_AT_START = true
SCHEDULE = @every 72h

41
gitea/gitea.service Normal file
View File

@ -0,0 +1,41 @@
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
[Service]
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
# LimitNOFILE=524288:524288
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
# If using Unix socket: tells systemd to create the /run/gitea folder, which will contain the gitea.sock file
# (manually creating /run/gitea doesn't work, because it would not persist across reboots)
#RuntimeDirectory=gitea
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
# If you install Git to directory prefix other than default PATH (which happens
# for example if you install other versions of Git side-to-side with
# distribution version), uncomment below line and add that prefix to PATH
# Don't forget to place git-lfs binary on the PATH below if you want to enable
# Git LFS support
#Environment=PATH=/path/to/git/bin:/bin:/sbin:/usr/bin:/usr/sbin
# If you want to bind Gitea to a port below 1024, uncomment
# the two values below, or use socket activation to pass Gitea its ports as above
###
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#AmbientCapabilities=CAP_NET_BIND_SERVICE
###
# In some cases, when using CapabilityBoundingSet and AmbientCapabilities option, you may want to
# set the following value to false to allow capabilities to be applied on gitea process. The following
# value if set to true sandboxes gitea service and prevent any processes from running with privileges
# in the host user namespace.
###
#PrivateUsers=false
###
[Install]
WantedBy=multi-user.target

View File

@ -1,16 +1,19 @@
namespace :commit_log_to_db do
desc "commit_log_to_db"
task done: :environment do
puts "project_id=================#{ENV['project_id']}"
return if ENV['project_id'].blank?
projects = Project.where(id: ENV['project_id'])
if ENV['project_name'] == "jittor"
projects = Project.where(id: [1403791,1404837,1404087,1403854,1403883,1403886,1403894,1404027,1404187,1404234,1404291,1404522,1404238,1404632,1404003,1403975,1404285,1404525,1404017,1403843,1403867,1403874,1403878,1403881,1403887,1403898,1403916,1403937,1403954,1403961,1403963,1403965,1403967,1403972,1403974,1403976,1403977,1403978,1404007,1404012,1404020,1404023,1404032,1404042,1404058,1404065,1404069,1404071,1404072,1404078,1404094,1404104,1404143,1404146,1404167,1404173,1404174,1404175,1404210,1404216,1404226,1404229,1404240,1404242,1404244,1404247,1404248,1404250,1404261,1404272,1404276,1404290,1404327,1404333,1404360,1404450,1404460,1404466,1404485,1404489,1404491,1404496,1404500,1404502,1404507,1404519,1404521,1404523,1404527,1404530,1404532,1404537,1404540,1404541,1404710,1404328,1404211,1404241,1404107,1403880,1404271,1404268,1404745,1404101,1404051,1404047,1404052,1406706,1403852,1403931,1404165,1404607,1404498,1404014,1404045,1404043,1403739,1403801,1403815,1403821,1403822,1403824,1403836,1403853,1403872,1403904,1403906,1403909,1403915,1403919,1403921,1403943,1403945,1403971,1403981,1404022,1404026,1404030,1404037,1404091,1404133,1404163,1404184,1404209,1404212,1404220,1404246,1404249,1404263,1404265,1404287,1404299,1404311,1404497,1404506,1404546,1404558,1404577,1404582,1404591,1404592,1404594,1404595,1404596,1404597,1404605,1404606,1404609,1404639,1404641,1404659,1404671,1404681,1404702,1404748,1404754,1404759,1404785,1404879,1404955,1405169,1405205,1405265,1405374,1407368,1407446,1407671,1407673,1404956,1404079,1404080,1403889,1404665,1404801,1404224,1404931,1404544,1403844,1404036,1404067,1404587,1404696,1404732,1404598,1405192,1404162,1403920,1403903,1405248,1403792,1403817,1403962,1403841,1404188,1404185,1405273,1404575,1404550,1404834,1405420,1404141,1405256,1404633,1405277,1404590,1404796,1405230,1405189,1404584,1405257,1405198,1403925,1404692,1405253,1403809,1405118,1404756,1404962,1404864,1405190,1405258,1405274,1404642,1404924,1404453,1404926,1404649,1404237,1404233,1404600,1404758,1405259,1404157,1404444,1404451,1404920,1404919,1404927,1403830,1404658,1405145,1405185,1403842,1403807,1403895,1404549,1404593,1404750,1404798,1404551,1404701,1405156,1404579,1404655,1405267,1404957,1404556,1404651,1404456,1405430,1403955,1404063,1404214,1403942,1404040,1404804,1428732,1403939,1404208,1404245,1405278,1404139,1403850,1404192,1404293,1404297,1404370,1404492,1404693,1404757,1404329,1404512,1404228,1404314,1404016,1404652,1405275,1404832,1404561,1404653,1404704,1404892,1404589,1404953,1405269,1404881,1404221,1404230,1404793,1403953,1404933,1404035,1404599,1403924,1404119,1404526,1404581,1404705,1404709,1404073,1403808,1403892,1404574,1403849,1404251,1404792,1403865,1404640,1404783,1404048,1406707,1404708,1404053,1404295,1404050,1404049,1404044,1404274,1404046,1404636])
end
if ENV['project_name'] == "mindspore"
projects = Project.where(identifier: ['MindSpore-first-experience', ' MindSpore-install', 'MindSpore-Application-practice', 'MindSpore-Model-Development', 'MindSpore-Data-preprocessing', 'Mindspore-Data-storage-use', 'MindSpore-Data-storage-kunpeng', 'MindSpore-LeNet-jzx3', 'MindSpore-competition'] )
end
# puts "project_id=================#{ENV['project_id']}"
# return if ENV['project_id'].blank?
# projects = Project.where(id: ENV['project_id'])
# if ENV['project_name'] == "jittor"
# projects = Project.where(id: [1403791,1404837,1404087,1403854,1403883,1403886,1403894,1404027,1404187,1404234,1404291,1404522,1404238,1404632,1404003,1403975,1404285,1404525,1404017,1403843,1403867,1403874,1403878,1403881,1403887,1403898,1403916,1403937,1403954,1403961,1403963,1403965,1403967,1403972,1403974,1403976,1403977,1403978,1404007,1404012,1404020,1404023,1404032,1404042,1404058,1404065,1404069,1404071,1404072,1404078,1404094,1404104,1404143,1404146,1404167,1404173,1404174,1404175,1404210,1404216,1404226,1404229,1404240,1404242,1404244,1404247,1404248,1404250,1404261,1404272,1404276,1404290,1404327,1404333,1404360,1404450,1404460,1404466,1404485,1404489,1404491,1404496,1404500,1404502,1404507,1404519,1404521,1404523,1404527,1404530,1404532,1404537,1404540,1404541,1404710,1404328,1404211,1404241,1404107,1403880,1404271,1404268,1404745,1404101,1404051,1404047,1404052,1406706,1403852,1403931,1404165,1404607,1404498,1404014,1404045,1404043,1403739,1403801,1403815,1403821,1403822,1403824,1403836,1403853,1403872,1403904,1403906,1403909,1403915,1403919,1403921,1403943,1403945,1403971,1403981,1404022,1404026,1404030,1404037,1404091,1404133,1404163,1404184,1404209,1404212,1404220,1404246,1404249,1404263,1404265,1404287,1404299,1404311,1404497,1404506,1404546,1404558,1404577,1404582,1404591,1404592,1404594,1404595,1404596,1404597,1404605,1404606,1404609,1404639,1404641,1404659,1404671,1404681,1404702,1404748,1404754,1404759,1404785,1404879,1404955,1405169,1405205,1405265,1405374,1407368,1407446,1407671,1407673,1404956,1404079,1404080,1403889,1404665,1404801,1404224,1404931,1404544,1403844,1404036,1404067,1404587,1404696,1404732,1404598,1405192,1404162,1403920,1403903,1405248,1403792,1403817,1403962,1403841,1404188,1404185,1405273,1404575,1404550,1404834,1405420,1404141,1405256,1404633,1405277,1404590,1404796,1405230,1405189,1404584,1405257,1405198,1403925,1404692,1405253,1403809,1405118,1404756,1404962,1404864,1405190,1405258,1405274,1404642,1404924,1404453,1404926,1404649,1404237,1404233,1404600,1404758,1405259,1404157,1404444,1404451,1404920,1404919,1404927,1403830,1404658,1405145,1405185,1403842,1403807,1403895,1404549,1404593,1404750,1404798,1404551,1404701,1405156,1404579,1404655,1405267,1404957,1404556,1404651,1404456,1405430,1403955,1404063,1404214,1403942,1404040,1404804,1428732,1403939,1404208,1404245,1405278,1404139,1403850,1404192,1404293,1404297,1404370,1404492,1404693,1404757,1404329,1404512,1404228,1404314,1404016,1404652,1405275,1404832,1404561,1404653,1404704,1404892,1404589,1404953,1405269,1404881,1404221,1404230,1404793,1403953,1404933,1404035,1404599,1403924,1404119,1404526,1404581,1404705,1404709,1404073,1403808,1403892,1404574,1403849,1404251,1404792,1403865,1404640,1404783,1404048,1406707,1404708,1404053,1404295,1404050,1404049,1404044,1404274,1404046,1404636])
# end
# if ENV['project_name'] == "mindspore"
# projects = Project.where(identifier: ['MindSpore-first-experience', ' MindSpore-install', 'MindSpore-Application-practice', 'MindSpore-Model-Development', 'MindSpore-Data-preprocessing', 'Mindspore-Data-storage-use', 'MindSpore-Data-storage-kunpeng', 'MindSpore-LeNet-jzx3', 'MindSpore-competition'] )
# end
# projects = Project.where(id: [5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950])
projects = Project.where("id < 6200").where("id not in(5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950)").where("project_type !=2")
projects.each_with_index do |project, index|
next if project.owner.nil?
result = Gitea::Repository::Commits::ListService.call(project.owner.login,project.identifier,sha: "", page: 1, limit: 200, token: project.owner.gitea_token)
next if result.blank? || result[:total_count].blank?
total_count = result[:total_count]

View File

@ -0,0 +1,44 @@
namespace :copy_attachment_files do
desc "copy_attachment_files to out path"
task done: :environment do
cp_path = ENV['path'] || "/home/pdl/cp_files"
container_type = ENV['_type']
next if container_type.blank?
Dir.mkdir(cp_path) unless Dir.exist?(cp_path)
attachments = Attachment.where(container_type: container_type)
attachments.each do |file|
file_path = File.join(file.disk_directory.to_s, file.disk_filename.to_s)
next unless File.exist?("#{Rails.root.to_s}/files/#{file_path}")
dir_path_year = "#{cp_path}/#{file.disk_directory.to_s.split("/")[0]}"
Dir.mkdir(dir_path_year) unless Dir.exist?(dir_path_year)
dir_path = "#{cp_path}/#{file.disk_directory}"
Dir.mkdir(dir_path) unless Dir.exist?(dir_path)
puts "cp #{Rails.root.to_s + File.join("/files/", file_path)} #{dir_path}"
system("cp #{Rails.root.to_s + File.join("/files/", file_path)} #{dir_path}")
end
end
task memo: :environment do
cp_path = ENV['path'] || "/home/pdl/cp_files"
memos = Memo.where("content like '%/attachments/send_file/%'")
att_ids = []
memos.each do |memo|
# 附件的格式为(/api/attachments/ + 附件id的形式提取出id进行附件属性关联做附件访问权限控制
att_ids += memo.content.to_s.scan(/\(\/attachments\/send_file\/.+\)/).map{|s|s.match(/\d+/)[0]}
att_ids += memo.content.to_s.scan(/\/attachments\/send_file\/.+\"/).map{|s|s.match(/\d+/)[0]}
att_ids += memo.content.to_s.scan(/\/attachments\/send_file\/\d+/).map{|s|s.match(/\d+/)[0]}
end
if att_ids.present?
attachments = Attachment.where(id: att_ids)
attachments.each do |file|
file_path = File.join(file.disk_directory, file.disk_filename)
dir_path_year = "#{cp_path}/#{file.disk_directory.to_s.split("/")[0]}"
Dir.mkdir(dir_path_year) unless Dir.exist?(dir_path_year)
dir_path = "#{cp_path}/#{file.disk_directory}"
Dir.mkdir(dir_path) unless Dir.exist?(dir_path)
puts "cp #{Rails.root.to_s + File.join("/files/", file_path)} #{dir_path}"
system("cp #{Rails.root.to_s + File.join("/files/", file_path)} #{dir_path}")
end
end
end
end

View File

@ -4,22 +4,37 @@ namespace :repair_gitea_user do
users = User.find_by_sql("SELECT * FROM `users` WHERE id !=2 AND type='User' AND NOT EXISTS (SELECT * FROM forgegitea.`user` WHERE forgegitea.`user`.id=users.gitea_uid)")
puts "total users count:#{users.count}"
success_count = 0
update_count = 0
users.each do |user|
begin
interactor = Gitea::RegisterInteractor.call({ username: user.login, email: user.mail, password: "abc12345678" })
if interactor.success?
gitea_user = interactor.result
result = Gitea::User::GenerateTokenService.call(user.login, password)
result = Gitea::User::GenerateTokenService.call(user.login, "abc12345678" )
user.gitea_token = result['sha1']
user.gitea_uid = gitea_user[:body]['id']
user.is_sync_pwd = false
user.save!
success_count = success_count + 1
else
if interactor.result[:message].present? && interactor.result[:message].to_s.include?("user already exists")
uid = ActiveRecord::Base.connection.query_value("SELECT id FROM forgegitea.`user` WHERE forgegitea.`user`.name='#{user.login}' and forgegitea.`user`.email='#{user.mail}'")
if uid.present?
result = Gitea::User::GenerateTokenService.call(user.login, "abc12345678" )
if result['sha1'].present?
user.gitea_token = result['sha1']
user.gitea_uid = uid
user.is_sync_pwd = false
user.save!
update_count = update_count + 1
end
end
end
end
rescue Exception => e
puts "repair gitea user: #{user.id}:#{user.login}:, error:#{e}"
end
end
puts "repair gitea user success total: #{success_count}"
puts "repair gitea user success total: #{success_count},update_count:#{update_count}"
end
end

View File

@ -0,0 +1 @@
google-site-verification: google88c6634c68bf2d54.html

38783
public/sitemap.txt Normal file

File diff suppressed because it is too large Load Diff

16571
public/sitemap.xml Normal file

File diff suppressed because it is too large Load Diff

40147
public/sitemaptest.xml Normal file

File diff suppressed because it is too large Load Diff