cleanup: remove private repository references

This commit is contained in:
Tianyi Cui
2026-08-08 01:10:57 +08:00
parent 3d1e4d31e1
commit 6d09c315b9
90 changed files with 229 additions and 137 deletions
@@ -0,0 +1,16 @@
import { describe, expect, it } from 'vitest'
import { findInternalRepositoryReferences } from './verify-public-repository-links.ts'
describe('public repository link policy', () => {
it('rejects the internal remote and accepts the public home', () => {
const internalRepository = ['deepseek-harness', 'deepseek-harness'].join('/')
const source = [
'https://github.com/deepseek-ai/deepseek-harness-sdk',
`https://github.com/${internalRepository}/issues/1`,
].join('\n')
expect(findInternalRepositoryReferences('subject.md', source)).toEqual([
{ file: 'subject.md', line: 2 },
])
})
})