text: const axios = require('../../utils/axios');
  const cheerio = require('cheerio');
  
  module.exports = async (ctx) => {
      let response = await axios.get('https://www.thunderbird.net/en-US/thunderbird/releases/');
      let data = response.data;
      let $ = cheerio.load(data);
  
      const version = $('#main-content')
          .find('ol')
          .find('li')
          .first()
          .find('a')
          .last()
          .text();
  
      response = await axios.get(`https://www.thunderbird.net/en-US/thunderbird/${version}/releasenotes/`);
      data = response.data;
      $ = cheerio.load(data);
  
      const content = $('.main-column').html();
  
      ctx.state.data = {
          title: 'Thunderbird release note',
          link: 'https://www.thunderbird.net/',
          item: [
              {
                  title: ['Thunderbird', version, 'release'].join(' '),
                  guid: version,
                  link: ['https://www.thunderbird.net/en-US/thunderbird/', version, '/releasenotes'].join(''),
                  description: content,
              },
          ],
      };
  };
  