cla fix and add token verify

This commit is contained in:
chenjing
2023-06-20 15:27:03 +08:00
parent d35bbcf6fb
commit 65816a980b
9 changed files with 123 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ class PullRequests::SendJournalService < ApplicationService
journalized_id: @issue.id ,
journalized_type: "Issue",
user_id: sender_id ,
notes: "@#{@current_user.nickname} 您好!欢迎参与 #{@project.name} 的贡献。首次进行贡献请完成《<a href='/#{@project.owner.login}/cla/#{@project.owner.cla.key}' target='_blank'>#{@project.owner.cla.name}</a>》的签署,签署完成后,项目成员才可查看到您的合并请求",
notes: "<b>#{@current_user.nickname}</b>您好!欢迎参与 #{@project.name} 的贡献。首次进行贡献请完成《<a href='/#{@project.owner.login}/cla/#{@project.owner.cla.key}' target='_blank'>#{@project.owner.cla.name}</a>》的签署,签署完成后,项目成员才可查看到您的合并请求",
}
journal = Journal.new journal_params
if journal.save