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

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

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