diff --git a/src/events/README.md b/src/events/README.md index c193fc5..223c865 100644 --- a/src/events/README.md +++ b/src/events/README.md @@ -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. - diff --git a/src/events/app/index.ts b/src/events/app/index.ts index 529ce8e..0bdd58e 100644 --- a/src/events/app/index.ts +++ b/src/events/app/index.ts @@ -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( @@ -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. @@ -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, { diff --git a/src/index.ts b/src/index.ts index 4c2972e..0ef3b81 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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");