DEV Community

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

Posted on

6 5

Build Trello Cards from GitHub Events Automatically

Introduction

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!

Conclusion

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

Image of Datadog

Master Mobile Monitoring for iOS Apps

Monitor your app’s health with real-time insights into crash-free rates, start times, and more. Optimize performance and prevent user churn by addressing critical issues like app hangs, and ANRs. Learn how to keep your iOS app running smoothly across all devices by downloading this eBook.

Get The eBook

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay