1
2
Fork
You've already forked userscripts
1

Use GitHub contributor list to detect more AI #1

Closed
opened 2025年12月22日 13:05:58 +01:00 by jacksonchen666 · 11 comments

https://api.github.com/repos/Floorp-Projects/Floorp/contributors?per_page=100 single API call, github apps show up too, https://docs.github.com/en/rest/repos/repos?apiVersion=2022年11月28日#list-repository-contributors

use ID or node nonsense? prefer files first or prefer contributors first? (or user setting?)


If you have examples of projects using "AI" in a way that's visible in the contributors list on GitHub, please share a link in the comments for this issue! (I'm collecting all the "AI" bots)

https://api.github.com/repos/Floorp-Projects/Floorp/contributors?per_page=100 single API call, github apps show up too, https://docs.github.com/en/rest/repos/repos?apiVersion=2022年11月28日#list-repository-contributors use ID or node nonsense? prefer files first or prefer contributors first? (or user setting?) --- If you have examples of projects using "AI" in a way that's visible in the contributors list on GitHub, please share a link in the comments for this issue! (I'm collecting all the "AI" bots)
Author
Owner
Copy link
https://github.com/benbjohnson/litestream
Author
Owner
Copy link

notable thing from the API:

"html_url": "https://github.com/apps/google-labs-jules",

html_url is otherwise link to user profile

notable thing from the API: > "html_url": "https://github.com/apps/google-labs-jules", html_url is otherwise link to user profile
Author
Owner
Copy link

one case that may be interesting to look at is https://github.com/home-assistant/core which has way too many contributors (ignoring the files)

one case that may be interesting to look at is https://github.com/home-assistant/core which has *way too many* contributors (ignoring the files)
Author
Owner
Copy link
can't forget to mention [niri accepted a PR with Claude as coauthor](https://github.com/YaLTeR/niri/pull/2109)
Contributor
Copy link

When taking a shot at implementing this I noticed that the contributors API seems to omit some users sometimes. https://github.com/benbjohnson/litestream/graphs/contributors displays 25 contributors, including claude, https://api.github.com/repos/benbjohnson/litestream/contributors?per_page=100 only lists 21, excluding claude. For Floorp, however, Copilot does show up.

When taking a shot at implementing this I noticed that the contributors API seems to omit some users sometimes. https://github.com/benbjohnson/litestream/graphs/contributors displays 25 contributors, including claude, https://api.github.com/repos/benbjohnson/litestream/contributors?per_page=100 only lists 21, excluding claude. For Floorp, however, Copilot does show up.
Author
Owner
Copy link
https://github.com/ArcaneChat/android https://github.com/ArcaneChat/android/pull/87 resulted in https://github.com/ArcaneChat/android/commit/76e4c59119ab40c124ba50b1c85659c04fd1bde9 which has no copilot indications
Contributor
Copy link

I guess a heuristic for that would be the commit message "Merge pull request #\d+ from <repo name>/copilot/<branch name>" which is very unlikely to produce false positives. Checking the parent commits themselves would sadly incur more API calls because the API only contains the parents' hashes.

I guess a heuristic for that would be the commit message "Merge pull request #\d+ from \<repo name\>/copilot/\<branch name\>" which is very unlikely to produce false positives. Checking the parent commits themselves would sadly incur more API calls because the API only contains the parents' hashes.
Contributor
Copy link

I have updated my branch. It now also catches those merge commits

I have updated my branch. It now also catches those merge commits
Author
Owner
Copy link

Contributors check implemented as the last check in v0.2.0.

Contributors check implemented as the last check in v0.2.0.

Currently (actually latest version) ignores https://github.com/niri-wm/niri/pull/2109/changes/6f695feb869455c5af4dac9e437a019e685286d3 and doesn't reports it :(

Currently (actually latest version) ignores https://github.com/niri-wm/niri/pull/2109/changes/6f695feb869455c5af4dac9e437a019e685286d3 and doesn't reports it :(
Author
Owner
Copy link

@fzzr:

  • Commits detection is only limited to the last 100 commits (max that GitHub allows in 1 API request). There has been 474 commits already since the thing you linked. So the userscript won't be able to detect something too far in the past.
  • If there are issues, and none of the existing issues precisely match the problem, please create a new issue instead, not comment on existing ones.
@fzzr: - Commits detection is only limited to the last 100 commits (max that GitHub allows in 1 API request). There has been 474 commits already since the thing you linked. So the userscript won't be able to detect something too far in the past. - If there are issues, and none of the existing issues precisely match the problem, please create a new issue instead, not comment on existing ones.
jacksonchen666 added reference refs/tags/github-ai-use-0.2.0 2026年06月29日 01:44:29 +02:00
Sign in to join this conversation.
github-ai-use-0.2.0
main
navigation-api
dialog-box
dev
ai-files-gitignore-check
github-ai-use-0.4.0
github-ai-use-0.1
github-ai-use-0.1.1
github-ai-use-0.1.2
github-ai-use-0.1.3
github-ai-use-0.1.4
github-ai-use-0.1.5
github-ai-use-0.1.6
github-ai-use-0.1.7
github-ai-use-0.1.8
github-ai-use-0.1.9
github-ai-use-0.1.10
github-ai-use-0.2.0
github-ai-use-0.3.0
github-ai-use-0.3.1
github-ai-use-0.3.2
github-ai-use-0.3.3
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jacksonchen666/userscripts#1
Reference in a new issue
jacksonchen666/userscripts
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?