Skip to content

Releases: TheCodingDad-TisonK/GitBot

v3.0.1 — Bug fixes & polish

27 Feb 09:58

Choose a tag to compare

What's fixed in v3.0.1

Bug fixes

  • Polling never rangithubPoller.start() was missing from the ready event handler. Repos with poll_enabled were silently doing nothing.
  • Bot owner admin bypass never workedsetBotOwnerId was receiving client.user.id (the bot's own Discord ID) instead of the application owner's ID. Now resolved via client.application.fetch() at startup.
  • "Resend this embed" always errored — The context menu read channels from the legacy config (which returns {} in V3). It now builds the picker from db.getAllRepositories().
  • database.js crashed in sqlite3 fallback modeinit() called require.resolve("better-sqlite3") which throws MODULE_NOT_FOUND when the package isn't installed, crashing before the sqlite3 fallback could work. Changed to Database.name === "Database".
  • sqlite3 path missing indexes_createTablesAsync never created the three performance indexes that _createTablesSync creates (idx_repos_full_name, idx_repos_active, idx_tokens_default).
  • Dead options.body in HTTP clientgithubRequest set options.body which Node.js http.request silently ignores; the body was already sent correctly via req.write.

Dead code removed

  • Local verifySignature in index.js (shadowed by multiWebhook.js)
  • route:confirm / route:undo / route:done button handlers — no /route command exists in V3
  • Duplicate app-level /health endpoint (shadowed by the router's version); its extra uptime/mutes/stats fields were merged into the router's handler
  • Unused crypto, fs, path imports in index.js
  • getRepoInfo import in repoCommands.js (was never called)
  • Standalone checkAdmin(userId, botOwnerId) stub function

Polish

  • Added missing "use strict" to embeds.js
  • repoCommands array now .toJSON()'d when merged into allCommands (consistent with all other command arrays)
  • Fixed "GitBot V2" author string in /test embed → GitBot V3
  • /test with no channel arg now resolves the first active repo's channel instead of hardcoding "github-general"
  • getRecentPullRequests empty if (since) stub removed
  • Poller synthetic push event now reads repo.default_branch with "main" as fallback (was hardcoded main)
  • getRepositoryByIdSync renamed to _getRepositoryByIdAsync — it was the async version; the name was backwards
  • Bumped version from mangled 3.0.0thi3.0.1

V3 update | Multi repo support

22 Feb 22:21
e322c65

Choose a tag to compare

Merge pull request #6 from TheCodingDad-TisonK/development

GitBot V3 — Multi-Repo Support, Guided Webhook Setup & DM Confirmation Flow

First Release

20 Feb 01:03
634d5ab

Choose a tag to compare

v1.0

Create .env