You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncfileContents(path: string,ref?: string): Promise<string>{// Use head of PR (current state of PR) if no ref passedif(!ref){constpr=awaitthis.getPullRequestInfo()constprJSON=awaitpr.json()ref=prJSON.head.ref}constfileMetadata=awaitthis.getFileContents(path,ref)constdata=awaitfileMetadata.json()constbuffer=newBuffer(data.content,"base64")returnbuffer.toString()}
and the names of the functions don't really mean too much. Perhaps the answer is that the the verb is put before, then the return type at the end: turning getReviewerRequests into getReviewerRequestsJSON. It may make sense to consider that two functions:
It's a bit of a mess in there:
some return JSON
some return the fetch call
some return a string
and the names of the functions don't really mean too much. Perhaps the answer is that the the verb is put before, then the return type at the end: turning
getReviewerRequests
intogetReviewerRequestsJSON
. It may make sense to consider that two functions:The text was updated successfully, but these errors were encountered: