[BUG]: `/assign-issue` accepts the same user more than once, producing duplicate assignees
Maintainers usually reply within 4 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
Research direction
Read assign_issue_cmd in src/ghdcbot/bot.py (lines 2287–2297) and IssueAssignmentView.confirm (lines 314–343), then review tests/test_issue_assignment_from_discord.py and tests/test_issue_assignment_validation.py. Reproduce the repeated-user selection from the issue and check how confirmation passes assignees to github_adapter.assign_issue. Done means duplicate users appear once in the confirmation and are assigned once; pull request #244 is already open.
Written by the indexing model from the issue text.
Description
Bug Description
assign_issue_cmd in src/ghdcbot/bot.py (L2287-L2297) collects assignee_1, assignee_2, and assignee_3 without deduplicating repeated Discord users. Selecting the same user in multiple slots causes the confirmation embed to show duplicate logins (e.g., Proposed Assignment: alice, alice) and IssueAssignmentView.confirm (L314-L343) to call github_adapter.assign_issue(...) multiple times for the same user.
Steps to Reproduce
- Ensure Discord user
@Alicehas a verified link to GitHub useralice. - Run
/assign-issuewithassignee_1=@Aliceandassignee_2=@Aliceon an open issue. - Observe
Proposed Assignment: alice, alicein the confirmation embed, then click Confirm Assignment.
Logs and Screenshots
No response
Environment Details
- OS: Linux
- Python: 3.14.7 (targets 3.11+)
- Commit:
main(173e096) - Related tests:
tests/test_issue_assignment_from_discord.py,tests/test_issue_assignment_validation.py
Impact
Low - Minor inconvenience
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Dominant language
- Python
- Stars
- 30
- Forks
- 58
- Avg merge
- 6d 6h
- Merged PRs (30d)
- 14
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/Gitcord-GithubDiscordBot
-
[BUG]: scheduled-run-once.sh flock only wraps preflight-sync, so concurrent runs can overlap run-oncePossibly taken A pull request linked to this issue is open or already merged. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/Gitcord-GithubDiscordBot#248 · 1 comment ·
Maintainers usually reply within 4 days
-
fix(storage): social profile verification status persists when changing to an unverified handlePossibly taken @AyushSrivastava1818 claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
AOSSIE-Org/Gitcord-GithubDiscordBot#245 · 3 comments ·
Maintainers usually reply within 4 days
-
fix(audit): prevent unhandled AttributeError when audit events contain context: NonePossibly taken @udbhav968-creator claimed this 5 days ago. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
AOSSIE-Org/Gitcord-GithubDiscordBot#221 · 4 comments ·
Maintainers usually reply within 4 days
-
[BUG]: /open-prs and /pr require specifying `contributor` instead of defaulting to the invoking userPossibly taken @udbhav968-creator claimed this 7 days ago. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
AOSSIE-Org/Gitcord-GithubDiscordBot#214 · 1 comment ·
Maintainers usually reply within 4 days
-
[BUG]: /create-issue writes unstructured audit events, breaking `export-audit` and event filteringPossibly taken @dushyantrajotia claimed this 11 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/Gitcord-GithubDiscordBot#198 · 2 comments · 1 assignee ·
Maintainers usually reply within 4 days
All issues in AOSSIE-Org/Gitcord-GithubDiscordBot
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
cofade/open-garden-planner#1044 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
codecrafters-io/build-your-own-x#2126 ·
Maintainers usually reply within 5 days
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
julianleno/cortai#10 ·
-
difficulty:easy func:python os:windows prio:high type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NatronGitHub/Natron#2029 ·
Maintainers usually reply within 1 day