Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用Octokit.net创建一个新的 NewGist,但是我似乎找不到指定语言(文本、C#、C++、Java 等)的方法,因此无论何时创建它都只是将其创建为文本。
我是否遗漏了什么,或者这个 API 没有指定它的功能?谢谢!
根据我刚刚执行的测试,看起来好像是从文件名的扩展名中推断出包含要点的文件的语言。
例如,我刚刚使用包含 install.ps1 文件名的 octokit 创建了一个要点。在检查创建的要点时,语言下拉菜单已经使用 PowerShell 预先选择。