DEV Community

Cover image for Build Trello Cards from GitHub Events Automatically
Derrick Sherrill for WayScript

Posted on

Build Trello Cards from GitHub Events Automatically


Collaboration is an extremely important aspect of any business, but especially so when it comes to creating software and websites. Trello cards are great ways to keep everyone organized and on the same page. In today’s script, we’ll learn how to utilize these with GitHub in order to efficiently manage important tasks for your business. Keep reading to learn more about this simple script!

Building our Script

The first step in creating this script is to add the GitHub Trigger module. This is the starting point for the script and essentially keys the script to run. Once the trigger is added, choose a repository, mode, and when to run the program from the drop-down menus in the toolbar at left. For this script the “issue events” mode is selected, and the program will run whenever a GitHub issue is created. There are also options for outputs to be used later; this example uses the title, URL, and username.

tutorial step #1

When selected, these appear as variables at the bottom of the toolbar.

Next, the Trello module is inserted below the GitHub Trigger. If this is the first time using Trello the account must be authorized by selecting “add an account” before moving forward. Once the account is authorized and selected, use the drop-down menu to choose the appropriate action. In this case, it’s “create a new card.” Once this is done there are multiple menus in the toolbar to select the correct Trello board and list to use. There are also inputs for the card name and description. This is where the output options created earlier (title, URL, username) should go, as seen in the image below.

tutorial step #1

Additionally, there are further options to explore in the toolbar for the card.

Finally, activate the GitHub Trigger by clicking the switch to the “on” position. Now, whenever an issue is submitted in GitHub the script begins to run, eventually creating the Trello card corresponding to the issue.

Having the ability to automate Trello cards whenever updates occur in GitHub is a great way to stay on top of collaborations between team members. There’s no more needing to constantly remind yourself and others about updates; simply use this quick and efficient script to do the work for you!


Questions about this script or anything else? Join our discord. We're always around to help.

Top comments (0)