MCPcopy Create free account
hub / github.com/api3dao/airnode / initializeOctokit

Function initializeOctokit

docker/scripts/github.ts:11–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const TEAM = 'airnode-releasers';
10
11const initializeOctokit = () => {
12 const githubToken = process.env.GITHUB_TOKEN;
13 if (!githubToken) {
14 throw new Error('Missing GitHub token');
15 }
16
17 return new Octokit({
18 auth: githubToken,
19 });
20};
21
22const toggleMerge = async (flag: boolean) => {
23 logger.log(`Setting 'ENABLE_MERGE' flag to '${flag}' for repository '${OWNER}/${REPOSITORY}'`);

Callers 3

toggleMergeFunction · 0.85
createPullRequestFunction · 0.85
requestPullRequestReviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected