export type DeleteApiReposOwnerRepoCommentsCommentIdReactionsReactionIdArgs = {owner: string, repo: string, comment_id: number, reaction_id: number}; export type DeleteApiReposOwnerRepoCommentsCommentIdReactionsReactionIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete a commit comment reaction * * DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id} */ export const deleteApiReposOwnerRepoCommentsCommentIdReactionsReactionId = async (args: DeleteApiReposOwnerRepoCommentsCommentIdReactionsReactionIdArgs, options?: DeleteApiReposOwnerRepoCommentsCommentIdReactionsReactionIdOptions) => { const {baseUrl = "http://HOSTNAME/api/v3", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/repos/${encodeURIComponent(String(args.owner))}/${encodeURIComponent(String(args.repo))}/comments/${encodeURIComponent(String(args.comment_id))}/reactions/${encodeURIComponent(String(args.reaction_id))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };