Repository navigation
Count main branch commit contributors on the website - #1689
Open
Cedric Vidal (cedricvidal) wants to merge 3 commits into
Open
Cedric Vidal (cedricvidal) wants to merge 3 commits into
Cedric Vidal (cedricvidal) wants to merge 3 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Test Results (Node.js 22)test: Run #608
🎉 All tests passed! |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Test Results (Node.js 22)test: Run #609
🎉 All tests passed! |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Test Results (Node.js 22)test: Run #610
🎉 All tests passed! |
Cedric Vidal (cedricvidal)
marked this pull request as ready for review
November 20, 2026 01:05
Cedric Vidal (cedricvidal)
requested a review
from Wassim Chegham (manekinekko)
as a code owner
November 20, 2026 01:05
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The contributor wall counted only pull requests merged natively in
microsoft/scope, so historical work imported fromscope-coreas issues was absent. This changes the source of truth to GitHub's repository contributors endpoint and presents the metric explicitly as commits attributed on the default branch (main).The publisher filters anonymous and bot accounts, emits deterministic JSONL, and includes a temporary
prscompatibility alias so the independently deployed website reader andwebsite-databranch can roll forward without an empty state. The browser accepts both new and legacy records. Contributor cards continue to open merged-PR searches, with copy clarifying that the displayed number is commits onmain.The PR also documents a pinact exception for
dtolnay/rust-toolchain, whose toolchain-specific commits have no matching Git tags. The workflow retains full-SHA and explanatory-comment enforcement while allowing CI to verify the rest of the action pins.Demos
The same homepage contributor widget is shown with deterministic contributor data from each counting method.
Before
The native merged-PR query reports 77 PRs and omits the imported
scope-corehistory.After
The repository contributor query reports 644 commits attributed on
main, including the imported history.Testing
All commands passed. The pnpm commands were invoked through the cached pnpm 10.29.1 launcher because the machine's default Corepack shim referenced a broken Homebrew Node installation.
pnpm --dir website test- 21 tests passed.pnpm exec vitest run scripts/ci-workflow.test.ts- 37 tests passed.SITE=https://microsoft.github.io BASE_PATH=/scope pnpm --dir website run build- production build passed.BASE_PATH=/scope playwright test --config website/playwright.config.ts- 92 tests passed across light/dark and desktop/mobile projects.pinact --config .github/pinact.yaml run --fix=false --verify- passed.pinact run --check --verify-comment- passed.gh api repos/microsoft/scope/contributorstransformation check - 13 non-bot user contributors, 644 total commits on the repository's default branch, and matching compatibility aliases.Documentation and compatibility
Updated the website contributor documentation, README, Contributors page, development sample, and runtime copy to identify the metric as commits attributed on
main.The JSONL publisher now emits
commitsplus a temporary equal-valuedprsalias. The browser preferscommitsand continues to accept legacyprs-only records, avoiding a breaking transition between the Pages deployment and the independently updatedwebsite-databranch.Checklist
up()/down()and keep it CosmosDB-compatible. (N/A: no database changes.)NOTICE/NOTICE-REVIEW.txtwithpnpm noticeas needed. (N/A: no dependency changes.)