Skip to content

Commit fba5e45

Browse files
committed
feat: GitHub API Integration
1 parent 827e0a5 commit fba5e45

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lib/github.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { graphql } from "@octokit/graphql";
2+
3+
if (!process.env.GITHUB_TOKEN) {
4+
throw new Error("Missing GITHUB_TOKEN");
5+
}
6+
7+
const client = graphql.defaults({
8+
headers: {
9+
authorization: `token ${process.env.GITHUB_TOKEN}`,
10+
},
11+
});
12+
13+

0 commit comments

Comments
 (0)