Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57cf72a

Browse files
committed
Merge branch 'copilot-ga-megabranch' into getting-started-articles
2 parents 472d7b4 + c44ce87 commit 57cf72a

7 files changed

Lines changed: 12 additions & 73 deletions

File tree

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/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)