vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Add auto-assign option for issues created from TODO/FIXME comments

Open Copilot opened this issue 2 months ago • 0 comments

Adds githubIssues.assignToMeOnCreate setting to automatically assign the current user when creating issues from TODO/FIXME comments via code actions.

Changes

  • New setting: githubIssues.assignToMeOnCreate (default: false)

    • Controls automatic assignment of current user to newly created issues
    • Disabled by default for backward compatibility
  • Enhanced createTodoIssue logic:

    • Retrieves authenticated GitHub user when setting is enabled
    • Merges with existing assignees from @username mentions in comments
    • Fails gracefully if user retrieval fails

Example

With "githubIssues.assignToMeOnCreate": true:

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

Triggering "Create GitHub Issue" on the TODO comment creates an issue assigned to the current user.

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

Both the current user and @teammate are assigned to the created issue.

[!WARNING]

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • update.code.visualstudio.com
    • Triggering command: /opt/hostedtoolcache/node/20.19.6/x64/bin/node node ./out/src/test/runTests.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

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)

  • Fixes microsoft/vscode-pull-request-github#6176

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

Copilot avatar Dec 10 '25 11:12 Copilot