webhook for issue

This commit is contained in:
chenjing
2023-04-06 17:00:43 +08:00
committed by yystopf
parent 91dfc94a7b
commit 769c8a0194
6 changed files with 201 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ class JournalsController < ApplicationController
end
Rails.logger.info "[ATME] maybe to at such users: #{@atme_receivers.pluck(:login)}"
AtmeService.call(current_user, @atme_receivers, journal) if @atme_receivers.size > 0
TouchWebhookJob.perform_later('PullRequestComment', @issue&.id, current_user.id, journal.id)
# @issue.project_trends.create(user_id: current_user.id, project_id: @project.id, action_type: "journal")
render :json => { status: 0, message: "评论成功", id: journal.id}
# normal_status(0, "评论成功")