this.commentsController=vscode.comments.createCommentController(`browse-${this.remote.normalizedHost}`,`GitHub Pull Request for ${this.remote.normalizedHost}`);
Logger.debug(`Fetch all pull requests - done`,GitHubRepository.ID);
return{
items: pullRequests,
hasMorePages
};
}catch(e){
Logger.appendLine(`Fetching all pull requests failed: ${e}`,GitHubRepository.ID);
if(e.code===404){
// not found
vscode.window.showWarningMessage(`Fetching pull requests for remote '${this.remote.remoteName}' failed, please check if the url ${this.remote.url} is valid.`);