Copilot SDK docs - Sync pipeline (#61226) · github/docs@936dbe9 · GitHub
Skip to content

Commit 936dbe9

Browse files
sunbryeCopilot
andauthored
Copilot SDK docs - Sync pipeline (#61226)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 467f82c commit 936dbe9

6 files changed

Lines changed: 1302 additions & 2 deletions

File tree

Lines changed: 250 additions & 0 deletions

‎src/assets/scripts/deleted-assets-pr-comment.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ async function main({ owner, repo, baseSHA, headSHA }: MainArgs) {
4040
throw new Error('No files found in the PR')
4141
}
4242

43+
// Auto-generated asset directories managed by sync pipelines.
44+
// These are deleted and recreated on each sync, so deletions are expected.
45+
const AUTO_GENERATED_ASSET_DIRS = ['assets/images/help/copilot/copilot-sdk/']
46+
4347
const oldFilenames = []
4448
for (const file of files) {
4549
const { filename, status } = file
4650
if (!filename.startsWith('assets')) continue
51+
if (AUTO_GENERATED_ASSET_DIRS.some((dir) => filename.startsWith(dir))) continue
4752
if (status === 'removed') {
4853
// Bad
4954
oldFilenames.push(filename)

‎src/code-tabs/lib/languages.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export const codeLanguages: Record<string, string> = {
88
shell: 'Shell',
99
javascript: 'JavaScript',
1010
dotnet: '.NET',
11+
rust: 'Rust',
1112
}

‎src/content-render/tests/render-changed-and-deleted-files.ts‎

Lines changed: 11 additions & 2 deletions

0 commit comments

Comments
 (0)