We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 827e0a5 commit fba5e45Copy full SHA for fba5e45
1 file changed
lib/github.ts
@@ -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