Enterprise-CMCS/macpro-appian-connector

View on GitHub
docs/_deploy-metrics/lib/octokit.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Octokit } from "octokit";
import { createActionAuth } from "@octokit/auth-action";

export const octokit = new Octokit({
  authStrategy: process.env.PAT_TOKEN ? undefined : createActionAuth,
  auth: process.env.PAT_TOKEN,
});

export const octokitBranchesToUse =
  process.env.BRANCHES_TO_GENERATE?.split(",");