Skip to content

Commit 09dc20b

Browse files
committed
Merge branch 'copilot-ga-megabranch' into landing-page
2 parents fe22921 + 61a777f commit 09dc20b

File tree

10 files changed

+18
-79
lines changed

10 files changed

+18
-79
lines changed

content/copilot/overview-of-github-copilot/about-github-copilot-telemetry.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

content/copilot/overview-of-github-copilot/github-copilot-in-practice.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

content/copilot/overview-of-github-copilot/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ versions:
77
topics:
88
- Copilot
99
children:
10-
- /about-github-copilot-telemetry
1110
- /about-github-copilot
12-
- /github-copilot-in-practice
1311
---

content/site-policy/github-terms/github-copilot-telemetry-terms.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

content/site-policy/github-terms/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ children:
1111
- /github-terms-for-additional-products-and-features
1212
- /github-community-guidelines
1313
- /github-community-forum-code-of-conduct
14-
- /github-copilot-telemetry-terms
1514
- /github-sponsors-additional-terms
1615
- /github-registered-developer-agreement
1716
- /github-marketplace-terms-of-service

tests/rendering/breadcrumbs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('breadcrumbs', () => {
1111

1212
describe('rendering', () => {
1313
test('top-level product pages have breadcrumbs', async () => {
14-
const $ = await getDOM('/github')
14+
const $ = await getDOM('/repositories')
1515
expect($('[data-testid=breadcrumbs]')).toHaveLength(2)
1616
})
1717

@@ -116,11 +116,11 @@ describe('breadcrumbs', () => {
116116

117117
describe('breadcrumbs object', () => {
118118
test('works on product index pages', async () => {
119-
const breadcrumbs = await getJSON('/en/github?json=breadcrumbs')
119+
const breadcrumbs = await getJSON('/en/repositories?json=breadcrumbs')
120120
const expected = [
121121
{
122-
href: '/en/github',
123-
title: 'GitHub',
122+
href: '/en/repositories',
123+
title: 'Repositories',
124124
},
125125
]
126126
expect(breadcrumbs).toEqual(expected)

tests/rendering/footer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('footer', () => {
88

99
describe('"contact us" link', () => {
1010
test('leads to support from articles', async () => {
11-
const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github`)
11+
const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/issues`)
1212
expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
1313
})
1414

@@ -20,7 +20,7 @@ describe('footer', () => {
2020

2121
describe('"contact us" link with nextjs', () => {
2222
test('leads to support from articles', async () => {
23-
const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/github?nextjs=`)
23+
const $ = await getDOM(`/en/${nonEnterpriseDefaultVersion}/issues?nextjs=`)
2424
expect($('a#contact-us').attr('href')).toBe('https://support.github.com/contact')
2525
})
2626
})

tests/rendering/products.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import nonEnterpriseDefaultVersion from '../../lib/non-enterprise-default-versio
66
describe('mobile-only products nav', () => {
77
const cases = [
88
// Note the unversioned homepage at `/` does not have a product selected in the mobile dropdown
9-
['/github', 'GitHub'],
9+
['/repositories', 'Repositories'],
1010
// Enterprise server
1111
['/en/enterprise/admin', 'Enterprise administrators'],
1212
[
@@ -41,8 +41,8 @@ describe('products middleware', () => {
4141

4242
test('adds res.context.currentProduct object', async () => {
4343
const currentProduct = await getJSON(
44-
`/en/${nonEnterpriseDefaultVersion}/github?json=currentProduct`
44+
`/en/${nonEnterpriseDefaultVersion}/actions?json=currentProduct`
4545
)
46-
expect(currentProduct).toBe('github')
46+
expect(currentProduct).toBe('actions')
4747
})
4848
})

tests/rendering/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('sidebar', () => {
3434
expect($githubPage('[data-testid=sidebar] [data-testid=sidebar-product]').length).toBe(1)
3535
expect(
3636
$githubPage('[data-testid=sidebar] [data-testid=sidebar-product] > a').text().trim()
37-
).toBe('GitHub')
37+
).toBe('Get started')
3838
})
3939

4040
test('includes links to external products like the Atom, Electron, and CodeQL', async () => {

tests/routing/redirects.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,19 @@ describe('redirects', () => {
3333

3434
test('dotcom homepage page.buildRedirects()', async () => {
3535
const page = await Page.init({
36-
relativePath: 'github/index.md',
36+
relativePath: 'issues/index.md',
3737
basePath: path.join(__dirname, '../../content'),
3838
languageCode: 'en',
3939
})
4040
const pageRedirects = page.buildRedirects()
41-
expect(pageRedirects['/articles']).toBe('/github')
42-
expect(pageRedirects['/common-issues-and-questions']).toBe('/github')
43-
expect(pageRedirects[`/enterprise-server@${enterpriseServerReleases.latest}/articles`]).toBe(
44-
`/enterprise-server@${enterpriseServerReleases.latest}`
45-
)
41+
expect(pageRedirects['/about-issues']).toBe('/issues')
42+
expect(pageRedirects['/creating-an-issue']).toBe('/issues')
4643
expect(
47-
pageRedirects[
48-
`/enterprise-server@${enterpriseServerReleases.latest}/common-issues-and-questions`
49-
]
50-
).toBe(`/enterprise-server@${enterpriseServerReleases.latest}`)
44+
pageRedirects[`/enterprise-server@${enterpriseServerReleases.latest}/about-issues`]
45+
).toBe(`/enterprise-server@${enterpriseServerReleases.latest}/issues`)
46+
expect(
47+
pageRedirects[`/enterprise-server@${enterpriseServerReleases.latest}/creating-an-issue`]
48+
).toBe(`/enterprise-server@${enterpriseServerReleases.latest}/issues`)
5149
})
5250

5351
test('converts single `redirect_from` strings values into arrays', async () => {

0 commit comments

Comments
 (0)