Skip to content

Commit

Permalink
Merge pull request #117 from lishengbao/fix_issue_title
Browse files Browse the repository at this point in the history
Fix issue title matching rules
  • Loading branch information
lishengbao committed Aug 15, 2024
2 parents 110c7cb + 61764eb commit 482fa2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/services/tpc_software_metric_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def self.create_issue_workflow(payload)
Rails.logger.info("create_issue_workflow info: issue_html_url: #{issue_html_url}")


if issue_title.include?("【孵化选型申请】")
if issue_title.include?("【孵化选型申请】") || issue_title.include?("【孵化申请】")
# save issue url
issue_body_taskId_matched = issue_body.match(/taskId=(.*?)&projectId=/)
if issue_body_taskId_matched
Expand Down Expand Up @@ -121,7 +121,8 @@ def self.create_issue_comment_workflow(payload)

Rails.logger.info("create_issue_comment_workflow info: issue_html_url: #{issue_html_url}")

if issue_title.include?("【孵化选型申请】") && TpcSoftwareCommentState::Member_Type_Names.any? { |word| comment.start_with?(word) }
if (issue_title.include?("【孵化选型申请】") || issue_title.include?("【孵化申请】")) &&
TpcSoftwareCommentState::Member_Type_Names.any? { |word| comment.start_with?(word) }
issue_body_taskId_matched = issue_body.match(/taskId=(.*?)&projectId=/)
if issue_body_taskId_matched
# save issue url
Expand Down

0 comments on commit 482fa2a

Please sign in to comment.