def imported_message(imported):
    """Format a list of imported items for a slack message"""
    imported_msg = [
        {
            "type": "section",
            "text": {"type": "plain_text", "text": "The following items will be imported into munki after approval"}     
        }
    ]
    for item in imported:
        version = item["version"]
        name = item["branchname"]
        imported_info = [
            {
                "type": "section", "text": {"type": "mrkdwn", "text": f"• {name} version {version}"}
            }
        ]
        imported_msg.extend(imported_info)
    
    return imported_msg