Many organizations around the world use Git for managing their code repository. One of those popular code repositories is GitHub, which makes it easy for developers to showcase their work and collaborate with other developers around the world.
Developers build new product features and fix bugs in existing product features by committing their source code to their project code repository via git commands. GitHub also provides an intuitive graphical interface to manage code repositories.
Use-Case
You have chosen Document360 as your Knowledge base platform. You have hosted your code repository in GitHub. There is a need that when a developer commits a code to GitHub, you want to create a corresponding knowledge base article in Document360.
Currently, there is no direct integration option available between GitHub and Document360 from either of the platforms.
Workaround
As a workaround, you can use Zapier integration to bridge this gap. By connecting GitHub and Document360 on Zapier, you can easily facilitate the content flow between these platforms.
Ensure that you have logged into your Zapier account.
-
Click Create -> Zaps
-
Zap was created with Trigger and Action flow in it
Connecting GitHub and Document360 in Zapier
Step 1: Connect GitHub
In Trigger, fetch the GitHub information.
-
In Trigger, choose GitHub
-
In the App & Event section, select the required Event to trigger in the GitHub
If you wish to configure a different app later, you can do that by clicking on Change
-
Click Continue
-
The Account section enables. Click Sign in and key in your credentials in the new access window. Click on the Authorize zapier button
-
Click Continue
-
Click Test trigger and Zapier runs a test to make sure the trigger is correctly configured
Step 2: Connect Document360
-
In Action, choose Document360, Document360 blade appears on the right
-
Choose the desired Event
-
In the Account section, you need to sign in with your Document360 credentials
-
Click Sign in, and a new pop-up window would open with an API token field to connect with the knowledge base project
-
You can obtain the API token from the Document360 portal
- Go to Settings → Knowledge base portal → Extensions → Team collaboration
- In Zapier assistance, click Connect
- Click Copy
-
Head back to the pop-up window, paste the API token in the field
-
Click Yes, Continue to Document360
- You can find the connected Document360 project on the Connect Document360 account page
If you wish to configure a different account later, you can do that by clicking on Change
- Click Continue
Step 3: Customize Zap
Map all the required fields:
Title: By default, New commit in GitHub is selected here. However, you have a plethora of other options to choose from (depending upon your business requirements)
Content: By default, Commit Message is selected here. However, you have a plethora of other options to choose from (depending upon your business requirements)
Version: Choose the desired workspace in the knowledge base project, you want the article to be created in
Language: Choose the desired language in the selected workspace, you want the article to be created in
Category: Choose the desired category in the selected language, you want the article to be created in
Publish Choose True for the article to be published. Choose False for the article to be in draft state.
After you map all the required fields, the continue button is enabled.
Step 4: Test Zap
-
Once you have configured the actions in Document360, the Zap needs to be tested to make sure it’s configured correctly
(Zapier would create an article on Document360 to make sure everything works) -
Click on the Send test button
-
If successful, you would get the message “Test Article sent! Check your Document360 account to view it.’’
-
Visit your Document360 knowledge base portal and you can find the article named “New commit in GitHub” under the desired location you have previously selected
-
Head back to the Zapier setup window and click on Next
-
Once done, click Publish
You would get a success message window stating Your Zap is on. You can click on the Manage your Zap button to go to your GitHub+Document360 Zap overview page.
Created Zap overview
Create articles in Document360 from new GitHub commits
You can view and edit the information about your created Zap on the Zap overview page.
How will you delete Zap?
- Go to the Zapier dashboard. In the overview page, a list of all existing Zaps is displayed
- Click the right arrow (>) of the desired Zaps and click Turn off and delete Zap