Skip to content

Display additional acceptable branches on repository page#123

Merged
LandynDev merged 2 commits intoentrius:testfrom
eureka0928:feat/display-additional-acceptable-branches
Apr 2, 2026
Merged

Display additional acceptable branches on repository page#123
LandynDev merged 2 commits intoentrius:testfrom
eureka0928:feat/display-additional-acceptable-branches

Conversation

@eureka0928
Copy link
Copy Markdown
Contributor

@eureka0928 eureka0928 commented Apr 2, 2026

Summary

  • Add useRepositoryConfig hook for GET /repos/{owner}%2F{repo} endpoint to fetch per-repo config
  • Display additional acceptable (scorable) branches as chips in the Repository Stats sidebar on the repository detail page
  • Section only renders when a repo has additional branches configured

Closes #122

Screenshots

Repo with additional branches (BitMind-AI/bitmind-subnet):
The "Scorable Branches" section appears at the bottom of the Repository Stats sidebar showing the testnet branch chip.

image image image

Preview: https://gittensor-ui.vercel.app/miners/repository?name=BitMind-AI%2Fbitmind-subnet

Test plan

  • Visit a repo with additional branches (e.g. BitMind-AI/bitmind-subnet) — "Scorable Branches" section shows with branch chips
  • Visit a repo without additional branches (e.g. axios/axios) — section does not appear
  • Verify build and lint pass cleanly

Add useRepositoryConfig hook for GET /repos/{owner}%2F{repo} endpoint
and show scorable branches as chips in the Repository Stats sidebar.
@eureka0928 eureka0928 force-pushed the feat/display-additional-acceptable-branches branch from a7ddb08 to 80d68e8 Compare April 2, 2026 22:08
Copy link
Copy Markdown
Collaborator

@LandynDev LandynDev left a comment

Choose a reason for hiding this comment

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

Can you fix format code fail check?

@eureka0928 eureka0928 force-pushed the feat/display-additional-acceptable-branches branch from 16ca008 to 57986bd Compare April 2, 2026 22:18
@eureka0928 eureka0928 requested a review from LandynDev April 2, 2026 22:18
@eureka0928
Copy link
Copy Markdown
Contributor Author

Lint is fixed and pushed, @LandynDev

@LandynDev LandynDev merged commit 188f43a into entrius:test Apr 2, 2026
2 checks passed
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.

Display Additional Acceptable Branches on repository page

2 participants