Skip to content

Launchpad: API search for PRs on GitLab #3788

@sergeibbb

Description

@sergeibbb

This issue is a follow-up of #3543


Todo

  • ✅ Search for PRs on GitLab
  • ✅ Perform the PR search for all connected providers
  • ✅ Group found repo+prID pairs by provider to perform the more precise search
  • ✅ Search GitLab PR by PR URL
  • ✅ Get head-ref id on each PR, to be able to show checkout-like actions

Follow-ups

  • ⏺️ Search by number on current repositories

Testing notes

Connect both GitLab and GitHub. Search by:

  • GitHub URL of a local PR (a PR from your repositories)
  • GitLab URL of a local PR
  • GitHub URL in internet (a random PR on internet)
  • GitLab URL in internet
  • text query

Pay attention to user avatars. GitLab's graph-ql returns them differently in different requests: sometimes it's an URL, but sometimes it's just a path.

Make sure that owner/repo is shown.

Disconnect GitHub. Search by a text query.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions