export async function create_gist(filename, description, content) {
const files = {};
files[filename] = { content };
const response = await fetch("https://api.github.com/gists", {
method: "POST",
headers: {
Accept: "application/vnd.github.v3+json",
"Content-Type": "application/json",
Authorization: `Basic ${config.github_username}:${config.github_token}`,
},
body: JSON.stringify({ description, files }),
});
}