For the complete documentation index, see llms.txt. This page is also available as Markdown.

Automatic importing on Git push

ou can make automatic bot deploying on git push.

This possible with Webhooks. Make install for this lib.

Setup

command /setupGit

var url = Libs.Webhooks.getUrlFor(
   { command: "onGitPush", user_id: user.id }
)

Api.sendMessage({
  text: "Github webhook: " +
     "\n<pre>" + url + "</pre>",
  parse_mode: "html",
  disable_web_page_preview: true
})

Bot.sendMessage(url);

execute /setupGit copy url and go to Github.com > your repository -> Settings -> Webhooks. Press button "Add webhook"

Past copied url as Payload URL

Make like this:

Go to App - create command onGitPush

command onGitImportCompleted

just put to answer: "Git import completed"

Last updated