Skip to content

Commit

Permalink
fix: 🐛 remove dep
Browse files Browse the repository at this point in the history
  • Loading branch information
i7eo committed Jun 27, 2024
1 parent 01b62b5 commit 35f2b7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/github/src/graphql.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import process from 'node:process'
import { Octokit } from '@octokit/core'
import { REPO_BRANCH, REPO_NAME, REPO_OWNER } from '@unconfig/meta'

export const githubApi: InstanceType<typeof Octokit> = new Octokit({
auth: process.env.TOKEN,
Expand Down Expand Up @@ -49,8 +48,8 @@ export async function fetchCommits(
options: FetchCommitsOptions[],
): Promise<Record<string, ApiResult>> {
const query = `{
repository(owner: "${REPO_OWNER}", name: "${REPO_NAME}") {
object(expression: "${REPO_BRANCH}") {
repository(owner: "i7eo", name: "unconfig") {
object(expression: "master") {
... on Commit {
${options
.map(({ path, after }, index) => {
Expand Down

0 comments on commit 35f2b7b

Please sign in to comment.