Skip to content

Commit dff5188

Browse files
authored
Merge pull request #46014 from github/repo-sync
Repo sync
2 parents c574b79 + 9e9e018 commit dff5188

37 files changed

Lines changed: 2059 additions & 87 deletions

.github/instructions/content-guidelines.instructions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ The strategic priority is simplification: create less content and remove content
1919
* Would a typical internet user figure this out on their own by exploring the UI?
2020
* Is the information presented at the moment the reader actually needs it?
2121

22+
Look for content to remove whether or not you were asked to, and don't add non-essential content in the first place. Before you cut, name the reader who would fail without it and how they would fail. If you cannot name a specific failure, cut it.
23+
2224
## Give opinionated, actionable guidance
2325

2426
This applies whenever you give the reader advice or present ways to accomplish a task.
@@ -72,4 +74,5 @@ These apply to the prose in an article (intros and explanatory text), not to str
7274
* Write for the one reader scenario the article targets, for example a particular deployment configuration (GHEC with EMUs vs. Classic) or a particular type of reader (an open source maintainer vs. an enterprise developer). When the article has a content design plan, target the audience it identifies rather than inventing one; for small edits without a plan, follow the audience the existing article is clearly written for. Do not branch content to serve multiple audiences; readers in other scenarios can adapt the guidance. The exception is version differences: when in-article `{% ifversion %}` branching is genuinely required (see the versioning rules in `content.instructions.md`), it is not a scannability violation.
7375
* Ruthlessly minimize links. Only link when you actively want most readers to follow it in the ideal scenario. No "just in case" links. Links that build a logical user journey are exactly the kind to keep, for example a Prerequisites link that sends the reader to setup they need first, or a Next steps link that points them to the natural follow-on task.
7476
* Ruthlessly minimize alerts (notes, tips, warnings): more than one per article should be exceptional, and crowding several into one section is worse than spreading them out. Keep each to 1-2 sentences. Don't open an article or section with an alert unless the reader needs it before the surrounding content. Prefer folding a useful alert into the prose over deleting it, but first apply this test: if the reader must actually notice it to use the page correctly, keep it as an alert (don't fold or count it), since folding defeats its purpose. This covers, for example, critical warnings, plan or availability constraints, public preview notices, and cues that orient the reader to how the page works or which content applies to them.
75-
* Prefer short sentences and paragraphs, generous white space, and formatting like bold and tables to highlight key information. Use a table only for genuinely complex data that belongs in a tabular format; do not add a table that repeats information already stated more clearly in prose.
77+
* Ruthlessly minimize screenshots. Only add one, or ask a writer to add one, when a UI element is genuinely hard to find: small, hidden until something is opened, or ambiguous among competing options. A mention of screenshots in an issue or PR description is not a reason.
78+
* Prefer short sentences and paragraphs, generous white space, and formatting like bold and tables to highlight key information. Keep each sentence to one idea: where a sentence carries two, split it into two sentences rather than trimming it. Use a table only for genuinely complex data that belongs in a tabular format; do not add a table that repeats information already stated more clearly in prose.

.github/workflows/sync-sdk-docs.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,26 @@ jobs:
5050
- name: Checkout docs-internal
5151
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5252

53+
# `preserve-redirects.ts` reads the pre-sync state from `git HEAD` to learn
54+
# which URLs are currently live. That is only a valid baseline when HEAD is
55+
# the published branch. `pull_request` runs are safe because they never
56+
# publish, but a `workflow_dispatch` from another branch would publish while
57+
# comparing against that branch's tree, writing stale redirects into a real
58+
# PR. Fail early rather than let the run reach the push step.
59+
- name: Verify publishing runs start from the default branch
60+
if: github.event_name != 'pull_request' && inputs.dry_run != 'true'
61+
run: |
62+
if [ "$GITHUB_REF_NAME" != "$DEFAULT_BRANCH" ]; then
63+
echo "::error::This run would push and open a PR, but it started from" \
64+
"'$GITHUB_REF_NAME' rather than the default branch '$DEFAULT_BRANCH'." \
65+
"HEAD is the baseline for redirect preservation, so syncing from another" \
66+
"branch can drop or invent redirects. Re-run from '$DEFAULT_BRANCH', or" \
67+
"use the dry_run input to test from a branch."
68+
exit 1
69+
fi
70+
env:
71+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
72+
5373
- name: Fetch SDK docs from copilot-sdk
5474
env:
5575
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
@@ -91,6 +111,22 @@ jobs:
91111
--content-dir content \
92112
--sdk-docs-dir "$SDK_DOCS_TARGET"
93113
114+
- name: Preserve redirects
115+
run: |
116+
# `--git-ref HEAD` is the record of which URLs are currently live. On
117+
# publishing runs a preceding step has verified HEAD is the default
118+
# branch, and the sync branch is only created later with `checkout -B`.
119+
# On `pull_request` runs HEAD is the merge commit instead, which is fine
120+
# because those runs are dry-run only.
121+
#
122+
# A removed page that needs a redirect decision should still produce a
123+
# PR, because the PR is where that decision gets made and committed. The
124+
# script still writes the at-risk URLs and a copy-pasteable
125+
# `redirect_from` block to the run summary either way.
126+
npx tsx src/workflows/sync-sdk-docs/preserve-redirects.ts \
127+
--sdk-docs-dir "$SDK_DOCS_TARGET" \
128+
--git-ref HEAD
129+
94130
- name: Convert Mermaid diagrams to PNG
95131
env:
96132
PUPPETEER_CHROMIUM_REVISION: ''
@@ -165,7 +201,7 @@ jobs:
165201
${{ env.ASSETS_TARGET }}
166202
retention-days: 7
167203

168-
# --- Push and PR (only on schedule/dispatch, not dry-run, and changes exist) ---
204+
# --- Push and PR (only on dispatch, not dry-run, and changes exist) ---
169205
- name: Commit and push
170206
if: >-
171207
env.has_changes == 'true'
@@ -212,7 +248,7 @@ jobs:
212248
- Normalizes code fence languages and list formatting
213249
214250
> [!NOTE]
215-
> This PR is auto-generated. Do not edit it directly — make changes in the [copilot-sdk docs](https://github.com/github/copilot-sdk/tree/main/docs) instead.
251+
> This PR is auto-generated. Do not edit it directly — make changes in the [copilot-sdk docs](https://github.com/github/copilot-sdk/tree/main/docs) instead. Exception: \`redirect_from\` cannot come from upstream, so add redirects here.
216252
217253
---
218254
_Generated by the [sync-sdk-docs workflow run]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)._"
-28.9 KB
Binary file not shown.
-48.2 KB
Binary file not shown.
-20 KB
Binary file not shown.

content/copilot/reference/ai-models/model-hosting.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Used for:
2828
* {% data variables.copilot.copilot_gpt_56_sol %}
2929
* {% data variables.copilot.copilot_gpt_56_terra %}
3030
* {% data variables.copilot.copilot_gpt_6_astra %}
31+
* {% data variables.copilot.copilot_gpt_6_luna %}
32+
* {% data variables.copilot.copilot_gpt_6_sol %}
3133

3234
These models are hosted by OpenAI and {% data variables.product.github %}'s Azure infrastructure.
3335

@@ -48,6 +50,7 @@ Used for:
4850
* {% data variables.copilot.copilot_claude_opus_48 %}
4951
* {% data variables.copilot.copilot_claude_opus_48_fast %}
5052
* {% data variables.copilot.copilot_claude_opus_5 %}
53+
* {% data variables.copilot.copilot_claude_opus_55 %}
5154
* {% data variables.copilot.copilot_claude_fable_5 %}
5255
* {% data variables.copilot.copilot_claude_fable_51 %}
5356

content/copilot/reference/ai-models/supported-models.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Choosing a larger context window or higher reasoning will impact {% data variabl
8282
| {% data variables.copilot.copilot_claude_opus_47 %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
8383
| {% data variables.copilot.copilot_claude_opus_48 %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
8484
| {% data variables.copilot.copilot_claude_opus_5 %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
85+
| {% data variables.copilot.copilot_claude_opus_55 %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
8586
| {% data variables.copilot.copilot_claude_sonnet_5 %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
8687
| {% data variables.copilot.copilot_claude_opus_48_fast %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} |
8788
| {% data variables.copilot.copilot_claude_fable_5 %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
@@ -93,6 +94,8 @@ Choosing a larger context window or higher reasoning will impact {% data variabl
9394
| {% data variables.copilot.copilot_gpt_56_sol %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
9495
| {% data variables.copilot.copilot_gpt_56_terra %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
9596
| {% data variables.copilot.copilot_gpt_6_astra %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
97+
| {% data variables.copilot.copilot_gpt_6_luna %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
98+
| {% data variables.copilot.copilot_gpt_6_sol %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
9699
| {% data variables.copilot.copilot_kimi_k3 %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
97100

98101
{% endrowheaders %}
@@ -134,8 +137,11 @@ Some {% data variables.product.prodname_copilot_short %} models require minimum
134137
| {% data variables.copilot.copilot_gpt_56_sol %} | `1.128.0` | TBD | TBD | TBD | TBD |
135138
| {% data variables.copilot.copilot_gpt_56_terra %} | `1.128.0` | TBD | TBD | TBD | TBD |
136139
| {% data variables.copilot.copilot_gpt_6_astra %} | `1.136.1` | `17.14.19` | TBD | TBD | TBD |
140+
| {% data variables.copilot.copilot_gpt_6_luna %} | TBD | `17.14.19` | TBD | TBD | TBD |
141+
| {% data variables.copilot.copilot_gpt_6_sol %} | TBD | `17.14.19` | TBD | TBD | TBD |
137142
| {% data variables.copilot.copilot_claude_opus_48 %} | `v1.118` | `17.14.6` | TBD | TBD | TBD |
138143
| {% data variables.copilot.copilot_claude_opus_5 %} | `v1.128.0` | `17.14.22` | TBD | TBD | TBD |
144+
| {% data variables.copilot.copilot_claude_opus_55 %} | TBD | `17.14.6` | TBD | TBD | TBD |
139145
| {% data variables.copilot.copilot_claude_sonnet_5 %} | `v1.124` | `17.14.6` | TBD | TBD | TBD |
140146
| {% data variables.copilot.copilot_claude_fable_5 %} | `v1.124` | `17.14.6` | TBD | TBD | TBD |
141147
| {% data variables.copilot.copilot_claude_fable_51 %} | TBD | TBD | TBD | TBD | TBD |

content/copilot/reference/copilot-billing/models-and-pricing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ All prices are **per 1 million tokens**.
3333

3434
{% data reusables.copilot.extended-context-pricing %}
3535

36-
{% data variables.copilot.copilot_gpt_56_sol %}, {% data variables.copilot.copilot_gpt_56_terra %}, {% data variables.copilot.copilot_gpt_56_luna %}, and {% data variables.copilot.copilot_gpt_6_astra %} include a cache write cost in addition to cached input. Earlier OpenAI models have no cache write cost.
36+
{% data variables.copilot.copilot_gpt_56_sol %}, {% data variables.copilot.copilot_gpt_56_terra %}, {% data variables.copilot.copilot_gpt_56_luna %}, {% data variables.copilot.copilot_gpt_6_astra %}, {% data variables.copilot.copilot_gpt_6_luna %}, and {% data variables.copilot.copilot_gpt_6_sol %} include a cache write cost in addition to cached input. Earlier OpenAI models have no cache write cost.
3737

3838
| Model | Release status | Category | Tier | Threshold (input tokens) | Input | Cached input | Cache write | Output |
3939
| --- | --- | --- | --- | --- | ---: | ---: | ---: | ---: |

0 commit comments

Comments
 (0)