I’m not sure if this is well known, but it helped me so I thought I’d share it with you.
When committing to gitmonorepo, (with git llvm push) you need to have committed to your local repo first and so you need to have crafted your commit message from your the Phabricator revision. (e.g. D12345)
Phabricator has the ability to give you this commit message it would have used, even if you do not use arc to perform the commit/land
This small script (attached) uses arc, jq and sed (but it can be relatively easily changed to use curl instead of arc)
You need to provide your own conduit api token in place of <replace_with_phabricator_api_token>
You can get one of these from you Profile->Setting->Conduit API Tokens in the top right hand corner of Phabricator https://reviews.llvm.org
get_commit_message.sh (242 Bytes)