Skip to content

Commit 5f696c6

Browse files
committed
mail-to-commit-mapping: notify the user before fetching refs
Fetching refs in a new repository is potentially expensive; Let's let the user know what is happening in that case. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent fca2104 commit 5f696c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mail-commit-mapping.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class MailCommitMapping {
4242
refs.push(`+refs/heads/*:refs/remotes/${this.config.repo.maintainerBranch}/*`);
4343
}
4444
if (refs.length) {
45+
console.log(`Updating mail-to-commit/refs: ${refs.join(", ")}`);
4546
await git(["fetch", `https://github.com/${this.config.repo.owner}/${this.config.repo.name}`, ...refs], {
4647
workDir: this.workDir,
4748
});

0 commit comments

Comments
 (0)