Skip to content

Commit

Permalink
Merge pull request #36570 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Feb 28, 2025
2 parents 08e8e07 + bf209e9 commit aea537c
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 19 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
# - links
- observability
# - open-source
- pageinfo
# - pages
- products
- redirects
Expand Down Expand Up @@ -176,7 +175,7 @@ jobs:

- uses: ./.github/actions/precompute-pageinfo
# Only the 'pageinfo' tests include end-to-end tests about this.
if: ${{ matrix.name == 'pageinfo' }}
if: ${{ matrix.name == 'article-api' }}
env:
ROOT: src/fixtures/fixtures

Expand All @@ -194,6 +193,6 @@ jobs:
# tests run only in English. The exception is the
# `languages` suite which needs all languages to be set up.
ENABLED_LANGUAGES: ${{ matrix.name == 'languages' && 'all' || '' }}
ROOT: ${{ (matrix.name == 'fixtures' || matrix.name == 'pageinfo' || matrix.name == 'landings' ) && 'src/fixtures/fixtures' || '' }}
TRANSLATIONS_FIXTURE_ROOT: ${{ (matrix.name == 'fixtures' || matrix.name == 'pageinfo') && 'src/fixtures/fixtures/translations' || '' }}
ROOT: ${{ (matrix.name == 'fixtures' || matrix.name == 'article-api' || matrix.name == 'landings' ) && 'src/fixtures/fixtures' || '' }}
TRANSLATIONS_FIXTURE_ROOT: ${{ (matrix.name == 'fixtures' || matrix.name == 'article-api') && 'src/fixtures/fixtures/translations' || '' }}
run: npm test -- src/${{ matrix.name }}/tests/
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ Why is the output of this code so much higher than expected? Please explain in d
To fix this error, {% data variables.product.prodname_copilot_short %} will suggest code that removes the extra `factorial` from the equation, or that changes the `*=` operator to `=`.
{% note %}
Did you successfully debug `bugged_factorial_finder.py`?
<a href="https://docs.github.io/success-test/yes.html" target="_blank" class="btn btn-outline mt-3 mr-3 no-underline"><span>Yes</span></a> <a href="https://docs.github.io/success-test/no.html" target="_blank" class="btn btn-outline mt-3 mr-3 no-underline"><span>No</span></a>
{% endnote %}
## Debugging your own project
Now that you've practiced debugging some simple programs with {% data variables.product.prodname_copilot_short %}, you can use the same methodologies to find and fix bugs hiding in your own work.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"playwright-test": "playwright test --config src/fixtures/playwright.config.ts --project=\"Google Chrome\"",
"post-lints": "tsx src/content-linter/scripts/post-lints.js",
"postinstall": "cp package-lock.json .installed.package-lock.json && echo \"Updated .installed.package-lock.json\" # see husky/post-checkout and husky/post-merge",
"precompute-pageinfo": "tsx src/pageinfo/scripts/precompute-pageinfo.ts",
"precompute-pageinfo": "tsx src/article-api/scripts/precompute-pageinfo.ts",
"prepare": "husky src/workflows/husky",
"prettier": "prettier -w \"**/*.{ts,tsx,js,mjs,scss,yml,yaml}\"",
"prettier-check": "prettier -c \"**/*.{ts,tsx,js,mjs,scss,yml,yaml}\"",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { program, Option } from 'commander'

import { languageKeys } from 'src/languages/lib/languages.js'
import { loadPages, loadUnversionedTree } from 'src/frame/lib/page-data.js'
import { CACHE_FILE_PATH, getPageInfo } from '../middleware'
import { CACHE_FILE_PATH, getPageInfo } from '../middleware/pageinfo'

program
.description('Generates a JSON file with precompute pageinfo data by pathname')
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/frame/middleware/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import events from '@/events/middleware.js'
import anchorRedirect from '@/rest/api/anchor-redirect.js'
import aiSearch from '@/search/middleware/ai-search'
import search from '@/search/middleware/search-routes.js'
import pageInfo from '@/pageinfo/middleware'
import pageInfo from '#src/article-api/middleware/pageinfo.ts'
import pageList from '@/article-api/middleware/pagelist'
import webhooks from '@/webhooks/middleware/webhooks.js'
import { ExtendedRequest } from '@/types'
Expand Down
8 changes: 4 additions & 4 deletions src/graphql/data/fpt/schema.docs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -38632,8 +38632,8 @@ Require all commits be made to a non-target branch and submitted via a pull requ
"""
type PullRequestParameters {
"""
When merging pull requests, you can allow any combination of merge commits,
squashing, or rebasing. At least one option must be enabled.
Array of allowed merge methods. Allowed values include `merge`, `squash`, and
`rebase`. At least one option must be enabled.
"""
allowedMergeMethods: [String!]

Expand Down Expand Up @@ -38668,8 +38668,8 @@ Require all commits be made to a non-target branch and submitted via a pull requ
"""
input PullRequestParametersInput {
"""
When merging pull requests, you can allow any combination of merge commits,
squashing, or rebasing. At least one option must be enabled.
Array of allowed merge methods. Allowed values include `merge`, `squash`, and
`rebase`. At least one option must be enabled.
"""
allowedMergeMethods: [String!]

Expand Down
4 changes: 2 additions & 2 deletions src/graphql/data/fpt/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -53134,7 +53134,7 @@
"fields": [
{
"name": "allowedMergeMethods",
"description": "<p>When merging pull requests, you can allow any combination of merge commits,\nsquashing, or rebasing. At least one option must be enabled.</p>",
"description": "<p>Array of allowed merge methods. Allowed values include <code>merge</code>, <code>squash</code>, and\n<code>rebase</code>. At least one option must be enabled.</p>",
"type": "[String!]",
"id": "string",
"kind": "scalars",
Expand Down Expand Up @@ -101096,7 +101096,7 @@
"inputFields": [
{
"name": "allowedMergeMethods",
"description": "<p>When merging pull requests, you can allow any combination of merge commits,\nsquashing, or rebasing. At least one option must be enabled.</p>",
"description": "<p>Array of allowed merge methods. Allowed values include <code>merge</code>, <code>squash</code>, and\n<code>rebase</code>. At least one option must be enabled.</p>",
"type": "[String!]",
"id": "string",
"kind": "scalars",
Expand Down
8 changes: 4 additions & 4 deletions src/graphql/data/ghec/schema.docs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -38632,8 +38632,8 @@ Require all commits be made to a non-target branch and submitted via a pull requ
"""
type PullRequestParameters {
"""
When merging pull requests, you can allow any combination of merge commits,
squashing, or rebasing. At least one option must be enabled.
Array of allowed merge methods. Allowed values include `merge`, `squash`, and
`rebase`. At least one option must be enabled.
"""
allowedMergeMethods: [String!]

Expand Down Expand Up @@ -38668,8 +38668,8 @@ Require all commits be made to a non-target branch and submitted via a pull requ
"""
input PullRequestParametersInput {
"""
When merging pull requests, you can allow any combination of merge commits,
squashing, or rebasing. At least one option must be enabled.
Array of allowed merge methods. Allowed values include `merge`, `squash`, and
`rebase`. At least one option must be enabled.
"""
allowedMergeMethods: [String!]

Expand Down
4 changes: 2 additions & 2 deletions src/graphql/data/ghec/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -53134,7 +53134,7 @@
"fields": [
{
"name": "allowedMergeMethods",
"description": "<p>When merging pull requests, you can allow any combination of merge commits,\nsquashing, or rebasing. At least one option must be enabled.</p>",
"description": "<p>Array of allowed merge methods. Allowed values include <code>merge</code>, <code>squash</code>, and\n<code>rebase</code>. At least one option must be enabled.</p>",
"type": "[String!]",
"id": "string",
"kind": "scalars",
Expand Down Expand Up @@ -101096,7 +101096,7 @@
"inputFields": [
{
"name": "allowedMergeMethods",
"description": "<p>When merging pull requests, you can allow any combination of merge commits,\nsquashing, or rebasing. At least one option must be enabled.</p>",
"description": "<p>Array of allowed merge methods. Allowed values include <code>merge</code>, <code>squash</code>, and\n<code>rebase</code>. At least one option must be enabled.</p>",
"type": "[String!]",
"id": "string",
"kind": "scalars",
Expand Down

0 comments on commit aea537c

Please sign in to comment.