I'm interested to know how you identify the trello cards in the commit message? Are you using your own codes to identify them? I'm thinking of building something similar myself.
We squash commits before merging so we use the PR as the tie between cards and commits.