Using our GitHub integration to sync work between GitHub and ClickUp? Add GitHub Automations to build an efficient workflow. Software teams can reduce context switching using Automations to keep everything up-to-date.
What you'll need
- Automation integrations are available for Business Plans and above.
- The Workspace admin or owner must enable the Automation ClickApp.
- You need admin permissions to the GitHub repository to set up Automations.
- Guests can't use the GitHub integration.
Add a GitHub Automation in ClickUp
You can add GitHub Automations at the Space, Folder, and Lists level of the ClickUp Hierarchy.
- Navigate to the Space, Folder, or List where the Automation will apply.
- Click the Automations button in the top right corner.
- Click Add Automations.
- Select Browse at the top.
- Select Github from the left sidebar.
- Select the Automation you want to use, or click Show More to see more available GitHub Automations.
- Connect your GitHub account using the following options:
-
Pick from the dropdown list of existing GitHub accounts.
- To update a previously authorized GitHub account, you must remove and re-add it.
- Removing an account will not impact any existing Automations that use that account. You'll need to re-add it to create GitHub Automations in the future.
- Enter your GitHub user name and click Connect Account and authorize ClickUp or click Create an account to create a new account on GitHub.com.
-
Pick from the dropdown list of existing GitHub accounts.
- Specify who can use your GitHub account to create Automations.
- Configure the Trigger, Conditions, and Actions.
- Each GitHub Automation allows you to pick a specific repository (repo).
- The options available will vary depending on the GitHub Automation you're using.
- Click Create.
- Consider giving your GitHub Automation a meaningful description to help others understand what it does.
GitHub Automations
GitHub Automations use the same structure as Automations in ClickUp.
Every Automation consists of a Trigger and an Action. Users on the Business Plan and above have the option to use Conditions.
GitHub Triggers
When the following events happen in the specified GitHub repo, and the Conditions are met, the Automation will run and perform an Action.
-
Pull Request Merged
-
Branch Merged
-
On Commit
-
Pull Request Review Created
-
Pull Request Review Updated
-
CI/CD Status Changed
-
Pull Request Linked
-
Branch Linked
-
Commit Linked
GitHub Conditions
GitHub Automations related to pull requests support one or more Conditions.
For example, you can update the task status when a pull request to the main branch is linked. Or set the task priority to urgent and comment when a pull request with the hotfix label is merged to the QA branch.
Conditions can be set for multiple combinations of pull request labels, base ref, and head ref values.
Condition logic
You can use the following Condition logic:
- is any of: The pull request includes at least one of the specified labels or branches.
- is all of: The pull request includes all of the specified labels or branches.
- is not any of: The pull request does not include any of the specified labels or branches.
- is not all of: The pull request does not include all of the specified labels or branches.
For labels, you can use the logic listed above and:
- is set: At least one label has been applied to the pull request.
- is not set: No labels have been applied to the pull request.
Add a Condition
To add a Condition to your GitHub Automation:
- From an Automation, under the Trigger section, click Add Condition.
- Select what the condition should apply to:
- Githublabelcondition: Labels applied to the pull request.
- Head ref: The source branch containing your proposed changes.
- Base ref: The target branch where your changes will be applied.
ClickUp Actions
Every Automation Action except our webhook action is available to update tasks using GitHub Triggers.
For Automation Actions to be applied to existing tasks, the task must already be linked to the GitHub repo by linking a commit, branch, or pull request. The Create Task action is the only exception, as new tasks can't be linked in advance.
Actions in GitHub
You can use Automations with the Create Issue Action, which creates a new issue in GitHub.
For example, when a bug form is submitted and creates a task in a specific List, an Automation can create an issue in Github.