Skip to content

Commit 675dba7

Browse files
committed
Update types for [email protected]
1 parent 6d946fc commit 675dba7

File tree

2 files changed

+701
-79
lines changed

2 files changed

+701
-79
lines changed

scripts/build-types.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const headers = {
7777
};
7878

7979
// Defaulting to the branch for now to get the latest docs-only changes
80-
let commit = process.argv[2] ?? process.env.GH_COMMIT ?? 'master';
80+
let commit = process.argv[2] ?? process.env.GH_COMMIT;
8181
// Get the latest tag
8282
if (!commit) {
8383
const {body: tags} = await got('https://api.github.com/repos/obsproject/obs-websocket/tags', {
@@ -88,6 +88,7 @@ if (!commit) {
8888
commit = tags[0].name as string;
8989
}
9090

91+
console.log(`Getting protocol for ${commit}`);
9192
const {body: protocol} = await got<GeneratedProtocol>(`https://raw.githubusercontent.com/obsproject/obs-websocket/${commit}/docs/generated/protocol.json`, {
9293
headers,
9394
responseType: 'json',

0 commit comments

Comments
 (0)