File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,14 @@ const headers = {
79
79
80
80
// Defaulting to the branch for now to get the latest docs-only changes
81
81
let commit = process . argv [ 2 ] ?? process . env . GH_COMMIT ?? 'master' ;
82
+ // Get the latest tag
82
83
if ( ! commit ) {
83
- const { body : release } = await got ( 'https://api.github.com/repos/obsproject/obs-websocket/releases/latest ' , {
84
+ const { body : tags } = await got ( 'https://api.github.com/repos/obsproject/obs-websocket/tags ' , {
84
85
headers,
85
86
responseType : 'json' ,
86
87
} ) ;
87
- commit = ( release as JsonObject ) . tag_name as string ;
88
+ // @ts -expect-error cba typing the response
89
+ commit = tags [ 0 ] . name as string ;
88
90
}
89
91
90
92
const { body : protocol } = await got < GeneratedProtocol > ( `https://raw.githubusercontent.com/obsproject/obs-websocket/${ commit } /docs/generated/protocol.json` , {
Original file line number Diff line number Diff line change @@ -838,6 +838,12 @@ export interface OBSEventTypes {
838
838
*/
839
839
studioModeEnabled : boolean ;
840
840
} ;
841
+ ScreenshotSaved : {
842
+ /**
843
+ * Path of the saved image file
844
+ */
845
+ savedScreenshotPath : string ;
846
+ } ;
841
847
VendorEvent : {
842
848
/**
843
849
* Name of the vendor emitting the event
You can’t perform that action at this time.
0 commit comments