diff --git a/__tests__/github.test.ts b/__tests__/github.test.ts index b5904a15..2f7a0442 100644 --- a/__tests__/github.test.ts +++ b/__tests__/github.test.ts @@ -11,7 +11,7 @@ describe('GitHub', () => { expect(meta.url).toBeDefined(); expect(meta.isForkedFromBase).toEqual(false); expect(meta.label).toBeDefined(); - expect(meta.title).toBeDefined(); + expect(meta.description).toBeDefined(); expect(meta.isBehind).toEqual(false); expect(meta.isBaseRepo).toBe(true); }); @@ -29,7 +29,7 @@ describe('GitHub', () => { expect(meta.url).toBeDefined(); expect(meta.isForkedFromBase).toEqual(false); expect(meta.label).toEqual('Unknown'); - expect(meta.title).toEqual('Unknown'); + expect(meta.description).toEqual('Unknown'); expect(meta.isBehind).toBeUndefined(); }); it('handles fetch errors', async () => { @@ -41,7 +41,7 @@ describe('GitHub', () => { expect(meta.url).toBeDefined(); expect(meta.isForkedFromBase).toEqual(false); expect(meta.label).toEqual('Unknown'); - expect(meta.title).toEqual('Unknown'); + expect(meta.description).toEqual('Unknown'); expect(meta.isBehind).toBeUndefined(); }); }); diff --git a/src/admin/github/index.ts b/src/admin/github/index.ts index 46f14a31..9213f0ae 100644 --- a/src/admin/github/index.ts +++ b/src/admin/github/index.ts @@ -116,11 +116,6 @@ const getGitHubMeta = async (params: RepoParams) => { const url = getGitHubRepoUrl(params); const isBaseRepo = isRepoBaseRepo(params); - console.log(getGitHubApiCompareToCommitUrl({ - ...params, - commit: 'e3745e24e8c54e35aee1f54b66d1ee710e7803e0', - })); - const [ isForkedFromBase, behindBy, @@ -145,7 +140,9 @@ const getGitHubMeta = async (params: RepoParams) => { ? FALLBACK_TEXT : isBehind ? `This fork is ${behindBy} commit${behindBy === 1 ? '' : 's'} behind.` - : 'This fork is up to date.'; + : isBaseRepo + ? 'This build is up to date.' + : 'This fork is up to date.'; return { url,