You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by zr...@apache.org on 2022/03/01 19:11:57 UTC

[trafficcontrol] branch master updated: Fix incorrect template strings (#6595)

This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 8759dfb  Fix incorrect template strings (#6595)
8759dfb is described below

commit 8759dfb499ea47eb8b568050e2aba643ae6c3b36
Author: ocket8888 <oc...@apache.org>
AuthorDate: Tue Mar 1 12:11:48 2022 -0700

    Fix incorrect template strings (#6595)
---
 .github/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 2119f44..0c91915 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 @@ class GoPRMaker:
 		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 @@ class GoPRMaker:
 		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,