/shared-config

A collection of MakerX reusable workflows and configs.

MIT LicenseMIT

MakerX Shared Config

A collection of MakerX reusable workflows and configs.

GitHub - Zendesk integration

The zendesk github integration consist of 3 github actions.

Issue labelled

Once an issue is assigned a specified label, it is sent to Zendesk, creating (or using) the user <Github UserName> with email <Github UserName>@users.noreply.github.com. This mail adress format is also used by github when a user sets the privacy option that the mail should be hidden. Once the ticket got created a comment to the issue will be added to inform the user about the tech support contact.

Issue commented

Every comment on an issue gets send to zendesk. It will look up the connected ticket and author and attaches the comment to the ticket.

Issue closed

When an issue is closed, it is marked as solved in Zendesk.

Integration

The workflows need to be added to each repository that we want to sync issues to Zendesk. However, to avoid repeat code, they can also be reused via Calling a reusable workflow. Samples can be found here.

Limitations

There are known limitation of GitHub - Zendesk integration:

  • Markdown comments aren't supported due to an issue with Zendesk API.
  • When an issue is created, existing comments aren't synced to Zendesk.
  • Comment updates aren't synced to Zendesk.
  • Removing issue label from GitHub doesn't have an affect, the corresponding Zendesk ticket is still need to be handled manually.
  • The GitHub actions don't have retry logic, if they failed, the data won't be synced.

Zendesk - GitHub integration

Zendesk - GitHub integration is done via webhook and Zendesk events. Zendesk events will trigger GitHub workflows of a GitHub repository (let's call it the entry point). From this entry point, it works out the target repository for dispatching workflows. Currently, there are:

Setup Zendesk webhook

You can find the Postman collection for Zendesk API here. Import the collection and the global variables to your local postman. There are some variables to set:

Steps:

  • Run Create webhook API to create the Zendesk webhook. Remember to take note of the response id and set the zendesk-webhook-id variable.
  • Run Create trigger - ticket solved API
  • Run Create trigger - ticket commented API

Integration

From GitHub side, there are:

They will be invoked by zendesk_github_ticket_commented and zendesk_github_ticket_solved respectively. They need to be added to each repository that we want to sync comments and statuses from Zendesk. However, to avoid repeat code, they can also be reused via Calling a reusable workflow. Samples can be found here.

Zendesk - GitHub integration needs GH_ZENDESK_INVOKE_WORKFLOW_TOKEN secrets to invoke the workflows. It's a personal access token, the only requirement is to have permission contents:write to any repository that we want to sync from Zendesk.