Test the GitHub Bot

We can now test the commands and functioning of the GitHub bot.

Open your Cliq account and open GitHub Bot. Let’s first test the issues command. All Cliq commands must be entered with a preceding ‘/’ backslash.

Type "/issues" in the bot’s chat. This will trigger the git_hub_bot_function and enable the command handler to fetch the repositories in your Git account. Your repositories will be displayed in the chat.

test_issues

You can select a repository using the arrow buttons, then press Enter. This will display the details of the last ten issues raised to that repository, if any. You can view any of these issues on GitHub by clicking on its link.

Next, type "/commits" in the chat and select one of the repositories from the list. This will display the details of the last ten commits pushed to that repository, if any.

You can click Post here to post the details as a message by the bot, and Close to remove the embedded view.

test_commits

You can also test the bot menu action that you configured for the GitHub bot. Click on Repos menu that is displayed below the chat window. This will list the details of all the repositories in the GitHub account.

test_repos

You can verify if the Cliq bot alerts you whenever a commit is pushed in the repository that you configured the webhook for. Make a commit in that repository. The Cliq bot will send you an alert with the commit details and a link to access that repository.

notify_commits

If all actions work fine, the GitHub bot is configured properly.

Last Updated 2023-11-06 15:33:12 +0530 +0530

RELATED LINKS

Integration Functions