Add GitLab snippet provider support by hackjutsu · Pull Request #681 · hackjutsu/Lepton · GitHub
Skip to content

Add GitLab snippet provider support - #681

Draft
hackjutsu wants to merge 1 commit into
masterfrom
codex/issue-262-gitlab-support
Draft

hackjutsu wants to merge 1 commit into
masterfrom
codex/issue-262-gitlab-support

Conversation

@hackjutsu

Copy link
Copy Markdown
Owner

Summary

  • Add GitLab.com and self-managed GitLab personal snippets as a first-class provider, including provider selection, PAT login, CRUD, sync, search, task-list edits, and provider-aware links.
  • Introduce a provider-neutral snippet API contract and bridge, with GitHub and GitLab owning their own request construction and response normalization.
  • Scope credentials, cached account data, drafts, and async session state by provider/account, with migration and stale-session protection.
  • Update settings, documentation, translations, packaging allowlists, and renderer/login fixtures for the new provider flow.

Validation

  • npm run lint
  • npm run test:unit — 352 tests across 58 files
  • npm run test:smoke — login and authenticated renderer fixtures, including GitLab and multi-filter scenarios
  • npm run test:packaged-smoke — packaged rendering and strict codesign verification
  • git diff --check

Notes

  • GitHub OAuth remains unchanged; GitLab authentication uses a personal access token.
  • GitLab network behavior is covered with mocked provider and smoke tests. No live GitLab account or snippet data was mutated during validation.

Closes #262

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possibility of Supporting GitLab?

1 participant