Skip to content

Conversation

@exploreriii
Copy link
Contributor

Enables auto-assignment to good first issues

Signed-off-by: exploreriii <[email protected]>
Signed-off-by: exploreriii <[email protected]>
@exploreriii exploreriii marked this pull request as ready for review January 2, 2026 19:06
@exploreriii
Copy link
Contributor Author

ops was aiming to test this on fork

@exploreriii exploreriii closed this Jan 2, 2026
@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1314      +/-   ##
==========================================
+ Coverage   92.14%   92.29%   +0.14%     
==========================================
  Files         139      139              
  Lines        8482     8515      +33     
==========================================
+ Hits         7816     7859      +43     
+ Misses        666      656      -10     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai
Copy link

coderabbitai bot commented Jan 2, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This pull request introduces an automated GitHub Action that assigns "Good First Issue" labeled issues to users who comment with /assign. It includes a new JavaScript handler script, a corresponding workflow configuration, and a changelog entry documenting the feature.

Changes

Cohort / File(s) Summary
Workflow & Script Implementation
\.github/scripts/bot-gfi-assign-on-comment.js, \.github/workflows/bot-gfi-assign-on-comment.yml
New GitHub Action workflow triggered on issue comments containing /assign. Executes handler script that validates comment, checks for "Good First Issue" label, and conditionally assigns issue to commenter (if unassigned) or posts current assignee information (if already assigned).
Documentation
CHANGELOG.md
Added changelog entry under Unreleased > Added: "Enable auto assignment to good first issues (#1312)".

Sequence Diagram(s)

sequenceDiagram
    participant GH as GitHub
    participant Runner as GitHub Actions<br/>Runner
    participant Script as GFI Assign<br/>Script
    participant API as GitHub<br/>REST API
    
    GH->>Runner: Trigger on issue_comment event
    Runner->>Script: Execute with github & context
    Script->>Script: Validate /assign command & non-bot user
    Script->>Script: Verify "Good First Issue" label
    alt Issue has assignee
        Script->>API: Post "already assigned" comment<br/>with current assignee info
        API-->>Script: Comment created
    else Issue unassigned
        Script->>API: Assign issue to commenter
        API-->>Script: Assignment successful
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8980910 and 84baa92.

📒 Files selected for processing (3)
  • .github/scripts/bot-gfi-assign-on-comment.js
  • .github/workflows/bot-gfi-assign-on-comment.yml
  • CHANGELOG.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@exploreriii exploreriii deleted the auto-assignment branch January 3, 2026 20:15
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.

1 participant