Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 | import { GITHUB_ORG, GITHUB_REPO } from '@constants/index'; import { Endpoints } from '@octokit/types'; import axios from 'axios'; export type GithubReleases = Endpoints['GET /repos/{owner}/{repo}/releases']['response']['data']; export async function checkForNewRelease() { const resp = await axios.get<GithubReleases>( `https://api.github.com/repos/${GITHUB_ORG}/${GITHUB_REPO}/releases` ); return resp.data; } |