GitHub Bot

Introduction

This tutorial will help you build an extension on Zoho Cliq that will enable you to view the details of your GitHub repositories using a Cliq bot.

The Cliq extension will bundle the following internal components: Commands, Function, and Bot. You can learn about these components from the Cliq help documentation.

The Cliq chat bot will provide the following information along with appropriate links when you enter the right command in the chat:

  • List of all the repositories in the GitHub account
  • Details of the last ten commits made in a specific repository
  • Details of the last ten issues raised in a specific repository

For example, when you enter the command to display the latest issues raised in the Git repository, the chat bot will display details as shown below.

catalyst_gitbot_cliq_bot_test_2

The bot will also send you an alert in the chat immediately after a commit is pushed to the Git repository, along with the commit details.

This setup includes the following Catalyst component:

  • Integration Function: The backend of this Cliq extension will be built using an Integration function in the Java platform. This function will enable you to build and maintain the backend of the Cliq extension. We will associate this function with the extension while creating the extension on Cliq. After this integration is configured, the integration function will be invoked each time the Cliq bot is accessed.
Note: Integration Functions is currently not available to Catalyst users accessing from the EU, AU, IN, or CA data centers. Users accessing from these DCs will not be able to avail this tutorial to build the GitHub bot.

This setup will not include a Catalyst client component. We will code a few handlers in the Integration function that will handle specific events and actions.

We will also use the Catalyst Command Line Interface (CLI) to build this application.

You will be given the code for the files to be included in the Integration function in this tutorial. You will just have to copy the code given here and paste it into the appropriate files as directed.

Last Updated 2024-01-04 12:37:42 +0530 +0530

Min Time to Complete:

50 mins

Difficulty Level:

Hard

SERVICES INVOLVED

Serverless DevOps

COMPONENTS INVOLVED

Functions