const octokit = new Octokit({ auth: 'YOUR_PERSONAL_ACCESS_TOKEN' });
await findAndReplaceInAllRepositories({
octokit,
owner: 'username',
path: 'path/to/file.txt',
regex: /findMe/g,
replacement: 'replaceWithMe',
commitMessage: "Replaced 'findMe' with 'replaceWithMe'"
})
Generated using TypeDoc
Finds and replaces text in a specific file across all repositories of a GitHub user.