github - How to add the commit's description to the discord webhook bot messages? -


i followed tutorial create webhook between github , discord. https://support.discordapp.com/hc/en-us/articles/228383668

everything worked expected , bot updating chat fine.

despite searching in docs ( https://discordapp.com/developers/docs/resources/webhook ), not find how configure bot displays commit's description.

i don't know if possible, can point me how handle this?

the discord github webhook display first line of commit git typically treats summary.

the github push webhook publishes json document containing fields such head, refs, , commits array fields such message , author.

however, default discord webhook expects simpler json document content field message body. webhook reject github push document.

however discord provides special github webhook understands payload of github push webhook. you've set noted displays first line of commit. there doesn't seem way customize it.

if want display full commit message, you'll need custom bot can receive github push event, format new json document in form expected default discord webhook, , send discord api.

there an app this. developer has abandoned in favor of official discord github webhook left running now. it's easy integrate , display full commit message. require public github repository however.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -