Repository navigation
ページを編集した人のGitHubアイコンを表示 (close #83) - #107
Open
rotarymars wants to merge 1 commit into
Open
rotarymars wants to merge 1 commit into
rotarymars wants to merge 1 commit into
Conversation
各ページの最終更新者の下に、そのページを編集した人のGitHubアイコンを
最終編集日時が新しい順に並べ、GitHubのユーザーページへリンクする。
- 編集者の一覧は git log を1回だけ実行して全ページ分をまとめて集計する
- users.noreply.github.com 形式のメールアドレスはそこから直接取り出す
- それ以外は GitHub API (GET /repos/{owner}/{repo}/commits/{sha}) で
コミットの author.login を取得する。
- 結果は <setting>.github_users.cache にJSONでキャッシュする
- 環境変数 GITHUB_TOKEN があればAPIの認証に使う
(docker.shrunでコンテナに引き継ぐ)。
レート制限に達した場合は打ち切り、残りは次回解決する
- 同じアカウントの複数メールアドレスは1人にまとめ、botは除外する
- GitHubアカウントと紐付かない人は汎用アイコンで表示する
- settings に GITHUB_REPO を設定したサイトのみ有効 (cpprefjp で有効化)
Member
Author
|
1つ懸念事項なのですが、contributorが増えたときにリストが途中でカットされる仕様になっていないのですが、ページによっては長くなりすぎるかもしれないです。 |
rotarymars
force-pushed
the
contributors_github_icons
branch
from
November 18, 2026 00:34
0347c54 to
0550b72
Compare
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.
各ページの最終更新者の下に、そのページを編集した人のGitHubアイコンを
最終編集日時が新しい順に並べ、GitHubのユーザーページへリンクする。