feat: add Jira and GitHub integrations#107
Merged
alexneamtu merged 12 commits intomainfrom Mar 3, 2026
Merged
Conversation
Create user_integrations table to store per-user integration configs (Jira, GitHub) with encrypted JSONB config column.
IssueCreator interface, request/response types, DeriveKey, Encrypt, Decrypt, MaskToken — 4 passing tests.
GitHubClient: Bearer auth, POST /repos/{owner}/{repo}/issues,
markdown body with collapsible transcript. JiraClient: Basic
auth, POST /rest/api/3/issue, ADF body format. Both implement
IssueCreator interface — 10 passing tests total.
List, Save, Delete, Test, CreateIssue handlers with encrypted token storage, config validation, and provider factory — 15 tests.
Register integration CRUD under /api/settings/integrations and
create-issue under /api/videos/{id}/create-issue.
Settings: expandable GitHub/Jira config forms with save, test connection, and disconnect. VideoDetail: Create Issue button with dropdown for configured providers. 677 frontend tests pass.
5 new endpoints: list/save/delete integrations, test connection, create issue from video. Schemas for GitHub/Jira configs.
|
Preview deployed: https://pr-107.app.sendrec.eu |
Check error returns for resp.Body.Close, io.Copy, and json Encode/Decode. Lowercase error string per staticcheck ST1005.
Apply the same organization_id filter used by other video endpoints — personal videos require organization_id IS NULL, org videos require matching organization_id.
The videos table has transcript_json (JSONB) not transcript (TEXT). The non-existent column caused SQL errors returning 404.
- Frontend: populate form fields from saved integration config on load - Backend: detect masked token values and preserve existing encrypted tokens when re-saving without changing the token
|
Preview environment cleaned up. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
internal/integration/package withIssueCreatorinterface, GitHub and Jira provider clients, CRUD handler, and encryption utilitiesChanges
user_integrationstable (UUID PK, user_id FK, provider CHECK, JSONB config, UNIQUE per user+provider)internal/integration/— integration.go (types, encryption), handler.go (CRUD + create-issue), github.go, jira.go/api/settings/integrationsand/api/videos/{id}/create-issueTest plan