Back to Integrations
integrationWebhook node
integrationGitHub node

Webhook and GitHub integration

n8n lets you integrate Webhook with GitHub to build powerful workflows. Design automation that extracts, transforms and loads data between your apps and services. You can choose from thousands of ready-made apps or use our universal HTTP connector to sync apps not yet in our library.

Integrate Webhook and GitHub

Build your own Webhook and GitHub integration

Create custom Webhook and GitHub workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

How to connect Webhook and GitHub

  • Step 1: Add the first step

  • Step 2: Add Webhook and GitHub nodes

  • Step 3: Connect Webhook and GitHub

  • Step 4: Run workflow

Sync Zendesk tickets with subsequent comments to GitHub issues

This workflow creates a GitHub issue when a new ticket is created in Zendesk. Subsequent comments on the ticket in Zendesk are added as comments to the issue in GitHub.

Prerequisites

How it works

  1. The workflow listens for new tickets in Zendesk.
  2. When a new ticket is created, the workflow creates a new issue in GitHub.
  3. The GitHub issue number is then saved in one of the ticket's fields (in setup we call this "GitHub Issue Number").
  4. The next time a comment is added to the ticket, the workflow retrieves the GitHub issue number from the ticket's field and adds the comment to the issue in GitHub.

Setup

This workflow requires that you set up a webhook in Zendesk. To do so, follow the steps below:

  1. In the workflow, open the On new Zendesk ticket node and copy the webhook URL.

  2. In Zendesk, navigate to Admin Center > Apps and integrations > Webhooks > Actions > Create Webhook.

  3. Add all the required details which can be retrieved from the On new Zendesk ticket node. The webhook URL gets added to the “Endpoint URL” field, and the “Request method” should match what is shown in n8n.

  4. Save the webhook.

  5. In Zendesk, navigate to Admin Center > Objects and rules > Business rules > Triggers > Add trigger.

  6. Give trigger a name such as “New tickets”.

  7. Under “Conditions” in “Meet ALL of the following conditions”, add “Status is New”.

  8. Under “Actions”, select “Notify active webhook” and select the webhook you created previously.

  9. In the JSON body, add the following:

    {
    	"id": "{{ticket.id}}",
    	"comment": "{{ticket.latest_comment_html}}"
    }
    
  10. Save the Zendesk trigger.

You will also need to set up a field in Zendesk to store the GitHub issue number. To do so, follow the steps below:

  1. In Zendesk, navigate to Admin Center > Objects and rules > Tickets > Fields > Add field.
  2. Use the number field option and give the field a name such as “GitHub Issue Number”.
  3. Save the field.
  4. In n8n, open the Update ticket node and select the field you created in Zendesk.

Nodes used in this workflow

Over 3000 companies switch to n8n every single week

GitHub supported actions

Create
Create a new file in repository
Delete
Delete a file in repository
Edit
Edit a file in repository
Get
Get the data of a single file
List
List contents of a folder
Create
Create a new issue
Create Comment
Create a new comment on an issue
Edit
Edit an issue
Get
Get the data of a single issue
Lock
Lock an issue
Get Repositories
Returns all repositories of an organization
Create
Creates a new release
Delete
Delete a release
Get
Get a release
Get Many
Get many repository releases
Update
Update a release
Get
Get the data of a single repository
Get Issues
Returns issues of a repository
Get License
Returns the contents of the repository's license file, if one is detected
Get Profile
Get the community profile of a repository with metrics, health score, description, license, etc
List Popular Paths
Get the top 10 popular content paths over the last 14 days
List Referrers
Get the top 10 referrering domains over the last 14 days
Create
Creates a new review
Get
Get a review for a pull request
Get Many
Get many reviews for a pull request
Update
Update a review
Get Repositories
Returns the repositories of a user
Invite
Invites a user to an organization

Webhook and GitHub integration details

integrationWebhook node
Webhook

Webhooks are automatic notifications that apps send when something occurs. They are sent to a certain URL, which is effectively the app's phone number or address, and contain a message or payload. Polling is nearly never quicker than webhooks, and it takes less effort from you.

Looking to integrate Webhook and GitHub in your company?

Why use n8n to integrate Webhook with GitHub

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon