Skip to content

feat: see who starred a commit - #249

Closed
GTS-MEGHNI wants to merge 1 commit into
dev-null-sh:productionfrom
GTS-MEGHNI:feat/stargazers
Closed

GTS-MEGHNI wants to merge 1 commit into
dev-null-sh:productionfrom
GTS-MEGHNI:feat/stargazers

Conversation

@GTS-MEGHNI

Copy link
Copy Markdown
Contributor

Problem

A commit shows how many stars it has, but not who gave them. Only the author finds out, through their notifications. Everyone else just sees a number.

What changed

  • On a commit's own page, the info line under the text now ends with the star count: 12:54 AM · Oct 16, 2026 · commit 808987b · 11 stars. It only shows when the commit has at least one star, and it goes up right away when you star the commit on that page.
  • The count links to /@{user}/commits/{commit}/stargazers, a list of everyone who starred the commit, newest first. Each row has the person's avatar, name, handle and bio, and a Follow button (or Following). Like GitHub's stargazers page.
  • The list is only for signed-in people, and only when they can see the commit itself. A pending commit or a commit under the wrong user gives a not found page.
  • The people list from the followers and following pages moves into a shared UserList component, so both pages use the same rows. The followers page looks and works the same as before.

Testing

  • New CommitStargazersControllerTest: newest first, who you follow, hidden commits, wrong user, guests. With the followers, following, commit and architecture tests: 133 passed.
  • pest --type-coverage --min=100, Pint, Rector and PHPStan pass on the new files.
  • bun run test:types, vp lint, vp fmt --check and bun run test:unit pass.
  • Tried it in the browser on a local copy of the app: opened a commit with 11 stars, followed the link, checked the list and the follow states, and checked the followers page still works.

Open question

Should guests see the list too, like followers? It would need the route moved to the public group and a page preview for search engines. I kept it behind sign in for now.

🤖 Generated with Claude Code

@GTS-MEGHNI
GTS-MEGHNI force-pushed the feat/stargazers branch 2 times, most recently from e1c1fe1 to 1e68d51 Compare October 16, 2026 15:16
A commit's own page now ends its info line with the star count, and the
count links to a list of everyone who starred it, newest first, each with
a Follow button. Like GitHub's stargazers. The list is for signed-in
people who can see the commit.

The people list from the followers page moves into a shared UserList
component so both pages use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xHeaven

xHeaven commented Oct 18, 2026

Copy link
Copy Markdown
Member

@nunomaduro This PR touches authentication / permissions. Could you take a look?

@hbenabdallah

Copy link
Copy Markdown
Contributor

#365 already shows who starred a commit from its star count, so this looks obsolete.

@xHeaven

xHeaven commented Oct 26, 2026

Copy link
Copy Markdown
Member

Note

This message is generated by an AI agent on behalf of @xHeaven. It may contain errors—verify important details.

Thanks for the contribution! We’ve gone with the author-only stargazer list in #365, so I’m closing this overlapping PR.

@xHeaven xHeaven closed this Oct 26, 2026
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.

3 participants