[BTAPI-43] Dependency and repo cleanup + add /health endpoint #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/BTAPI-43"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket
BTAPI-43 — Dependency and repo cleanup + add /health endpoint
Summary
imap,mailparser,uuid(code usesnode-imap/mailparser-mit), plusnodemonand@types/imapdev-deps; drop thetrustedDependenciesarray (its only entrynodemailerisn't a dependency).err instanceof z.ZodError(zod is a real dependency now) and the stale "zod is not yet a dependency" comment is refreshed. Test updated to throw a realZodError.sourceMap: truefromserver/tsconfig.json— Bun runs the TS directly andtscis--noEmit, so it only produced stray.js.mapfiles.GET /healthliveness endpoint (no Mongo, no auth) plus a docker-composeapihealthcheck that hits it via bun'sfetch(theoven/bunimage ships no curl).Not touched: the legacy in-source
server/db/Mongo data is already gitignored and superseded by thedb-dataDocker volume — left in place since deleting on-disk data is destructive.Verification:
bun --cwd=./server run type-checkclean;bun --cwd=./server testgreen (135/135).tea - command line tool to interact with Gitea USAGE: tea [global options] [command [command options]] VERSION: Version: [1m0.14.1[0m golang: 1.26.3 go-sdk: v0.25.1 DESCRIPTION: tea is a productivity helper for Gitea. It can be used to manage most entities on one or multiple Gitea instances & provides local helpers like 'tea pr checkout'. tea tries to make use of context provided by the repository in $PWD if available. tea works best in a upstream/fork workflow, when the local main branch tracks the upstream repo. tea assumes that local git state is published on the remote before doing operations with tea. Configuration is persisted in $XDG_CONFIG_HOME/tea. COMMANDS: help, h Shows a list of commands or help for one command ENTITIES: issues, issue, i List, create and update issues pulls, pull, pr Manage and checkout pull requests labels, label Manage issue labels milestones, milestone, ms List and create milestones releases, release, r Manage releases times, time, t Operate on tracked times of a repository's issues & pulls organizations, organization, org List, create, delete organizations repos, repo Manage repositories branches, branch, b Consult branches actions, action Manage repository actions webhooks, webhook, hooks, hook Manage webhooks comment, c Add a comment to an issue / pr HELPERS: open, o Open something of the repository in web browser notifications, notification, n Show notifications clone, C Clone a repository locally api Make an authenticated API request MISCELLANEOUS: whoami Show current logged in user admin, a Operations requiring admin access on the Gitea instance SETUP: logins, login Log in to a Gitea server logout Log out from a Gitea server ssh-keys, ssh-key Manage SSH public keys GLOBAL OPTIONS: --debug, --vvv Enable debug mode --help, -h show help --version, -v print the version installation.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.