Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 8c53dc6

Browse files
authored
Use docs-builder-bot credentials for all git clone operations (#802)
* support private repos that aren't in 10gen * clarify why
1 parent 8f2acbe commit 8c53dc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/repo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ export class GitHubConnector implements IRepoConnector {
3232
this._fileSystemService = fileSystemService;
3333
}
3434

35+
// make everything use credentials to support "internal" repos
3536
private getBasePath(job: Job): string {
3637
const botName = this._config.get<string>('githubBotUserName');
3738
const botPw = this._config.get<string>('githubBotPW');
38-
return job.payload.private ? `https://${botName}:${botPw}@github.com` : 'https://github.com';
39+
return `https://${botName}:${botPw}@github.com`;
3940
}
4041

4142
async applyPatch(job: Job): Promise<any> {

0 commit comments

Comments
 (0)