Skip to content

Commit

Permalink
chore: remove deprecated express_plugin mock
Browse files Browse the repository at this point in the history
Removed the outdated express_plugin mock file from tests.
  • Loading branch information
gentlementlegen committed Oct 21, 2024
1 parent 732116f commit 501420e
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions src/handlers/watch-user-activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export async function watchUserActivity(context: ContextPlugin) {

await Promise.all(
repos.map(async (repo) => {
// uusd.ubq.fi
logger.debug(`> Watching user activity for repo: ${repo.name} (${repo.html_url})`);
await updateReminders(context, repo);
})
Expand All @@ -37,22 +36,19 @@ async function updateReminders(context: ContextPlugin, repo: ListForOrg["data"][
})) as ListIssueForRepo[];

await Promise.all(
issues
.filter((o) => o.html_url === "https://github.com/ubiquity/uusd.ubq.fi/issues/1")
.map(async (issue) => {
// I think we can safely ignore the following
if (issue.draft || issue.pull_request || issue.locked || issue.state !== "open") {
logger.debug("Skipping issue due to the issue state.", { issue });
return;
}

if (issue.assignees?.length || issue.assignee) {
// uusd-ubq-fi
logger.debug(`Checking assigned issue: ${issue.html_url}`);
await updateReminder(context, repo, issue);
} else {
logger.info("Skipping issue because no user is assigned.", { issue });
}
})
issues.map(async (issue) => {
// I think we can safely ignore the following
if (issue.draft || issue.pull_request || issue.locked || issue.state !== "open") {
logger.debug("Skipping issue due to the issue state.", { issue });
return;
}

if (issue.assignees?.length || issue.assignee) {
logger.debug(`Checking assigned issue: ${issue.html_url}`);
await updateReminder(context, repo, issue);
} else {
logger.info("Skipping issue because no user is assigned.", { issue });
}
})
);
}

0 comments on commit 501420e

Please sign in to comment.