AppsPricingBlogTry it
Mailgun logo
GitHub logo

Connect Mailgun to GitHub

Build an AI agent that works across Mailgun and GitHub, on a schedule or when you click Run.

11 source actions
24 target actions
Reverse direction supported

Why Connect Mailgun & GitHub?

Read what you need from Mailgun

Your agent uses Mailgun's documented actions to pull the records it needs, each time it runs.

Run a GitHub action

Then it uses one of 24 documented actions, such as Create Issue, Search Issues and Pull Requests, Create Branch.

Test it, then put it on a schedule

Run it once on your own data and check the result. Then set it to run daily, on weekdays or weekly.

Available Triggers & Actions

Mailgun logo

Mailgun

Triggers (11)

New Bounce (Instant)

Emit new event when the email recipient could not be reached.

webhook
New Click (Instant)

Emit new event when the email recipient clicked on a link in the email. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

webhook
New Complaint (Instant)

Emit new event when the email recipient clicked on the spam complaint button within their email client. Feedback loops enable the notification to be received by Mailgun.

webhook
New Delivery (Instant)

Emit new event when an email is sent and accepted by the recipient email server.

webhook
New Delivery Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server.

webhook
New Log Data

Emit new event when new data is logged in Mailgun's Control Panel. Occurs for most actions within the associated Mailgun account.

polling
New Mailing List

Emit new event when a new mailing list is added to the associated Mailgun account.

polling
New Open (Instant)

Emit new event when the email recipient opened the email and enabled image viewing. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

webhook
New Permanent Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server due to a permanent mailbox error such as non-existent mailbox.

webhook
New Temporary Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server due to a temporary mailbox error such as an ESP block. ESP is the Email Service Provider managing the recipient email server.

webhook
New Unsubscribe (Instant)

Emit new event when the email recipient clicked on the unsubscribe link. Unsubscribe tracking must be enabled in the Mailgun control panel. See more at the Mailgun User's Manual Tracking Messages section

webhook

Actions (11)

Create Mailing List Member

Add to an existing mailing list. See the docs here

Create Route

Create a new route. See the docs here

Delete Mailing List Member

Delete a mailing list member by address. See the docs here

Get Mailing List Member

Retrieve a mailing list member by address. See the docs here

Get Mailing List Members

List all mailing list members. See the docs here

List Domain Name Options

Retrieves available options for the Domain Name field.

List Domains

List domains in Mailgun. See the docs here

List Mailing List Options

Retrieves available options for the Mailing List field.

Send Email

Send email with Mailgun. See the docs here

Suppress Email

Add email to the Mailgun suppression list. See the docs here

Verify Email

Verify email address deliverability with Mailgun. See the docs here

GitHub logo

GitHub

Triggers (12)

New Branch Created

Emit new event when a branch is created.

polling
New Card in Column (Classic Projects)

Emit new event when a (classic) project card is created or moved to a specific column. For Projects V2 use New Issue with Status trigger. More information here

polling
New Collaborator

Emit new event when a collaborator is added

polling
New Commit

Emit new event when commits are pushed to a branch

polling
New Commit Comment

Emit new event when a commit comment is created

polling
New Discussion

Emit new event when a discussion is created

polling
New Fork

Emit new event when a repository is forked

polling
New Gist

Emit new events when new gists are created by the authenticated user. See the documentation

polling
New Issue Comment

Emit new event when a new comment is added to an issue or pull request

polling
New Label

Emit new event when a new label is created

polling
New Mention

Emit new event when you are @mentioned in a new commit, comment, issue or pull request. See the documentation

polling
New Notification

Emit new event when the authenticated user receives a new notification. See the documentation

polling

Actions (24)

Create Issue

Create a new issue in a GitHub repo. See the documentation

Search Issues and Pull Requests

Find issues and pull requests by state and keyword. See the documentation

Create Branch

Create a new branch in a GitHub repo. See the documentation

Create Gist

Allows you to add a new gist with one or more files. See the documentation

Create Issue Comment

Create a new comment in a issue. See the documentation

Create or Update File Contents

Create or update a file in a repository. See the documentation

Create Pull Request

Creates a new pull request for a specified repository. See the documentation

Create Repository

Creates a new repository for the authenticated user. See the documentation

Create Workflow Dispatch

Creates a new workflow dispatch event. See the documentation

Disable Workflow

Disables a workflow and sets the **state** of the workflow to **disabled_manually**. See the documentation

Enable Workflow

Enables a workflow and sets the **state** of the workflow to **active**. See the documentation

Get Commit

Get a commit in a GitHub repo. See the documentation

Get Current User

Gather a full snapshot of the authenticated GitHub actor, combining /user, /user/orgs, and /user/teams. Returns profile metadata (login, name, email, company, plan, creation timestamps) and trimmed lists of organizations and teams for quick role awareness. Helpful when you need to validate which user is calling the API, adapt behavior based on their org/team memberships, or provide LLMs with grounding before repository operations. See the documentation.

Get Issue

Get details of an issue in a GitHub repository. See the documentation

Get Issue Assignees

Get assignees for an issue in a GitHub repo. See the documentation

Get Repository Content

Get the content of a file or directory in a specific repository. See the documentation

Get Repository Info

Get information for a specific repository. See the documentation

Get Reviewers

Get reviewers for a PR (see documentation) or Commit SHA (see documentation).

Get Workflow Run

Gets a specific workflow run. See the documentation

List Branches

List branches for a repository using its owner/repo full name (for example, octocat/Hello-World). If you need to discover repository names first, use **List Repositories**. See the documentation

List Commits

List commits in a GitHub repo. See the documentation

List Gist Id Options

Retrieves available options for the Gist Id field.

List Gists for a User

Lists public gists for the specified user. See the documentation

List Organization Options

Retrieves available options for the Organization field.

Integration Features

11 documented Mailgun actions
24 documented GitHub actions
Plain-English agent instructions
Daily, weekday or weekly schedule, or run on demand
Execution monitoring
A supported GitHub to Mailgun direction

Capability Examples

Mailgun trigger → GitHub action

Catalog example
MailgunMailgun

New Bounce (Instant)

GitHubGitHub

Create Issue

GitHub trigger → Mailgun action

Reverse direction
GitHubGitHub

New Branch Created

MailgunMailgun

Create Mailing List Member

How It Works

1

Connect Apps

Authenticate your Mailgun and GitHub accounts

2

Describe the Job

Say what to read from Mailgun and what to do in GitHub

3

Choose an Action

Select the documented GitHub operation to run

Test and Review

Verify field mapping and provider responses before activation

Frequently Asked Questions

Integration Benefits

Scheduled or On-demand Runs

Runs daily, on weekdays or weekly at a set time, or when you click Run. It does not fire on live Mailgun events yet.

Automated Actions

Use 24 documented GitHub actions each time the agent runs.

Provider Authentication

Review the authentication requirements published by each provider before activating the workflow.

Guided Configuration

Describe the job in plain English. The agent picks theMailgun and GitHub actions it needs.

Your Own Accounts

You connect your own Mailgun and GitHub accounts. App connections need a paid plan.

Execution Review

Test the workflow and review provider responses before relying on it in production.

GitHub logoMailgun logo

Reverse Integration Available

Also connect GitHub to Mailgun for bidirectional automation

View Integration
Mailgun logo

All Mailgun Integrations

Explore all available Mailgun connections

View All Integrations
GitHub logo

All GitHub Integrations

Explore all available GitHub connections

View All Integrations

Ready to Connect Mailgun & GitHub?

Build this agent in Mazaal AI and test it on your ownMailgun and GitHub data.

Start building

Rather not build it yourself? We set up one Mailgun to GitHub agent on your accounts for A$490: a 30-minute call, a test on your real data, and 14 days of fixes. Plan billed separately. Email Enod