Skip to main content
For repos that have been synced with GitHub, you can force a pull with this command. It will throw an error in any situation that doesn’t indicate a successful pull.
console.log(repo.listCommits());

// Re-pull the repo to get the freshest commits
await repo.pullUpstream();

console.log(repo.listCommits());
Note this method is necessary when opting to manage your own GitHub webhook.

Response

Returns void. Throws an error if the pull fails or if the repository is not synced with GitHub.