Skip to content

Instantly share code, notes, and snippets.

@taras
Last active February 10, 2023 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taras/e1f3d56ac650fbc6707bf6bcf0a0e8e3 to your computer and use it in GitHub Desktop.
Save taras/e1f3d56ac650fbc6707bf6bcf0a0e8e3 to your computer and use it in GitHub Desktop.
function useComposer() {
const github = // useApi(Scm)
const token = github.token
return {
async getRepositories() {
return fetch(.../repositoriess)
},
async getFeatures() {
return fetch(.../features)
},
async getBranches() {
return fetch(.../branches)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment