MCPcopy Index your code
hub / github.com/wei/pull / processRepo

Function processRepo

src/processor/index.ts:19–34  ·  view source on GitHub ↗
(
  octokit: ProbotOctokit,
  jobData: SchedulerJobData,
  log: Logger,
)

Source from the content-addressed store, hash-verified

17}
18
19async function processRepo(
20 octokit: ProbotOctokit,
21 jobData: SchedulerJobData,
22 log: Logger,
23) {
24 const { owner, repo } = jobData;
25
26 const config = await getPullConfig(octokit, log, jobData);
27 if (!config) {
28 log.info(`⚠️ No config found, skipping`);
29 return;
30 }
31
32 const pull = new Pull(octokit, { owner, repo, logger: log }, config);
33 await pull.routineCheck();
34}
35
36export function getRepoProcessor(probot: Probot) {
37 return async function RepoJobProcessor(job: Job<SchedulerJobData>) {

Callers 1

getRepoProcessorFunction · 0.85

Calls 2

routineCheckMethod · 0.95
getPullConfigFunction · 0.90

Tested by

no test coverage detected