module.exports = async (ctx, task) => {
    const got = require('got');
    let response;

    try {
        response = await got('https://api.github.com/repos/TryGhost/Ghost/releases', {json: true});
    } catch (err) {
        task.title = 'Unable to fetch release notes';
        return;
    }

    const relevantNotes = response.body.filter(note => note.tag_name === ctx.version)[0];

    if (!relevantNotes) {
        task.title = 'Release notes were not found';
        return;
    }

    task.title = 'Fetched release notes';
    ctx.ui.log(`\n${relevantNotes.body}\n`, 'green');
};

@@ -190,16 +190,31 @@
 on: true
+, timeout: 5000
 %7D);%0A    

add 5 second timeout for release notes call (#1355)