UNPKG

@dappnode/dappnodesdk

Version:

dappnodesdk is a tool to make the creation of new dappnode packages as simple as possible. It helps to initialize and publish in ethereum blockchain

17 lines 751 B
import { branchNameRoot } from "../../../../params.js"; import { Github } from "../../../../providers/github/Github.js"; export async function getGithubSettings(dir, upstreamSettings) { const thisRepo = Github.fromLocal(dir); const repoData = await thisRepo.getRepo(); const branch = getBumpBranch(upstreamSettings); return { repo: thisRepo, repoData, ...branch }; } function getBumpBranch(upstreamSettings) { const branchName = branchNameRoot + Array.from(Object.values(upstreamSettings)) .map(({ repo, githubVersion }) => `${repo}@${githubVersion}`) .join(","); const branchRef = `refs/heads/${branchName}`; return { branchName, branchRef }; } //# sourceMappingURL=getGithubSettings.js.map