From ee546ce66f936667a5df669e6cc2374bcb9f0162 Mon Sep 17 00:00:00 2001 From: ocket8888 Date: Tue, 1 Mar 2022 11:52:23 -0700 Subject: [PATCH] Fix incorrect template strings --- .../actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py b/.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py index 2119f44f35..0c91915221 100644 --- a/.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py +++ b/.github/actions/pr-to-update-go/pr_to_update_go/go_pr_maker.py @@ -305,7 +305,7 @@ def set_go_version(self, go_version: str, commit_message: str, kwargs = { "branch": source_branch_name, "committer": NotSet, - "content": f"${go_version}\n", + "content": f"{go_version}\n", "path": go_version_file, "message": commit_message, "sha": self.file_contents(go_version_file, source_branch_name).sha @@ -379,7 +379,7 @@ def create_pr(self, latest_go_version: str, commit_message: str, owner: str, milestone_url = self.get_go_milestone(latest_go_version) if milestone_url is None: #TODO subclass this - raise LookupError(f"no milestone found for '${latest_go_version}'") + raise LookupError(f"no milestone found for '{latest_go_version}'") pr_body = get_pr_body(latest_go_version, milestone_url) pull_request: PullRequest = self.repo.create_pull( title=commit_message,