Skip to content

feat(pr): add reviewer selection and unify forge: avatars, PR reviewers list, PR merge into branch list#103

Open
t1gu1 wants to merge 4 commits into
mainfrom
feat/pr-reviewer-selection
Open

feat(pr): add reviewer selection and unify forge: avatars, PR reviewers list, PR merge into branch list#103
t1gu1 wants to merge 4 commits into
mainfrom
feat/pr-reviewer-selection

Conversation

@t1gu1

@t1gu1 t1gu1 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

This change adds reviewer selection to the PR creation flow across all supported forges and unifies avatar rendering behind a single component. It also fixes the target-branch selector so it lists server-side branches instead of only local git refs, which were often limited to origin/main on Azure clones.

Changes

  • Fetch candidate reviewers from the repository's owning forge (Azure teams, tokenless GitHub assignees) and rank them by commit activity.
  • Resolve Azure reviewer logins to identity GUIDs when creating a PR.
  • Populate the PR "into" target-branch selector from the forge (listBranches), merging with and falling back to local refs.
  • Introduce a unified Avatar component with photo (forge URL or Gravatar) and colored initials fallback, replacing duplicated avatar markup across components.
  • Add a forge → Gravatar → initials avatar fallback chain and derive GitHub avatars from users.noreply.github.com commit emails.
  • Extend forge providers and backend commands (Azure, GitHub, GitLab, Bitbucket) with reviewer and branch listing support.

Test plan

  • Create a PR on Azure and confirm reviewers can be selected and are resolved to identity GUIDs.
  • Verify the target-branch selector lists remote branches beyond origin/main on an Azure clone.
  • Confirm reviewer candidates are ranked by commit activity across GitHub, GitLab, and Bitbucket.
  • Check that avatars render with photo, Gravatar, and initials fallbacks in PR, issue, and commit views.
  • Confirm GitHub avatars resolve correctly from users.noreply.github.com commit emails.

Guillaume Huard Hughes added 4 commits July 2, 2026 15:03
…orges

Récupère les reviewers candidats via la forge propriétaire du dépôt (équipes
Azure, assignees GitHub tokenless) et les classe par activité de commits.
Résout les logins Azure en identity GUIDs lors de la création de PR.

🪄 Commit via GitWand
Introduit un composant Avatar unifié affichant une photo (URL forge ou
Gravatar) avec repli sur le disque d'initiales coloré, et remplace le
markup avatar dupliqué dans tous les composants.

🪄 Commit via GitWand
Le dropdown "into" ne listait que les refs git locales, souvent limitées à
`origin/main` sur un clone Azure. Les branches sont désormais récupérées côté
serveur (listBranches) et fusionnées, avec repli sur les refs locales.

🪄 Commit via GitWand
Ajoute une chaîne de fallback forge → Gravatar → initiales et dérive
l'avatar GitHub depuis l'email des commits `users.noreply.github.com`.

🪄 Commit via GitWand
@t1gu1 t1gu1 requested a review from devlint July 2, 2026 20:27
@t1gu1 t1gu1 changed the title feat(pr): add reviewer selection and unify forge avatars feat(pr): add reviewer selection and unify forge: avatars, PR reviewers list, PR merge into branch list Jul 2, 2026

@devlint devlint left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't work with Azure repos, so I'll take your word for it!

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.

2 participants