|
|
|
@@ -24,7 +24,7 @@ class GlccMediumTermExamineMaterial < ActiveRecord::Base |
|
|
|
state = [] |
|
|
|
# code_or_pr_url = "https://www.gitlink.org.cn/Gitlink/forgeplus/pulls/337" |
|
|
|
url_array = code_or_pr_url.split("/") |
|
|
|
gitlink_index = url_array.index("www.gitlink.org.cn") || url_array.index("gitlink.org.cn") |
|
|
|
gitlink_index = url_array.index("www.gitlink.org.cn") || url_array.index("gitlink.org.cn") || url_array.index("testforgeplus.trustie.net") |
|
|
|
pull_index = url_array.index("pulls") |
|
|
|
|
|
|
|
#发送没有在gitlink上提交PR的邮件 |
|
|
|
@@ -43,7 +43,7 @@ class GlccMediumTermExamineMaterial < ActiveRecord::Base |
|
|
|
unless pr.present? |
|
|
|
state << 3 |
|
|
|
end |
|
|
|
if white_list && term == 1 #特殊处理 白名单的中期考核不处理 中期考核后去掉 |
|
|
|
if white_list #特殊处理 白名单考核不处理 |
|
|
|
state = [] |
|
|
|
end |
|
|
|
state |
|
|
|
|