371 B14 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8export function createRequestHeaders(token: string): Record<string, string> {
9 return {
10 Authorization: `token ${token}`,
11 Accept: 'application/vnd.github.v3+json',
12 };
13}
14