Skip to content

Commit

Permalink
Update PAT and repository information
Browse files Browse the repository at this point in the history
  • Loading branch information
Intina47 committed Nov 28, 2023
1 parent 9670d8a commit 2526209
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions pages/api/latest-commit.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 2526209

Please sign in to comment.