Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created June 3, 2019 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jef-n/f6f0f52d577e615bfcc6dc5ae2b66468 to your computer and use it in GitHub Desktop.
Save jef-n/f6f0f52d577e615bfcc6dc5ae2b66468 to your computer and use it in GitHub Desktop.
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