Skip to content

Commit 557f9cf

Browse files
committed
Dangerfile: warn about absent link to an original issue.
1 parent 9392991 commit 557f9cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dangerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,13 @@ else
669669
end
670670
end
671671

672+
if github.pr_body !~ /Addressed to #\d+/
673+
warn(
674+
"danger check: pull request description doesn't contain a link to original issue.\n"\
675+
"Consider adding a comment in the following format: `Addressed to #XXX` where `XXX` is an issue number"
676+
)
677+
end
678+
672679
commits = git.commits.size
673680
if commits > 1
674681
if git.commits.any? { |c| c.message =~ /^Merge branch/ || c.message =~ /^Merge remote-tracking branch/ }

0 commit comments

Comments
 (0)