Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting our team. We will be in touch shortly.Close

  1. Blog
  2. Article

on 25 March 2021

Like every team, the web team has a set of features that are super useful to automate. We use Hubot, a technology owned by GitHub to write very simple bot scripts that we can interact with.

The way we use the bot is mostly via Mattermost. We called it: webbot.

In this article I would like to show some of the scripts that we wrote to make our life easier. I will separate them in two categories: the ones that can be triggered from our chat and the ones that are triggered via webhooks or API requests.

Discuss with webbot

We can interact directly with webbot in our Mattermost instance. Here is a list of actions that our bot will reply to.

/acronym [acronym]

This function will translate into a human readable form of an acronym that you request. Acronyms can come from general knowledge, companies and even teams. We share a spreadsheet throughout the company. Where everyone is invited to add new acronyms and the translation. The bot will then read the spreadsheet and reply with the matching answers.

“Good morning”

Our team is spread across the world. It might happen that one of us starts at a time where no one is around to reply to a greeting. Webbot never sleeps and will always be there to greet you!

@webbot meeting [backend-catchup|dev-catchup|…]

We use GitHub issues to manage our meetings notes. Each meeting note can be labelled with the type of meeting it is. In order to find the last decisions that were made or follow up actions rapidly. Webbot can be requested to get the latest notes posted.

Mattermost notifications

Some actions might require our attention and are useful to be shared with the team. These are some of the notifications that webbot give us in our day to day life at Canonical.

Notification when GitHub pull request are created

The web team works hard. We publish many pull requests an hour. Everyone of us should be able to jump in, to review it. To help publicize these requests to the team, every time a pull request is created webbot will notify the team in the channel.

Daily reminder of number of pull requests open

The team manages a lot of repositories. It is important to keep our code up to date. To remind the team about the amount of pull requests open, a daily reminder is sent to show how many are open and where to find the list.

Site released to production

Every time a site is published to production, webbot notifies the team and the infrastructure team to make sure that if anything happens we have as much information at our fingertips as possible.

It is usually my favorite message on Ubuntu release day.

Et voilà

We have a few more actions that webbot can do, but these are the main actions that we love. You’ll find all those scripts in this repository. Feel free to get inspired by them and don’t hesitate to share what you build with us on twitter at the Ubuntu Designers account.

Related posts

Anthony Dillon
25 October 2023

Web team – hack week 2023

Design Article

Today, around 96% of software projects utilize open source in some way. The web team here at Canonical is passionate about Open source. We lead with an open-by-default approach and so almost everything we do and work on can be found publicly on the Canonical Github org. It is not enough to simply open our ...

Goulin Khoge
14 October 2022

Introducing a VSCode extension for Vanilla CSS Framework

Ubuntu Article

The Vanilla CSS Framework is a utility class-based and customizable SASS library that is the go-to when it comes to styling websites and dashboards across the majority of projects at Canonical. Knowing all the class utilities could be tricky. That’s why we make sure that our documentation is up-to-date and accessible as much as possible. ...

4 October 2022

3 step guide to start Hacktoberfest

Ubuntu Article

Last week, the web and design team organised an internal Hacktoberfest. Our goal was simple: contribute to Open Source projects, understand what makes a great contribution experience, and how we could get inspired for our own projects. Here are 3-step guides from our experience during this Hacktoberfest. 1. What should I contribute to? He ...