Skip to content

Do not label issues assigned to org bots as community contributions - #142

Merged
rtibbles merged 1 commit into
mainfrom
exclude-bots-from-community-label
Nov 25, 2026
Merged

rtibbles merged 1 commit into
mainfrom
exclude-bots-from-community-label

Conversation

@rtibbles

@rtibbles rtibbles commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Issues assigned to rtibblesbot were labelled community-contribution-in-progress, because the label only checks repo collaborator status. Bot assignees are now ignored, with bot usernames moved to a JSON file read by both the JS constants and the Python script.

References

Tested: learningequality/test-actions#106.

Reviewer guidance

On test-actions, main's code labelled the issue when rtibblesbot was assigned; with this branch, the label came off once the only human assignee was removed, leaving rtibblesbot.

JS tests pass on CI; no tests cover the Python script.

AI usage

Used Claude Code to implement the change. Verified with the full test suite, ruff and a live run on test-actions.

🤖 Generated with Claude Code

https://claude.ai/code/session_013PjXpbvgyWdsP6RKke6npi

- Move bot usernames into scripts/bot-usernames.json, read by constants.js and the Python script
- community-contribution-label.py treats a bot assignee as not external

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PjXpbvgyWdsP6RKke6npi
@rtibbles
rtibbles marked this pull request as ready for review November 23, 2026 17:41
@rtibbles
rtibbles requested review from a team and leq-bot November 23, 2026 17:41

@LianaHarris360 LianaHarris360 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes check out to me. I'm just wondering if LE_BOT_USERNAME and RTIBBLESBOT_USERNAME still need to be set in scripts/constants.js, otherwise this is ready to merge.

@rtibbles

Copy link
Copy Markdown
Member Author

Probably not - I'll do a quick skim to check.

@rtibbles

Copy link
Copy Markdown
Member Author

Looks like they're still used in multiple other scripts at the moment, but probably worth consolidating at some point.

@rtibbles
rtibbles merged commit 2a96b07 into main Nov 25, 2026
42 checks passed
@rtibbles
rtibbles deleted the exclude-bots-from-community-label branch November 25, 2026 17:27
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.

2 participants