This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/github_issues/github_issue_maker.py b/src/github_issues/github_issue_maker.py | |
index cd5fef2..20d1712 100644 | |
--- a/src/github_issues/github_issue_maker.py | |
+++ b/src/github_issues/github_issue_maker.py | |
@@ -239,6 +239,7 @@ class GithubIssueMaker: | |
# end: Related tickets under 'children' | |
update_issue = False | |
+ updated_description = None | |
try: | |
issue = self.get_github_conn().issues.get(number=github_issue_num) | |
# time.sleep(1) | |
@@ -287,7 +288,7 @@ class GithubIssueMaker: | |
msg('Github sub-issues: %s' % github_children_str) | |
template = self.jinja_env.get_template('related_issues.md') | |
- template_params = {'original_description': issue.body, | |
+ template_params = {'original_description': issue.body if updated_description is None else updated_description, | |
'original_issues': original_issues_str, | |
'related_issues': related_issue_str, | |
'child_issues_original': original_children_str, | |
diff --git a/src/github_issues/migration_manager.py b/src/github_issues/migration_manager.py | |
index 43f64b7..19ba64b 100644 | |
--- a/src/github_issues/migration_manager.py | |
+++ b/src/github_issues/migration_manager.py | |
@@ -113,7 +113,7 @@ class MigrationManager: | |
def migrate_related_tickets(self): | |
""" | |
- After github issues are already migrated, go back and udpate the descriptions to include "related tickets" | |
+ After github issues are already migrated, go back and update the descriptions to include "related tickets" | |
""" | |
gm = GithubIssueMaker() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment