1
0
mirror of synced 2025-12-23 03:44:00 -05:00

check for redirect orphans (#23330)

* check for redirect orphans

Part of #1303

* timeout

* avoid external redirects in redirects_from too

* delete content/admin/advanced-security/viewing-your-github-advanced-security-usage.md

* remove from children: too

* remove some trailing slashes in redirect_froms

* fix a few more trailing slash redirects

* delete orphan pages
This commit is contained in:
Peter Bengtsson
2021-12-16 07:54:59 -05:00
committed by GitHub
parent 17e33bbb61
commit ed48eab88d
23 changed files with 116 additions and 228 deletions

View File

@@ -15,8 +15,6 @@ children:
- /enabling-github-advanced-security-for-your-enterprise - /enabling-github-advanced-security-for-your-enterprise
- /configuring-code-scanning-for-your-appliance - /configuring-code-scanning-for-your-appliance
- /configuring-secret-scanning-for-your-appliance - /configuring-secret-scanning-for-your-appliance
- /viewing-your-github-advanced-security-usage
- /overview-of-github-advanced-security-deployment - /overview-of-github-advanced-security-deployment
- /deploying-github-advanced-security-in-your-enterprise - /deploying-github-advanced-security-in-your-enterprise
--- ---

View File

@@ -1,33 +0,0 @@
---
title: Viewing your GitHub Advanced Security usage
intro: 'You can view usage of your {% data variables.product.prodname_GH_advanced_security %} license.'
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
product: '{% data reusables.gated-features.ghas %}'
versions:
ghes: '>=3.1'
type: how_to
topics:
- Advanced Security
- Enterprise
- Licensing
shortTitle: View Advanced Security usage
---
## About licenses for {% data variables.product.prodname_GH_advanced_security %}
{% data reusables.advanced-security.about-ghas-license-seats %} For more information, see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."
## Viewing license usage for {% data variables.product.prodname_GH_advanced_security %}
You can check how many seats your license includes and how many seats are currently in use.
{% data reusables.enterprise-accounts.access-enterprise %}
{% data reusables.enterprise-accounts.settings-tab %}
{% data reusables.enterprise-accounts.license-tab %}
The "{% data variables.product.prodname_GH_advanced_security %}" section shows details of the current usage. You can see the total number of seats used, as well as a table with the number of committers and unique committers for each organization.
![{% data variables.product.prodname_GH_advanced_security %} section of Enterprise license](/assets/images/help/billing/ghas-orgs-list-enterprise-ghes.png)
5. Optionally, click the name of an organization where you are an owner to display the security and analysis settings for the organization.
![Owned organization in {% data variables.product.prodname_GH_advanced_security %} section of enterprise billing settings](/assets/images/help/billing/ghas-orgs-list-enterprise-click-org.png)
6. On the "Security & analysis" settings page, scroll to the "{% data variables.product.prodname_GH_advanced_security %} repositories" section to see a detailed breakdown of usage by repository for this organization.
![{% data variables.product.prodname_GH_advanced_security %} repositories section](/assets/images/help/enterprises/settings-security-analysis-ghas-repos-list.png)
For more information, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)."

View File

@@ -2,8 +2,8 @@
title: Managing disruptive comments title: Managing disruptive comments
intro: 'You can {% ifversion fpt or ghec %}hide, edit,{% else %}edit{% endif %} or delete comments on issues, pull requests, and commits.' intro: 'You can {% ifversion fpt or ghec %}hide, edit,{% else %}edit{% endif %} or delete comments on issues, pull requests, and commits.'
redirect_from: redirect_from:
- /articles/editing-a-comment/ - /articles/editing-a-comment
- /articles/deleting-a-comment/ - /articles/deleting-a-comment
- /articles/managing-disruptive-comments - /articles/managing-disruptive-comments
- /github/building-a-strong-community/managing-disruptive-comments - /github/building-a-strong-community/managing-disruptive-comments
versions: versions:

View File

@@ -2,7 +2,7 @@
title: Keyboard shortcuts title: Keyboard shortcuts
intro: 'You can use keyboard shortcuts in {% data variables.product.prodname_desktop %}.' intro: 'You can use keyboard shortcuts in {% data variables.product.prodname_desktop %}.'
redirect_from: redirect_from:
- /desktop/getting-started-with-github-desktop/keyboard-shortcuts-in-github-desktop/ - /desktop/getting-started-with-github-desktop/keyboard-shortcuts-in-github-desktop
- /desktop/getting-started-with-github-desktop/keyboard-shortcuts - /desktop/getting-started-with-github-desktop/keyboard-shortcuts
- /desktop/installing-and-configuring-github-desktop/keyboard-shortcuts - /desktop/installing-and-configuring-github-desktop/keyboard-shortcuts
versions: versions:

View File

@@ -2,10 +2,10 @@
title: Receiving payment for app purchases title: Receiving payment for app purchases
intro: 'At the end of each month, you''ll receive payment for your {% data variables.product.prodname_marketplace %} listing.' intro: 'At the end of each month, you''ll receive payment for your {% data variables.product.prodname_marketplace %} listing.'
redirect_from: redirect_from:
- /apps/adding-integrations/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing/ - /apps/adding-integrations/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing
- /apps/marketplace/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing/ - /apps/marketplace/managing-pricing-and-payments-for-a-github-marketplace-listing/receiving-payment-for-a-github-marketplace-listing
- /apps/marketplace/pricing-payments-and-free-trials/receiving-payment-for-a-github-marketplace-listing/ - /apps/marketplace/pricing-payments-and-free-trials/receiving-payment-for-a-github-marketplace-listing
- /apps/marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings/ - /apps/marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings
- /marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings - /marketplace/selling-your-app/receiving-payment-for-github-marketplace-listings
- /developers/github-marketplace/receiving-payment-for-app-purchases - /developers/github-marketplace/receiving-payment-for-app-purchases
versions: versions:

View File

@@ -4,7 +4,7 @@ intro: 'Review common reasons that applications for the {% data variables.produc
redirect_from: redirect_from:
- /education/teach-and-learn-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved - /education/teach-and-learn-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved
- /github/teaching-and-learning-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved - /github/teaching-and-learning-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved
- /articles/why-was-my-application-for-a-student-developer-pack-denied/ - /articles/why-was-my-application-for-a-student-developer-pack-denied
- /articles/why-wasn-t-my-application-for-a-student-developer-pack-approved - /articles/why-wasn-t-my-application-for-a-student-developer-pack-approved
- /articles/why-wasnt-my-application-for-a-student-developer-pack-approved - /articles/why-wasnt-my-application-for-a-student-developer-pack-approved
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved - /education/explore-the-benefits-of-teaching-and-learning-with-github-education/why-wasnt-my-application-for-a-student-developer-pack-approved

View File

@@ -4,10 +4,10 @@ intro: 'If you''re an educator or a researcher, you can apply to receive {% data
redirect_from: redirect_from:
- /education/teach-and-learn-with-github-education/apply-for-an-educator-or-researcher-discount - /education/teach-and-learn-with-github-education/apply-for-an-educator-or-researcher-discount
- /github/teaching-and-learning-with-github-education/applying-for-an-educator-or-researcher-discount - /github/teaching-and-learning-with-github-education/applying-for-an-educator-or-researcher-discount
- /articles/applying-for-a-classroom-discount/ - /articles/applying-for-a-classroom-discount
- /articles/applying-for-a-discount-for-your-school-club/ - /articles/applying-for-a-discount-for-your-school-club
- /articles/applying-for-an-academic-research-discount/ - /articles/applying-for-an-academic-research-discount
- /articles/applying-for-a-discount-for-your-first-robotics-team/ - /articles/applying-for-a-discount-for-your-first-robotics-team
- /articles/applying-for-an-educator-or-researcher-discount - /articles/applying-for-an-educator-or-researcher-discount
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/apply-for-an-educator-or-researcher-discount - /education/explore-the-benefits-of-teaching-and-learning-with-github-education/apply-for-an-educator-or-researcher-discount
versions: versions:

View File

@@ -4,7 +4,7 @@ intro: Review common reasons that applications for an educator or researcher dis
redirect_from: redirect_from:
- /education/teach-and-learn-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved - /education/teach-and-learn-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
- /github/teaching-and-learning-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved - /github/teaching-and-learning-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
- /articles/why-was-my-application-for-an-educator-or-researcher-discount-denied/ - /articles/why-was-my-application-for-an-educator-or-researcher-discount-denied
- /articles/why-wasn-t-my-application-for-an-educator-or-researcher-discount-approved - /articles/why-wasn-t-my-application-for-an-educator-or-researcher-discount-approved
- /articles/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved - /articles/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved
- /education/explore-the-benefits-of-teaching-and-learning-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved - /education/explore-the-benefits-of-teaching-and-learning-with-github-education/why-wasnt-my-application-for-an-educator-or-researcher-discount-approved

View File

@@ -2,9 +2,9 @@
title: About custom domains and GitHub Pages title: About custom domains and GitHub Pages
intro: '{% data variables.product.prodname_pages %} supports using custom domains, or changing the root of your site''s URL from the default, like `octocat.github.io`, to any domain you own.' intro: '{% data variables.product.prodname_pages %} supports using custom domains, or changing the root of your site''s URL from the default, like `octocat.github.io`, to any domain you own.'
redirect_from: redirect_from:
- /articles/about-custom-domains-for-github-pages-sites/ - /articles/about-custom-domains-for-github-pages-sites
- /articles/about-supported-custom-domains/ - /articles/about-supported-custom-domains
- /articles/custom-domain-redirects-for-your-github-pages-site/ - /articles/custom-domain-redirects-for-your-github-pages-site
- /articles/about-custom-domains-and-github-pages - /articles/about-custom-domains-and-github-pages
- /github/working-with-github-pages/about-custom-domains-and-github-pages - /github/working-with-github-pages/about-custom-domains-and-github-pages
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'

View File

@@ -2,13 +2,13 @@
title: Configuring a custom domain for your GitHub Pages site title: Configuring a custom domain for your GitHub Pages site
intro: 'You can customize the domain name of your {% data variables.product.prodname_pages %} site.' intro: 'You can customize the domain name of your {% data variables.product.prodname_pages %} site.'
redirect_from: redirect_from:
- /articles/tips-for-configuring-an-a-record-with-your-dns-provider/ - /articles/tips-for-configuring-an-a-record-with-your-dns-provider
- /articles/adding-or-removing-a-custom-domain-for-your-github-pages-site/ - /articles/adding-or-removing-a-custom-domain-for-your-github-pages-site
- /articles/configuring-an-a-record-with-your-dns-provider/ - /articles/configuring-an-a-record-with-your-dns-provider
- /articles/using-a-custom-domain-with-github-pages/ - /articles/using-a-custom-domain-with-github-pages
- /articles/tips-for-configuring-a-cname-record/ - /articles/tips-for-configuring-a-cname-record
- /articles/setting-up-a-custom-domain-with-pages/ - /articles/setting-up-a-custom-domain-with-pages
- /articles/setting-up-a-custom-domain-with-github-pages/ - /articles/setting-up-a-custom-domain-with-github-pages
- /articles/configuring-a-custom-domain-for-your-github-pages-site - /articles/configuring-a-custom-domain-for-your-github-pages-site
- /github/working-with-github-pages/configuring-a-custom-domain-for-your-github-pages-site - /github/working-with-github-pages/configuring-a-custom-domain-for-your-github-pages-site
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'
@@ -24,4 +24,3 @@ children:
- /troubleshooting-custom-domains-and-github-pages - /troubleshooting-custom-domains-and-github-pages
shortTitle: Configure a custom domain shortTitle: Configure a custom domain
--- ---

View File

@@ -2,13 +2,13 @@
title: Managing a custom domain for your GitHub Pages site title: Managing a custom domain for your GitHub Pages site
intro: 'You can set up or update certain DNS records and your repository settings to point the default domain for your {% data variables.product.prodname_pages %} site to a custom domain.' intro: 'You can set up or update certain DNS records and your repository settings to point the default domain for your {% data variables.product.prodname_pages %} site to a custom domain.'
redirect_from: redirect_from:
- /articles/quick-start-setting-up-a-custom-domain/ - /articles/quick-start-setting-up-a-custom-domain
- /articles/setting-up-an-apex-domain/ - /articles/setting-up-an-apex-domain
- /articles/setting-up-a-www-subdomain/ - /articles/setting-up-a-www-subdomain
- /articles/setting-up-a-custom-domain/ - /articles/setting-up-a-custom-domain
- /articles/setting-up-an-apex-domain-and-www-subdomain/ - /articles/setting-up-an-apex-domain-and-www-subdomain
- /articles/adding-a-cname-file-to-your-repository/ - /articles/adding-a-cname-file-to-your-repository
- /articles/setting-up-your-pages-site-repository/ - /articles/setting-up-your-pages-site-repository
- /articles/managing-a-custom-domain-for-your-github-pages-site - /articles/managing-a-custom-domain-for-your-github-pages-site
- /github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site - /github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'

View File

@@ -2,9 +2,9 @@
title: Troubleshooting custom domains and GitHub Pages title: Troubleshooting custom domains and GitHub Pages
intro: 'You can check for common errors to resolve issues with custom domains or HTTPS for your {% data variables.product.prodname_pages %} site.' intro: 'You can check for common errors to resolve issues with custom domains or HTTPS for your {% data variables.product.prodname_pages %} site.'
redirect_from: redirect_from:
- /articles/my-custom-domain-isn-t-working/ - /articles/my-custom-domain-isn-t-working
- /articles/custom-domain-isn-t-working/ - /articles/custom-domain-isn-t-working
- /articles/troubleshooting-custom-domains/ - /articles/troubleshooting-custom-domains
- /articles/troubleshooting-custom-domains-and-github-pages - /articles/troubleshooting-custom-domains-and-github-pages
- /github/working-with-github-pages/troubleshooting-custom-domains-and-github-pages - /github/working-with-github-pages/troubleshooting-custom-domains-and-github-pages
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'

View File

@@ -3,12 +3,11 @@ title: GitHub Pages Documentation
shortTitle: GitHub Pages shortTitle: GitHub Pages
intro: 'You can create a website directly from a repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}.' intro: 'You can create a website directly from a repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}.'
redirect_from: redirect_from:
- /categories/20/articles/ - /categories/20/articles
- /categories/95/articles/ - /categories/95/articles
- /categories/github-pages-features/ - /categories/github-pages-features
- /pages/ - /categories/96/articles
- /categories/96/articles/ - /categories/github-pages-troubleshooting
- /categories/github-pages-troubleshooting/
- /categories/working-with-github-pages - /categories/working-with-github-pages
- /github/working-with-github-pages - /github/working-with-github-pages
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'
@@ -25,4 +24,3 @@ children:
- /setting-up-a-github-pages-site-with-jekyll - /setting-up-a-github-pages-site-with-jekyll
- /configuring-a-custom-domain-for-your-github-pages-site - /configuring-a-custom-domain-for-your-github-pages-site
--- ---

View File

@@ -2,8 +2,8 @@
title: About Jekyll build errors for GitHub Pages sites title: About Jekyll build errors for GitHub Pages sites
intro: 'If Jekyll encounters an error building your {% data variables.product.prodname_pages %} site locally or on {% data variables.product.product_name %}, you''ll receive an error message with more information.' intro: 'If Jekyll encounters an error building your {% data variables.product.prodname_pages %} site locally or on {% data variables.product.product_name %}, you''ll receive an error message with more information.'
redirect_from: redirect_from:
- /articles/viewing-jekyll-build-error-messages/ - /articles/viewing-jekyll-build-error-messages
- /articles/generic-jekyll-build-failures/ - /articles/generic-jekyll-build-failures
- /articles/about-jekyll-build-errors-for-github-pages-sites - /articles/about-jekyll-build-errors-for-github-pages-sites
- /github/working-with-github-pages/about-jekyll-build-errors-for-github-pages-sites - /github/working-with-github-pages/about-jekyll-build-errors-for-github-pages-sites
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'

View File

@@ -2,8 +2,8 @@
title: Adding a theme to your GitHub Pages site using Jekyll title: Adding a theme to your GitHub Pages site using Jekyll
intro: You can personalize your Jekyll site by adding and customizing a theme. intro: You can personalize your Jekyll site by adding and customizing a theme.
redirect_from: redirect_from:
- /articles/customizing-css-and-html-in-your-jekyll-theme/ - /articles/customizing-css-and-html-in-your-jekyll-theme
- /articles/adding-a-jekyll-theme-to-your-github-pages-site/ - /articles/adding-a-jekyll-theme-to-your-github-pages-site
- /articles/adding-a-theme-to-your-github-pages-site-using-jekyll - /articles/adding-a-theme-to-your-github-pages-site-using-jekyll
- /github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll - /github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'

View File

@@ -2,8 +2,8 @@
title: Setting a Markdown processor for your GitHub Pages site using Jekyll title: Setting a Markdown processor for your GitHub Pages site using Jekyll
intro: 'You can choose a Markdown processor to determine how Markdown is rendered on your {% data variables.product.prodname_pages %} site.' intro: 'You can choose a Markdown processor to determine how Markdown is rendered on your {% data variables.product.prodname_pages %} site.'
redirect_from: redirect_from:
- /articles/migrating-your-pages-site-from-maruku/ - /articles/migrating-your-pages-site-from-maruku
- /articles/updating-your-markdown-processor-to-kramdown/ - /articles/updating-your-markdown-processor-to-kramdown
- /articles/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll - /articles/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll
- /github/working-with-github-pages/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll - /github/working-with-github-pages/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'

View File

@@ -2,27 +2,27 @@
title: Troubleshooting Jekyll build errors for GitHub Pages sites title: Troubleshooting Jekyll build errors for GitHub Pages sites
intro: 'You can use Jekyll build error messages to troubleshoot problems with your {% data variables.product.prodname_pages %} site.' intro: 'You can use Jekyll build error messages to troubleshoot problems with your {% data variables.product.prodname_pages %} site.'
redirect_from: redirect_from:
- /articles/page-build-failed-missing-docs-folder/ - /articles/page-build-failed-missing-docs-folder
- /articles/page-build-failed-invalid-submodule/ - /articles/page-build-failed-invalid-submodule
- /articles/page-build-failed-missing-submodule/ - /articles/page-build-failed-missing-submodule
- /articles/page-build-failed-markdown-errors/ - /articles/page-build-failed-markdown-errors
- /articles/page-build-failed-config-file-error/ - /articles/page-build-failed-config-file-error
- /articles/page-build-failed-unknown-tag-error/ - /articles/page-build-failed-unknown-tag-error
- /articles/page-build-failed-tag-not-properly-terminated/ - /articles/page-build-failed-tag-not-properly-terminated
- /articles/page-build-failed-tag-not-properly-closed/ - /articles/page-build-failed-tag-not-properly-closed
- /articles/page-build-failed-file-does-not-exist-in-includes-directory/ - /articles/page-build-failed-file-does-not-exist-in-includes-directory
- /articles/page-build-failed-file-is-a-symlink/ - /articles/page-build-failed-file-is-a-symlink
- /articles/page-build-failed-symlink-does-not-exist-within-your-sites-repository/ - /articles/page-build-failed-symlink-does-not-exist-within-your-sites-repository
- /articles/page-build-failed-file-is-not-properly-utf-8-encoded/ - /articles/page-build-failed-file-is-not-properly-utf-8-encoded
- /articles/page-build-failed-invalid-post-date/ - /articles/page-build-failed-invalid-post-date
- /articles/page-build-failed-invalid-sass-or-scss/ - /articles/page-build-failed-invalid-sass-or-scss
- /articles/page-build-failed-invalid-highlighter-language/ - /articles/page-build-failed-invalid-highlighter-language
- /articles/page-build-failed-relative-permalinks-configured/ - /articles/page-build-failed-relative-permalinks-configured
- /articles/page-build-failed-syntax-error-in-for-loop/ - /articles/page-build-failed-syntax-error-in-for-loop
- /articles/page-build-failed-invalid-yaml-in-data-file/ - /articles/page-build-failed-invalid-yaml-in-data-file
- /articles/page-build-failed-date-is-not-a-valid-datetime/ - /articles/page-build-failed-date-is-not-a-valid-datetime
- /articles/troubleshooting-github-pages-builds/ - /articles/troubleshooting-github-pages-builds
- /articles/troubleshooting-jekyll-builds/ - /articles/troubleshooting-jekyll-builds
- /articles/troubleshooting-jekyll-build-errors-for-github-pages-sites - /articles/troubleshooting-jekyll-build-errors-for-github-pages-sites
- /github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites - /github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites
product: '{% data reusables.gated-features.pages %}' product: '{% data reusables.gated-features.pages %}'

View File

@@ -2,7 +2,7 @@
title: Guides title: Guides
intro: 'Learn about getting started with the REST API, authentication, and how to use the REST API for a variety of tasks.' intro: 'Learn about getting started with the REST API, authentication, and how to use the REST API for a variety of tasks.'
redirect_from: redirect_from:
- /guides/ - /guides
- /v3/guides - /v3/guides
versions: versions:
fpt: '*' fpt: '*'

View File

@@ -0,0 +1,46 @@
import path from 'path'
import { jest, beforeAll } from '@jest/globals'
import { loadPages } from '../../lib/page-data.js'
import Permalink from '../../lib/permalink.js'
describe('redirect orphans', () => {
let pageList
// Because calling `loadPages` will trigger a warmup, this can potentially
// be very slow in CI. So we need a timeout.
jest.setTimeout(60 * 1000)
beforeAll(async () => {
// Only doing English because they're the only files we do PRs for.
pageList = (await loadPages()).filter((page) => page.languageCode === 'en')
})
test('no page is a redirect in another file', () => {
const redirectFroms = new Map()
for (const page of pageList) {
for (const redirectFrom of page.redirect_from || []) {
if (redirectFrom.endsWith('/') && redirectFrom.startsWith('/')) {
console.warn(
`In ${path.join(
'content',
page.relativePath
)} redirect entry (${redirectFrom}) has a trailing slash`
)
}
redirectFroms.set(redirectFrom, page.relativePath)
}
}
const errors = []
for (const page of pageList) {
const asPath = Permalink.relativePathToSuffix(page.relativePath)
if (redirectFroms.has(asPath)) {
errors.push(
`${asPath} is a redirect_from in ${path.join('content', redirectFroms.get(asPath))}`
)
}
}
expect(errors.length, errors.join('\n')).toBe(0)
})
})

View File

@@ -1,29 +0,0 @@
---
title: Visualizar tu uso de GitHub Advanced Security
intro: 'Puedes ver el uso de tu licencia de {% data variables.product.prodname_GH_advanced_security %}.'
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
product: '{% data reusables.gated-features.ghas %}'
versions:
ghes: '>=3.1'
type: how_to
topics:
- Advanced Security
- Enterprise
- Licensing
shortTitle: Visualizar el uso de la Seguridad Avanzada
---
## Acerca de las licencias para {% data variables.product.prodname_GH_advanced_security %}
{% data reusables.advanced-security.about-ghas-license-seats %} Para obtener más información, consulta "[Acerca de la facturación para {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)".
## Visualizar el uso de licencia para la {% data variables.product.prodname_GH_advanced_security %}
Puedes verificar cuántas plazas incluye tu licencia y cuántas plazas se utilizan actualmente.
{% data reusables.enterprise-accounts.access-enterprise %}
{% data reusables.enterprise-accounts.settings-tab %}
{% data reusables.enterprise-accounts.license-tab %}
La sección de "{% data variables.product.prodname_GH_advanced_security %}" muestra los detalles del uso actual. Puedes ver la cantidad total de plazas utilizadas, así como una tabla con la cantidad de confirmantes y confirmantes únicos para cada organización. ![Sección de {% data variables.product.prodname_GH_advanced_security %} de la licencia empresarial](/assets/images/help/billing/ghas-orgs-list-enterprise-ghes.png)
5. Opcionalmente, haz clic en el nombre de una organización que te pertenezca para mostrar la configuración de seguridad y análisis para la organización. ![Organización que te pertenece en la sección de {% data variables.product.prodname_GH_advanced_security %} de la configuración de facturación empresarial](/assets/images/help/billing/ghas-orgs-list-enterprise-click-org.png)
6. En la página de configuración de "Seguridad & análisis", desplázate hacia la sección de "repositorios de {% data variables.product.prodname_GH_advanced_security %}" para ver un resumen detallado del uso de este repositorio en esta organización. ![{% data variables.product.prodname_GH_advanced_security %} repositories section](/assets/images/help/enterprises/settings-security-analysis-ghas-repos-list.png) Para obtener más información, consulta la sección "[Administrar la configuración de seguridad y análisis de tu organización](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)".

View File

@@ -1,33 +0,0 @@
---
title: Viewing your GitHub Advanced Security usage
intro: 'You can view usage of your {% data variables.product.prodname_GH_advanced_security %} license.'
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
product: '{% data reusables.gated-features.ghas %}'
versions:
ghes: '>=3.1'
type: how_to
topics:
- Advanced Security
- Enterprise
- Licensing
shortTitle: View Advanced Security usage
---
## About licenses for {% data variables.product.prodname_GH_advanced_security %}
{% data reusables.advanced-security.about-ghas-license-seats %} For more information, see "[About billing for {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)."
## Viewing license usage for {% data variables.product.prodname_GH_advanced_security %}
You can check how many seats your license includes and how many seats are currently in use.
{% data reusables.enterprise-accounts.access-enterprise %}
{% data reusables.enterprise-accounts.settings-tab %}
{% data reusables.enterprise-accounts.license-tab %}
The "{% data variables.product.prodname_GH_advanced_security %}" section shows details of the current usage. You can see the total number of seats used, as well as a table with the number of committers and unique committers for each organization.
![{% data variables.product.prodname_GH_advanced_security %} section of Enterprise license](/assets/images/help/billing/ghas-orgs-list-enterprise-ghes.png)
5. Optionally, click the name of an organization where you are an owner to display the security and analysis settings for the organization.
![Owned organization in {% data variables.product.prodname_GH_advanced_security %} section of enterprise billing settings](/assets/images/help/billing/ghas-orgs-list-enterprise-click-org.png)
6. On the "Security & analysis" settings page, scroll to the "{% data variables.product.prodname_GH_advanced_security %} repositories" section to see a detailed breakdown of usage by repository for this organization.
![{% data variables.product.prodname_GH_advanced_security %} repositories section](/assets/images/help/enterprises/settings-security-analysis-ghas-repos-list.png)
For more information, see "[Managing security and analysis settings for your organization](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)."

View File

@@ -1,29 +0,0 @@
---
title: Visualizar o seu uso do GitHub Advanced Security
intro: 'Você pode visualizar o uso de sua licença do {% data variables.product.prodname_GH_advanced_security %}.'
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
product: '{% data reusables.gated-features.ghas %}'
versions:
ghes: '>=3.1'
type: how_to
topics:
- Advanced Security
- Enterprise
- Licensing
shortTitle: Visualizar o uso avançado de segurança
---
## Sobre as licenças para {% data variables.product.prodname_GH_advanced_security %}
{% data reusables.advanced-security.about-ghas-license-seats %} Para obter mais informações, consulte "[Sobre a cobrança do {% data variables.product.prodname_GH_advanced_security %}](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)".
## Visualizar o uso de licença para {% data variables.product.prodname_GH_advanced_security %}
Você pode verificar quantas estações a sua licença inclui e quantas estações estão atualmente em uso.
{% data reusables.enterprise-accounts.access-enterprise %}
{% data reusables.enterprise-accounts.settings-tab %}
{% data reusables.enterprise-accounts.license-tab %}
A seção "{% data variables.product.prodname_GH_advanced_security %}" mostra os detalhes do uso atual. Você pode ver o número total de estações usadas, bem como uma tabela com o número de committers e committers únicos para cada organização. ![Seção de {% data variables.product.prodname_GH_advanced_security %} de licença empresarial](/assets/images/help/billing/ghas-orgs-list-enterprise-ghes.png)
5. Opcionalmente, clique no nome de uma organização em que você é um proprietário para exibir as configurações de segurança e análise para a organização. ![Organização proprietária na seção de {% data variables.product.prodname_GH_advanced_security %} das configurações de cobrança corporativa](/assets/images/help/billing/ghas-orgs-list-enterprise-click-org.png)
6. Na página de configurações "Análise de & segurança" desça até a seção "repositórios de {% data variables.product.prodname_GH_advanced_security %}" para ver uma descrição detalhada do uso por repositório para esta organização. ![{% data variables.product.prodname_GH_advanced_security %} repositories section](/assets/images/help/enterprises/settings-security-analysis-ghas-repos-list.png) Para obter mais informações, consulte "[Gerenciar configurações de segurança e análise para a sua organização](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)".

View File

@@ -1,29 +0,0 @@
---
title: 查看您的 GitHub 高级安全使用情况
intro: '您可以查看 {% data variables.product.prodname_GH_advanced_security %} 许可证的使用情况。'
permissions: 'Enterprise owners can view usage for {% data variables.product.prodname_GH_advanced_security %}.'
product: '{% data reusables.gated-features.ghas %}'
versions:
ghes: '>=3.1'
type: how_to
topics:
- Advanced Security
- Enterprise
- Licensing
shortTitle: 查看高级安全用法
---
## 关于 {% data variables.product.prodname_GH_advanced_security %} 的许可
{% data reusables.advanced-security.about-ghas-license-seats %} 更多信息请参阅“[关于 {% data variables.product.prodname_GH_advanced_security %} 的计费](/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security)”。
## 查看 {% data variables.product.prodname_GH_advanced_security %} 的许可证使用情况
您可以检查您的许可证包含多少个座位以及当前使用的座位数。
{% data reusables.enterprise-accounts.access-enterprise %}
{% data reusables.enterprise-accounts.settings-tab %}
{% data reusables.enterprise-accounts.license-tab %}
“{% data variables.product.prodname_GH_advanced_security %}”部分显示了当前使用详情。 您可以查看已使用的席位总数,以及一份表格,其中包含每个组织的提交者数量和唯一提交者。 ![企业许可证的 {% data variables.product.prodname_GH_advanced_security %} 部分](/assets/images/help/billing/ghas-orgs-list-enterprise-ghes.png)
5. (可选)单击您是所有者的组织的名称,以显示组织的安全和分析设置。 ![在企业帐单设置的 {% data variables.product.prodname_GH_advanced_security %} 部分中拥有的组织](/assets/images/help/billing/ghas-orgs-list-enterprise-click-org.png)
6. 在“Security & analysis安全性和分析”设置页面上滚动到“{% data variables.product.prodname_GH_advanced_security %} 仓库”部分以查看此组织的仓库使用明细。 ![{% data variables.product.prodname_GH_advanced_security %} repositories section](/assets/images/help/enterprises/settings-security-analysis-ghas-repos-list.png) 更多信息请参阅“[管理组织的安全性和分析设置](/organizations/keeping-your-organization-secure/managing-security-and-analysis-settings-for-your-organization)”。