Merge pull request #2260 from deepseek-harness/codex/add-contributing-guide

docs: add contribution guide
This commit is contained in:
Turtle
2026-08-11 19:04:42 +08:00
committed by GitHub
12 changed files with 76 additions and 10 deletions
File diff suppressed because one or more lines are too long
+4
View File
@@ -182,6 +182,9 @@ describe('translation pairing records', () => {
describe('translation scope discovery', () => {
it.each([
'README.md',
'CONTRIBUTING.md',
'CONTRIBUTING.zh.md',
'CONTRIBUTING.i18n.yaml',
'apps/cli/README.md',
'future/subtree/readme.md',
'packages/example/README.zh.md',
@@ -195,6 +198,7 @@ describe('translation scope discovery', () => {
it.each([
'packages/example/guide.md',
'packages/example/CONTRIBUTING.md',
'examples/tutorial.md',
'website/reference.md',
'packages/example/README.txt',
+2
View File
@@ -125,6 +125,7 @@ export interface TranslationPairingManifest {
}
const README_ARTIFACT = /(?:^|\/)readme(?:\.md|\.zh\.md|\.i18n\.yaml)$/i
const ROOT_CONTRIBUTING_ARTIFACT = /^contributing(?:\.md|\.zh\.md|\.i18n\.yaml)$/i
const NON_SOURCE_DIRECTORIES = new Set([
'node_modules',
'lib',
@@ -179,6 +180,7 @@ function isTranslationSourceExcluded(file: string): boolean {
export function isTranslationScopeFile(file: string): boolean {
return !file.startsWith('.agents/notes/archived/')
&& !isTranslationSourceExcluded(file) && (README_ARTIFACT.test(file)
|| ROOT_CONTRIBUTING_ARTIFACT.test(file)
|| file.startsWith('.agents/notes/')
|| file.startsWith('docs/')
|| file.startsWith('python/'))