src/vs/code/electron-sandbox/issue/issueReporterMain.ts/IssueReporter/submitToGitHub
class IssueReporter:	private async submitToGitHub(issueTitle: string, issueBody: string, gitHubDetails: { owner: string; repositoryName: string }): Promise<boolean> {
		const url = `https://api.github.com/repos/${gitHubDetails.owner}/${gitHubDetails.repositoryName}/issues`;
		const init = {
			method: 'POST',
			body: JSON.stringify({
				title: issueTitle,
				body: issueBody
			}),
			headers: new Headers({
				'Content-Type': 'application/json',
				'Authorization': `Bearer ${this.configuration.data.githubAccessToken}`
			})
		};

		return new Promise((resolve, reject) => {
			window.fetch(url, init).then((response) => {
				if (response.ok) {
					response.json().then(result => {
						ipcRenderer.send('vscode:openExternal', result.html_url);
						ipcRenderer.send('vscode:closeIssueReporter');
						resolve(true);
					});
				} else {
					resolve(false);
				}
			});
		});
	}