Skip to content

Implement /assign Command via GitHub Actions #52

@Pranjal6955

Description

@Pranjal6955

Summary

Enable contributors to self-assign issues and pull requests using a simple /assign command, reducing maintainer workload and speeding up task ownership.


Contexts

Currently, assigning issues or PRs requires manual action from maintainers, which can slow down collaboration. By implementing a GitHub Action that listens to /assign commands in comments, contributors can take ownership of tasks instantly.

The system should support assigning the commenter or a specified GitHub user, while handling edge cases like invalid usernames, bot comments, and duplicate assignments.


Tasks

  • Create GitHub Action workflow (.github/workflows/assign.yml)

  • Parse /assign command from issue/PR comments

  • Implement logic for:

    • /assign → assign commenter
    • /assign @username → assign mentioned user
  • Integrate GitHub REST API for assignment

  • Add validation (ignore bots, invalid users, duplicates)

  • Add confirmation comment after assignment

  • (Optional) Restrict usage to contributors/org members


Acceptance Criteria

  • /assign assigns the commenter correctly
  • /assign @username assigns the specified user
  • Invalid commands or users are handled gracefully
  • No duplicate assignments occur
  • Confirmation comment is posted after assignment
  • Tests added (if applicable)
  • Documentation updated (if needed)

Area

backend


Difficulty

Medium

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions