We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45589b2 commit d6a3844Copy full SHA for d6a3844
.env
@@ -0,0 +1,2 @@
1
+VUE_APP_GITHUB_ORG=
2
+VUE_APP_GITHUB_TOKEN=
src/api/GitHubApi.ts
@@ -9,11 +9,11 @@ import { Metrics } from "../model/MetricsData";
9
10
export const getGitHubCopilotMetricsApi = async (): Promise<Metrics[]> => {
11
const response = await axios.get(
12
- "https://api.github.com/orgs/toussaintt/copilot/usage",
+ `https://api.github.com/orgs/${process.env.VUE_APP_GITHUB_ORG}/copilot/usage`,
13
{
14
headers: {
15
Accept: "application/vnd.github+json",
16
- Authorization: "Bearer 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",
+ Authorization: `Bearer ${process.env.VUE_APP_GITHUB_TOKEN}`,
17
"X-GitHub-Api-Version": "2022-11-28",
18
},
19
}
0 commit comments