mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 20:51:42 +00:00
build
This commit is contained in:
5
node_modules/@octokit/graphql/dist-src/graphql.js
generated
vendored
5
node_modules/@octokit/graphql/dist-src/graphql.js
generated
vendored
@@ -26,7 +26,12 @@ export function graphql(request, query, options) {
|
||||
}, {});
|
||||
return request(requestOptions).then((response) => {
|
||||
if (response.data.errors) {
|
||||
const headers = {};
|
||||
for (const key of Object.keys(response.headers)) {
|
||||
headers[key] = response.headers[key];
|
||||
}
|
||||
throw new GraphqlError(requestOptions, {
|
||||
headers,
|
||||
data: response.data,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user