Skip to content

Commit 6eb832a

Browse files
committed
Dangerfile: warn about absent link to an original issue.
1 parent e0237f9 commit 6eb832a

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
@@ -670,6 +670,13 @@ else
670670
end
671671
end
672672

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

0 commit comments

Comments
 (0)