mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Git - enable ESLint rule for git extensions (#277156)
* Initial commit with all exceptions * First pass of fixing * Add ignored files explicitly
This commit is contained in:
@@ -10,7 +10,15 @@ import { Octokit } from '@octokit/rest';
|
||||
import { getRepositoryFromQuery, getRepositoryFromUrl } from './util.js';
|
||||
import { getBranchLink, getVscodeDevHost } from './links.js';
|
||||
|
||||
function asRemoteSource(raw: any): RemoteSource {
|
||||
type RemoteSourceResponse = {
|
||||
readonly full_name: string;
|
||||
readonly description: string | null;
|
||||
readonly stargazers_count: number;
|
||||
readonly clone_url: string;
|
||||
readonly ssh_url: string;
|
||||
};
|
||||
|
||||
function asRemoteSource(raw: RemoteSourceResponse): RemoteSource {
|
||||
const protocol = workspace.getConfiguration('github').get<'https' | 'ssh'>('gitProtocol');
|
||||
return {
|
||||
name: `$(github) ${raw.full_name}`,
|
||||
|
||||
Reference in New Issue
Block a user