def rule(event):
    if event.deep_get("action", default="") in ["repo.archived", "repo.unarchived"]:
        return True
    return False
