[BUG]: `/assign-issue` accepts the same user more than once, producing duplicate assignees

Open
#243 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

@loveyadav1015 is already working on this.

Since Nov 26, 2026.

  • #244 by @loveyadav1015 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
backend

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
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
  1. Ensure Discord user @Alice has a verified link to GitHub user alice.
  2. Run /assign-issue with assignee_1=@Alice and assignee_2=@Alice on an open issue.
  3. Observe Proposed Assignment: alice, alice in 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/Gitcord-GithubDiscordBot

All issues in AOSSIE-Org/Gitcord-GithubDiscordBot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.