]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
danger: remove obsolete check for cherry pick msg
authorTom Krizek <tkrizek@isc.org>
Thu, 15 Dec 2022 16:55:54 +0000 (17:55 +0100)
committerTom Krizek <tkrizek@isc.org>
Fri, 16 Dec 2022 13:22:05 +0000 (14:22 +0100)
With proper backport commit detection, this check has been made
redundant.

(cherry picked from commit e8a5ebaee508c216174624fbc37414ea2dcc5b99)

dangerfile.py

index dbad008734b5c0aeb4396661bd63151042b68ad1..2ac0b574f51398f2f2643c36372faafd0a2c154f 100644 (file)
@@ -89,8 +89,6 @@ mr = proj.mergerequests.get(os.environ["CI_MERGE_REQUEST_IID"])
 #         - lines which contain references (i.e. those starting with "[1]",
 #           "[2]", etc.) which allows e.g. long URLs to be included in the
 #           commit log message.
-#
-#     * There is no "cherry picked from X" message in Backport commits.
 
 PROHIBITED_WORDS_RE = re.compile(
     "^(WIP|wip|DROP|drop|DROPME|checkpoint|experiment|TODO|todo)[^a-zA-Z]"
@@ -139,11 +137,6 @@ for commit in danger.git.commits:
                 f"Line too long in log message for commit {commit.sha}: "
                 f"```{line}``` ({len(line)} > 72 characters)."
             )
-    if is_backport and "cherry picked from commit" not in commit.message:
-        warn(
-            f"`cherry picked from commit...` message missing in commit {commit.sha}. "
-            "Please use `-x` option with `git cherry-pick` or remove the `Backport` label."
-        )
 
 ###############################################################################
 # MILESTONE