Post a Github comment with netlify cli

My build is on circleci, and as part of it, I’m running ./node_modules/netlify-cli/bin/run deploy --dir=./packages/docs/build to push it to netlify.

My questions is that right now every time I need to go to my logs to see the deploy preview link. Is it possible for the cli to post a comment to Github with some details about the deploy?

:wave @sedghi

That’s a very cool use case. May I suggest writing a custom build plugging that triggers after the build finishes - onEnd - and let’s you post any available details to GitHub using it’s API:

https://docs.github.com/en/rest/issues/comments#create-an-issue-comment

You may even share that plugin with the community which may power some builds in the future :slight_smile:

Hope this helps :crossed_fingers: