Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

Automatically assigns the current user when creating issues from TODO/FIXME comments via code actions, if the user is assignable in the repository.

Changes

  • Enhanced createTodoIssue logic:
    • Retrieves authenticated GitHub user when creating an issue
    • Checks if the current user is assignable in the repository
    • Automatically assigns the user if they have permission to be assigned
    • Merges with existing assignees from @username mentions in comments
    • Fails gracefully if user retrieval or assignability check fails

Behavior

No configuration required - the feature works automatically based on repository permissions.

// TODO: refactor this method
function foo() { ... }

Triggering "Create GitHub Issue" on the TODO comment creates an issue assigned to the current user (if they are assignable in the repository).

// TODO @teammate: refactor this method  
function bar() { ... }

Both the current user (if assignable) and @teammate are assigned to the created issue.

Original prompt

This section details on the original issue you should resolve

<issue_title>FR: "create issue" code action (triggerable on FIXME's) could assign myself to the issue</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add code action to assign issues with FIXME comments Add auto-assign option for issues created from TODO/FIXME comments Dec 10, 2025
Copilot AI requested a review from alexr00 December 10, 2025 11:42
Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

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

@copilot Don't add a new setting. Instead, check if the user is assignable in the issue's repo, and assign if so.

Copy link
Contributor Author

Copilot AI commented Dec 17, 2025

@copilot Don't add a new setting. Instead, check if the user is assignable in the issue's repo, and assign if so.

Done! Removed the setting and implemented automatic assignment when the user is assignable in the repository. Changes in commit 54f340b.

Copilot AI changed the title Add auto-assign option for issues created from TODO/FIXME comments Auto-assign current user to issues created from TODO/FIXME comments Dec 17, 2025
Copilot AI requested a review from alexr00 December 17, 2025 15:09
@alexr00 alexr00 marked this pull request as ready for review December 17, 2025 15:33
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 17, 2025
@alexr00 alexr00 merged commit 2841f74 into main Dec 17, 2025
6 checks passed
@alexr00 alexr00 deleted the copilot/add-create-issue-action branch December 17, 2025 16:22
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.

FR: "create issue" code action (triggerable on FIXME's) could assign myself to the issue

3 participants