Files
issue-scheduler/src/index.ts

23 lines
482 B
TypeScript

import * as cli from "./cli.js"
const config = cli.parseArgs(process.argv)
// console.log(config)
import type { BaseApi } from "./apis";
import Gitea from "./apis/gitea.js"
import GitHub from "./apis/github.js";
let api: BaseApi
api = new Gitea(
"http://localhost:3000", "...",
"admin", "test_repo"
)
api = new GitHub(
"https://api.github.com", "...",
"TxFig", "test-api")
const result = await api.getIssueTemplates()
console.log(result.value ?? result.error)