1
2
Fork
You've already forked userscripts
1

Make (co-)authorship checks slightly more correct #8

Closed
opened 2026年01月20日 06:55:09 +01:00 by jacksonchen666 · 1 comment
// Warning to those adding: the code that uses this (commits check, and
// contributors check) is generally only doing the first "word" of the name.

Noticed this issue while making additional stuff after #2

// XXX: don't use only the first word of a name, maybe do the
// whole name and email (risk of claude opus 4.5 updating to a
// different version, regex?)
const name = message_co_author_parts[1].split(" ")[0];
if (bot_names_to_look_for.has(name.toLowerCase())) {
console.debug(`AI bot co-author found in SHA ${commit_info.sha}:`, commit_info.commit.message);
bots.push({"name": name, "sha": commit_info.sha});
continue;
}

Some considerations which I think is related:

  • Both commits and contributors use the same check_user function, which probably won't work when things are done correctly, because of account name difference
    • (I need to double check whatever I said here makes sense at all in the first place, this thought comes from that last time I properly looked at the code)
https://codeberg.org/jacksonchen666/userscripts/src/commit/57cac0d141bf3b29f9b7b47d1db9f1d67c6a9f3d/github.com-notify-on-ai-files.user.js#L61-L62 Noticed this issue while making additional stuff after #2 https://codeberg.org/jacksonchen666/userscripts/src/commit/57cac0d141bf3b29f9b7b47d1db9f1d67c6a9f3d/github.com-notify-on-ai-files.user.js#L361-L369 Some considerations which I think is related: - Both commits and contributors use the same `check_user` function, which probably won't work when things are done correctly, because of account name difference - (I need to double check whatever I said here makes sense at all in the first place, this thought comes from that last time I properly looked at the code)
Author
Owner
Copy link

Released in userscript version 0.4.0!

Released in userscript version 0.4.0!
jacksonchen666 added reference refs/tags/github-ai-use-0.4.0 2026年06月29日 01:45:23 +02:00
Sign in to join this conversation.
github-ai-use-0.4.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
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
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#8
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?