

def renameList(self, action):
    data = action['data']
    context = {
        'board_link': data['board']['shortLink'],
        'list_name': data['list']['name'],
        'list_old_name': data['old']['name'],
    }
    payload = ':incoming_envelope: List renamed from "{list_old_name}" to "[{list_name}](https://trello.com/b/{board_link})"'
    return payload.format(**context)

dataset/ETHPy150Open Lujeni/matterllo/matterllo/hook/list.py Hook.renameList/original