Skip to content

Commit

Permalink
Merge pull request #51 from ad-m/patch-1
Browse files Browse the repository at this point in the history
Avoid update remote of repository
  • Loading branch information
asottile committed Oct 10, 2020
2 parents e7c888c + ca13fd4 commit 763fbaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -78,8 +78,7 @@ async function main() {

await exec.exec('git', ['commit', '-am', 'pre-commit fixes']);
const url = addToken(pr.head.repo.clone_url, token);
await exec.exec('git', ['remote', 'set-url', 'origin', url]);
await exec.exec('git', ['push', 'origin', 'HEAD']);
await exec.exec('git', ['push', url, 'HEAD']);
});
}
}
Expand Down

0 comments on commit 763fbaf

Please sign in to comment.