octokit() — supabase Function Reference
Architecture documentation for the octokit() function in Troubleshooting.script.mjs from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 4ec0327c_d8a1_2c30_78ec_cdf4a77ef7e9["octokit()"] 34c95dd3_9362_604e_4560_37203bbf5659["createGithubDiscussion()"] 34c95dd3_9362_604e_4560_37203bbf5659 -->|calls| 4ec0327c_d8a1_2c30_78ec_cdf4a77ef7e9 c47627f8_4606_a55c_a1af_372a54f76a02["getAllTroubleshootingDiscussions()"] c47627f8_4606_a55c_a1af_372a54f76a02 -->|calls| 4ec0327c_d8a1_2c30_78ec_cdf4a77ef7e9 1dbedd6f_a4f8_c098_dc20_7090d63d4f6b["updateGithubDiscussion()"] 1dbedd6f_a4f8_c098_dc20_7090d63d4f6b -->|calls| 4ec0327c_d8a1_2c30_78ec_cdf4a77ef7e9 9d0b0ff2_ab52_c9d0_6f1a_38e258894bd1["rollbackGithubDiscussion()"] 9d0b0ff2_ab52_c9d0_6f1a_38e258894bd1 -->|calls| 4ec0327c_d8a1_2c30_78ec_cdf4a77ef7e9 style 4ec0327c_d8a1_2c30_78ec_cdf4a77ef7e9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Troubleshooting.script.mjs lines 50–63
function octokit() {
if (!octokitInstance) {
octokitInstance = new Octokit({
authStrategy: createAppAuth,
auth: {
appId: process.env.DOCS_GITHUB_APP_ID,
installationId: process.env.DOCS_GITHUB_APP_INSTALLATION_ID,
privateKey: process.env.DOCS_GITHUB_APP_PRIVATE_KEY,
},
})
}
return octokitInstance
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does octokit() do?
octokit() is a function in the supabase codebase.
What calls octokit()?
octokit() is called by 4 function(s): createGithubDiscussion, getAllTroubleshootingDiscussions, rollbackGithubDiscussion, updateGithubDiscussion.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free