diff --git a/lib/all-products.js b/lib/all-products.js index 09e9d2070aae..b56dc4bee246 100644 --- a/lib/all-products.js +++ b/lib/all-products.js @@ -43,6 +43,12 @@ sortedProductIds.forEach(productId => { }) const externalProducts = { + cli: { + id: 'cli', + name: 'GitHub CLI', + href: 'https://cli.github.com/manual', + external: true + }, atom: { id: 'atom', name: 'Atom', diff --git a/tests/rendering/sidebar.js b/tests/rendering/sidebar.js index 6b52dc39888c..34733ae80336 100644 --- a/tests/rendering/sidebar.js +++ b/tests/rendering/sidebar.js @@ -24,7 +24,8 @@ describe('sidebar', () => { expect($githubPage('.sidebar li.sidebar-product > a').text().trim()).toBe('GitHub.com') }) - test('includes links to external products like Atom and Electron', async () => { + test('includes links to external products like the CLI, Atom, and Electron', async () => { + expect($homePage('.sidebar a[href="https://cli.github.com/manual"]')).toHaveLength(1) expect($homePage('.sidebar a[href="https://atom.io/docs"]')).toHaveLength(1) expect($homePage('.sidebar a[href="https://electronjs.org/docs"]')).toHaveLength(1) })