We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d946fc commit 675dba7Copy full SHA for 675dba7
scripts/build-types.ts
@@ -77,7 +77,7 @@ const headers = {
77
};
78
79
// Defaulting to the branch for now to get the latest docs-only changes
80
-let commit = process.argv[2] ?? process.env.GH_COMMIT ?? 'master';
+let commit = process.argv[2] ?? process.env.GH_COMMIT;
81
// Get the latest tag
82
if (!commit) {
83
const {body: tags} = await got('https://api.github.com/repos/obsproject/obs-websocket/tags', {
@@ -88,6 +88,7 @@ if (!commit) {
88
commit = tags[0].name as string;
89
}
90
91
+console.log(`Getting protocol for ${commit}`);
92
const {body: protocol} = await got<GeneratedProtocol>(`https://raw.githubusercontent.com/obsproject/obs-websocket/${commit}/docs/generated/protocol.json`, {
93
headers,
94
responseType: 'json',
0 commit comments