plugins/rocket-preset-apollo-elements/liquid/github.js
Function githubTag
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function githubTag() {
return {
parse(tagToken) {
this.repo = tagToken.args;
},
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async render() {
const url = new URL(`/repos/${this.repo}`, 'https://api.github.com/');
const headers = { 'Accept': 'application/vnd.github.v3+json' };
const repo = await fetch(url.toString(), { headers }).then(x => x.json());
return `