From 9e5d1c370baf69b109442a168b6c18bf90f55ac9 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 16 Apr 2026 10:22:01 +0900 Subject: Skip Redmine link comment when the URL is already in the PR body If the PR title or body already contains the full bugs.ruby-lang.org URL for a referenced ticket, there is no need to post a redundant link in a comment. Co-Authored-By: Claude Opus 4.6 (1M context) --- tool/auto_review_pr.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/auto_review_pr.rb b/tool/auto_review_pr.rb index d659730f56..38adf9fdb7 100755 --- a/tool/auto_review_pr.rb +++ b/tool/auto_review_pr.rb @@ -133,6 +133,7 @@ class AutoReviewPR text = "#{pr[:title]}\n#{pr[:body]}" tickets = text.scan(REDMINE_TICKET_PATTERN).uniq + tickets.reject! { |_, number| text.include?("https://bugs.ruby-lang.org/issues/#{number}") } if tickets.empty? puts "Skipped: The PR ##{pr_number} doesn't reference any Redmine tickets." return -- cgit v1.2.3