Skip to content

Commit

Permalink
fix(notes): add 5 second timeout for release notes call (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
acburdine authored Dec 10, 2020
1 parent 2862388 commit 5edae63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/release-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = async (ctx, task) => {
let response;

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

0 comments on commit 5edae63

Please sign in to comment.