Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix: fix log typo (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 authored Feb 4, 2021
1 parent 1c7b0e7 commit 1e44d21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/events/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# events

This directory is used to store the code for event handle. You can visit [GitHub documents](https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads) to learn about different webhook events.

10 changes: 5 additions & 5 deletions src/events/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ async function handleSyncRepo(
commentService
)
.then(() => {
log.info("Finish syncing pull request of %s", repoSignature);
log.info("Finish syncing pull requests of %s", repoSignature);
})
.catch((err) => {
log.error(err, "Failed to sync pull request of %s", repoSignature);
log.error(err, "Failed to sync pull requests of %s", repoSignature);
});

const syncIssuePromise = handleSyncIssues(
Expand All @@ -209,10 +209,10 @@ async function handleSyncRepo(
commentService
)
.then(() => {
log.info("Finish syncing issue of %s", repoSignature);
log.info("Finish syncing issues of %s", repoSignature);
})
.catch((err) => {
log.error(err, "Failed to sync issue of %s", repoSignature);
log.error(err, "Failed to sync issues of %s", repoSignature);
});

// Sync pull and sync issue proceed concurrently.
Expand Down Expand Up @@ -320,7 +320,7 @@ async function handleSyncIssues(
const { owner, repo } = repoKey;
const repoSignature = `${owner}/${repo}`;

log.info("Syncing issue from %s", repoSignature);
log.info("Syncing issues from %s", repoSignature);

// Load issues in pagination mode.
const issueIterator = github.paginate.iterator(github.issues.listForRepo, {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export = async (app: Probot) => {
Container.get(IContributorServiceToken)
)
.then(() => {
app.log.info("Finish full sync successfully");
app.log.info("Finish full sync success");
})
.catch((err) => {
app.log.error(err, "Failed to finish full sync");
Expand Down

0 comments on commit 1e44d21

Please sign in to comment.