(config: config.V1)
return BlockingTitleRegex(
        pattern=DEFAULT_TITLE_REGEX, config_key="merge.blocking_title_regex"
    )
merge.blocking_title_regex takes priority over merge.blacklist_title_regex.

    If neither options are set we return the default regex.
merge.blocking_title_regex takes priority over merge.blacklist_title_regex.
merge . blocking_title_regex takes priority over merge . blacklist_title_regex .
def get_blocking_title_regex(config: config.V1) -> BlockingTitleRegex:
    """
    merge.blocking_title_regex takes priority over merge.blacklist_title_regex.

    If neither options are set we return the default regex.
    """
    # config.merge.blocking_title_regex takes priority.
    if config.merge.blocking_title_regex != UNSET_TITLE_REGEX:
        return BlockingTitleRegex(
            pattern=config.merge.blocking_title_regex,
            config_key="merge.blocking_title_regex",
        )
    if config.merge.blacklist_title_regex != UNSET_TITLE_REGEX:
        return BlockingTitleRegex(
            pattern=config.merge.blacklist_title_regex,
            config_key="merge.blacklist_title_regex",
        )
    # user hasn't set either options so we return the default.
    return BlockingTitleRegex(
        pattern=DEFAULT_TITLE_REGEX, config_key="merge.blocking_title_regex"
    )
def get_blocking_title_regex ( config : config . V1 ) -> BlockingTitleRegex : # config.merge.blocking_title_regex takes priority. if config . merge . blocking_title_regex != UNSET_TITLE_REGEX : return BlockingTitleRegex ( pattern = config . merge . blocking_title_regex , config_key = "merge.blocking_title_regex" , ) if config . merge . blacklist_title_regex != UNSET_TITLE_REGEX : return BlockingTitleRegex ( pattern = config . merge . blacklist_title_regex , config_key = "merge.blacklist_title_regex" , ) # user hasn't set either options so we return the default. return BlockingTitleRegex ( pattern = DEFAULT_TITLE_REGEX , config_key = "merge.blocking_title_regex" )