From 74b3f9732a44ca226ae0881a3b96560cbde6e6c2 Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:38:56 +0000 Subject: [PATCH 1/2] Update src/dashboard.html --- src/dashboard.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/dashboard.html diff --git a/src/dashboard.html b/src/dashboard.html new file mode 100644 index 0000000..f18202c --- /dev/null +++ b/src/dashboard.html @@ -0,0 +1,11 @@ + + + + + + Pixeebot Activity Dashboard + + + + + \ No newline at end of file From 6337c0ecd3d5de7b15e26f35cc1adb31686a3fa7 Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:39:02 +0000 Subject: [PATCH 2/2] Update src/githubApiIntegration.js --- src/githubApiIntegration.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/githubApiIntegration.js diff --git a/src/githubApiIntegration.js b/src/githubApiIntegration.js new file mode 100644 index 0000000..32a70d2 --- /dev/null +++ b/src/githubApiIntegration.js @@ -0,0 +1,10 @@ +// Function to fetch data from GitHub API +async function fetchGitHubData(endpoint) { + const response = await fetch(`https://api.github.com/repos/your-repo/${endpoint}`); + if (!response.ok) { + throw new Error('Network response was not ok'); + } + return await response.json(); +} + +export { fetchGitHubData }; \ No newline at end of file