<!DOCTYPE html>
<html>
<body>
File Name: <input type="text" id="filename" value="gamename">.html
<p>Enter file name above.</p>
<button onclick="send()">Try it</button>
<p id="demo"></p>
<script>
function send() {
  var name = document.getElementById("filename").value;
import { Octokit } from "https://cdn.skypack.dev/@octokit/rest";
    const octokit = new Octokit({
  auth: 'iputmypersonaltokenhere'
})
const filename = document.getElementById("filename").value;
await octokit.request('PUT /repos/{owner}/{repo}/contents/{path}', {
  owner: 'Skoolgq',
  repo: 'skoolgq.github.io',
  path: name + ".html",
  message: 'Test commits for GitHub API',
  committer: {
    name: 'Skool Developers',
    email: 'help@skool.gq'
  },
  content: 'bXkgbmV3IGZpbGUgY29udGVudHM='
})
}
</script>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.