From 252620943b635ea689593202e7b99a4ec5a0006e Mon Sep 17 00:00:00 2001 From: uzohou Date: Tue, 28 Nov 2023 02:23:38 +0000 Subject: [PATCH] Update PAT and repository information --- app/components/footer.tsx | 2 +- pages/api/latest-commit.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/footer.tsx b/app/components/footer.tsx index 3216037..e025331 100644 --- a/app/components/footer.tsx +++ b/app/components/footer.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import axios from 'axios'; -const YOUR_PAT = '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'; +const YOUR_PAT = process.env.GITHUB_PAT; type CommitData = { latestCommit: string; diff --git a/pages/api/latest-commit.js b/pages/api/latest-commit.js index 7d4d9bc..33777b5 100644 --- a/pages/api/latest-commit.js +++ b/pages/api/latest-commit.js @@ -1,9 +1,9 @@ // pages/api/latest-commit.js import axios from 'axios'; -const YOUR_PAT = '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'; -const OWNER = 'INtina47'; -const REPO = 'git-mamba'; +const YOUR_PAT = process.env.GITHUB_PAT; +const OWNER = process.env.OWNER; +const REPO = process.env.REPO; export default async function handler(req, res) { try {