asana_hub/actions/sync.py
def apply_tasks_to_issue(self, issue, tasks, issue_body=None):
        """Applies task numbers to an issue."""
        issue_body = issue_body or issue.body
        task_numbers = transport.format_task_numbers_with_links(tasks)
        if task_numbers:
            new_body = transport.ASANA_SECTION_RE.sub('', issue_body)
            new_body = new_body + "\n## Asana Tasks:\n\n%s" % task_numbers
            transport.issue_edit(issue,
                                 body=new_body)
            return new_body

        return issue_body
def apply_tasks_to_issue(self, issue, tasks, issue_body=None):
        """Applies task numbers to an issue."""
        issue_body = issue_body or issue.body
        task_numbers = transport.format_task_numbers_with_links(tasks)
        if task_numbers:
            new_body = transport.ASANA_SECTION_RE.sub('', issue_body)
            new_body = new_body + "\n## Asana Tasks:\n\n%s" % task_numbers
            transport.issue_edit(issue,
                                 body=new_body)
            return new_body

        return issue_body
def apply_tasks_to_issue ( self , issue , tasks , issue_body = None ) : issue_body = issue_body or issue . body task_numbers = transport . format_task_numbers_with_links ( tasks ) if task_numbers : new_body = transport . ASANA_SECTION_RE . sub ( '' , issue_body ) new_body = new_body + "\n## Asana Tasks:\n\n%s" % task_numbers transport . issue_edit ( issue , body = new_body ) return new_body return issue_body
Applies task numbers to an issue.
Applies task numbers to an issue .