From b8d7ea2f52f50897511a91b5b0c817911ee32c25 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Tue, 1 Aug 2023 16:52:44 +0300 Subject: [PATCH] Fix character length limit given new changes (#724) Fix the character length limit error by setting it in the `MessageBuilder`. This reacts to changes made in https://github.com/dependabot/dependabot-core/pull/7487 --- updater/Gemfile | 1 - updater/bin/update-script.rb | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/updater/Gemfile b/updater/Gemfile index a9b903f2..fabf954a 100644 --- a/updater/Gemfile +++ b/updater/Gemfile @@ -9,7 +9,6 @@ source "https://rubygems.org" # Hence adding the branch. # gem "dependabot-omnibus", github: "dependabot/dependabot-core", branch: "main" - gem "dependabot-omnibus", "~>0.224.0" group :test do diff --git a/updater/bin/update-script.rb b/updater/bin/update-script.rb index abb557bc..6e82716a 100644 --- a/updater/bin/update-script.rb +++ b/updater/bin/update-script.rb @@ -694,7 +694,10 @@ def show_diff(original_file, updated_file) # pr_message_header: , # pr_message_footer: , # vulnerabilities_fixed: , - github_redirection_service: Dependabot::PullRequestCreator::DEFAULT_GITHUB_REDIRECTION_SERVICE + # dependency_group: , + github_redirection_service: Dependabot::PullRequestCreator::DEFAULT_GITHUB_REDIRECTION_SERVICE, + pr_message_max_length: Dependabot::Azure::PR_DESCRIPTION_MAX_LENGTH, + pr_message_encoding: Dependabot::Azure::PR_DESCRIPTION_ENCODING ) # Skip creating/updating PR