Does my repository have to be public?
You can keep a bot’s source private. Every plan, including Spark, can fetch a private GitHub branch on a compatible runtime. The repository must fit that deployment’s storage allocation.
Where the GitHub App option appears in Deploy, approve access to the private repository and choose the branch. For a manual connection, enter the HTTPS clone URL and exact branch, then save the read credential in GIT_TOKEN. Keep the credential out of the clone URL and source. The bot also needs its own runtime credentials, such as a Telegram or Slack token.
What makes a push trigger a deployment?
The GitHub App receives pushes to the selected branch automatically. With a manual connection, enable AUTO_UPDATE, connect the same repository and branch in Deploy, and add the supplied webhook URL and signing secret to GitHub. Select push events. The first ping checks the connection. Push a commit to test deployment. GitHub’s guide to webhook deliveries.
How can I tell which copy is running?
Change a test command’s reply from “build one” to “build two” on the connected branch. Compare the new commit ID with Recent deploys and wait for its outcome. Then invoke that command in a test chat. If the delivery arrived but checkout failed, check the branch name and the repository credential. If the commit matches but the reply is old, check the entry file and whether another process still uses that bot identity.
Follow the GitHub deployment instructions for the exact settings. If the commit never becomes live, trace the delivery in GitHub and Bothosting.