From 0d338e5fd61bd88edd6cd975143ff889d5203aa8 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 31 Mar 2020 11:24:48 -0400 Subject: [PATCH] Project Management Automation: Add request User-Agent header --- .../project-management-automation/lib/has-wordpress-profile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/project-management-automation/lib/has-wordpress-profile.js b/packages/project-management-automation/lib/has-wordpress-profile.js index 4c81cd53991726..cb2adfdba71e0b 100644 --- a/packages/project-management-automation/lib/has-wordpress-profile.js +++ b/packages/project-management-automation/lib/has-wordpress-profile.js @@ -32,6 +32,9 @@ async function hasWordPressProfile( githubUsername ) { hostname: BASE_PROFILE_LOOKUP_API_HOSTNAME, path: BASE_PROFILE_LOOKUP_API_BASE_PATH + githubUsername, method: 'HEAD', + headers: { + 'User-Agent': 'Gutenberg/project-management-automation', + }, }; request( options, ( res ) => resolve( res.statusCode === 200 ) )