Conversation
3b41f31 to
7377aae
Compare
|
|
There was a problem hiding this comment.
Pull request overview
Adds a new public v1 endpoint to fetch affiliations for a single contributor by GitHub handle, complementing the existing bulk lookup endpoint.
Changes:
- Add
GET /public/v1/affiliations/:githubHandleroute. - Implement
getAffiliationByHandlehandler to resolve a member, verified emails, and affiliations, then return a single-contributor payload.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| backend/src/api/public/v1/affiliations/index.ts | Registers the new GET route for single-handle lookup alongside the existing bulk POST endpoint. |
| backend/src/api/public/v1/affiliations/getAffiliationByHandle.ts | New handler that looks up a member by GitHub handle and returns emails + resolved affiliations. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0841e5a to
c08fc7c
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
710b7da to
35168c4
Compare

Note
Medium Risk
Adds a new public API route that returns verified emails and affiliations for a single GitHub handle, increasing surface area and potential for data exposure if scopes/inputs are misused. Logic reuses existing DAL queries but changes request shape and 404 behavior for missing handles.
Overview
Adds a new
GET /public/v1/affiliations/:githubHandleendpoint to fetch affiliations for a single GitHub handle, alongside the existing bulkPOST /lookup.The handler lowercases the handle, looks up the member, returns a
NotFoundErrorwhen no profile exists, and responds with the member’s display name, verified emails, and resolved affiliations (guarded by the existingREAD_AFFILIATIONSscope and rate limiter).Written by Cursor Bugbot for commit 35168c4. This will update automatically on new commits. Configure here.