Convert GitHub Gist to GitHub Repository
GitHub Gists give good visibility in search engines and GitHub Search. Gists integrate well using site generators including Hugo. However, GitHub Gists do not support GitHub Actions, Discussions, etc. Gists also do not allow directory structure. Once a Gist reaches a certain feature level or number of files, it may be more useful to share the content as a GitHub Repository.
Simply import the Gist URL to a new Repository. Once satisfied with the imported Repository, the Gist can be deleted, or leave a simple note with Repository URL.
An advantage of importing rather than just copying the files over is the Gist history is preserved as Git commits. If Git was used to manage the Gist, commit messages are preserved. Edits made to the Gist in the web editor don’t have commit messages.