Skip to content

Commit

Permalink
Merge pull request #18071 from michael-redpanda/fix-code-ticks
Browse files Browse the repository at this point in the history
gh: Adjust workflow for code blocks
  • Loading branch information
michael-redpanda authored Apr 25, 2024
2 parents 6c802d8 + f94d229 commit b8e3d6e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/scripts/jira_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,12 @@ def _create_issue(self):
labels = self._get_gh_issue_labels()
issue_type = self._get_issue_type(labels)

# Replace "```" with "{code}" because Jira's format is different than
# GitHubs
jira_issue_body = issue_body.replace("```", "{code}")

fields = {
"description": f"{issue_body}",
"description": f"{jira_issue_body}",
"summary": f"{issue_title}",
"issuetype": {
"name": f"{issue_type}"
Expand Down Expand Up @@ -236,6 +240,7 @@ def _create_issue(self):
return issue_id

def _add_comment_to_issue(self, issue_id, comment):
comment = comment.replace("```", "{code}")
self.logger.debug(
f'Updating issue {issue_id} with comment "{comment}"')
try:
Expand Down

0 comments on commit b8e3d6e

Please sign in to comment.