mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-10 23:09:51 +08:00
修改issue的开启和关闭
This commit is contained in:
@@ -336,8 +336,14 @@ class IssuesController < ApplicationController
|
||||
}
|
||||
ChangeTokenJob.perform_later(change_params)
|
||||
end
|
||||
if @issue.issue_classify.to_s == "pull_request"
|
||||
@issue&.pull_request&.update_attribute(:status, 2)
|
||||
end
|
||||
else
|
||||
@issue&.project_trends&.update_all(action_type: "create")
|
||||
if @issue.issue_classify.to_s == "pull_request"
|
||||
@issue&.pull_request&.update_attribute(:status, 0)
|
||||
end
|
||||
end
|
||||
if @issue.issue_classify == "issue"
|
||||
close_message = "close_issue"
|
||||
|
||||
Reference in New Issue
Block a user