Add auto-assign option for issues created from TODO/FIXME 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
createTodoIssuelogic:- Retrieves authenticated GitHub user when setting is enabled
- Merges with existing assignees from
@usernamementions 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:
- Configure Actions setup steps to set up my environment, which run before the firewall is enabled
- Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only)
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.