meaningful github enterprise vendor display name
This commit is contained in:
parent
81f42abf6d
commit
5061c27299
10
src/vendor/github/vendormgr.ts
vendored
10
src/vendor/github/vendormgr.ts
vendored
|
@ -1,7 +1,6 @@
|
|||
import got from 'got';
|
||||
import { VendorManager, VENDOR_TYPE, Vendor, Issue, Repo, RepoManager } from '../../types';
|
||||
import { GHRepository, GHQuery } from './api-types';
|
||||
import assert from 'assert';
|
||||
import { VendorManager, VENDOR_TYPE, Vendor, RepoManager } from '../../types';
|
||||
import { GHQuery } from './api-types';
|
||||
import GitHubRepoManager from './repomgr';
|
||||
|
||||
export interface GitHubConfig {
|
||||
|
@ -16,7 +15,10 @@ export default class GitHubVendorManager implements VendorManager<GitHubConfig>
|
|||
|
||||
constructor(config: GitHubConfig) {
|
||||
this.vendor = {
|
||||
display: 'Microsoft GitHub',
|
||||
display:
|
||||
config.domain && config.domain !== 'github.com'
|
||||
? `Github Enterprise @ ${config.domain}`
|
||||
: 'Microsoft GitHub',
|
||||
type: VENDOR_TYPE.GITHUB,
|
||||
domain: config.domain || 'github.com',
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue