Skip to content

Add Gerrit forge adapter#119

Open
abhinavgautam01 wants to merge 1 commit into
git-pkgs:mainfrom
abhinavgautam01:feat/gerrit-adapter
Open

Add Gerrit forge adapter#119
abhinavgautam01 wants to merge 1 commit into
git-pkgs:mainfrom
abhinavgautam01:feat/gerrit-adapter

Conversation

@abhinavgautam01

Copy link
Copy Markdown

Summary

Adds initial Gerrit support as a forge adapter.

This maps Gerrit projects, branches, tags, files, and changes into the existing forge interfaces where they fit cleanly. Unsupported Gerrit concepts explicitly return ErrNotSupported.

Closes #12.

What works

  • Adds gerrit forge type and detection via /config/server/version
  • Adds Gerrit REST client with XSSI prefix stripping
  • Supports repositories/projects
  • Supports branch list/create/delete
  • Supports tag listing
  • Supports file content retrieval
  • Maps Gerrit changes to pull requests for get/list/diff/comment/submit/abandon/restore
  • Supports reviewer request/removal and review submission
  • Adds explicit unsupported-service stubs for issues, labels, milestones, releases, CI, secrets, deploy keys, notifications, collaborators and commit statuses
  • Updates CLI help, config docs, README and token lookup

Tests

  • go test ./...
  • git diff --check

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.

Gerrit adapter

1 participant