File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,18 @@ export class PullRequestContextProvider extends Disposable implements vscode.Cha
6969Owner: ${ defaults . owner }
7070Current branch: ${ folderManager . repository . state . HEAD ?. name ?? 'unknown' }
7171Default branch: ${ defaults . base } ` ;
72+
73+ // Add current user information
74+ try {
75+ const currentUser = await folderManager . getCurrentUser ( ) ;
76+ if ( currentUser ?. login ) {
77+ value = `${ value }
78+ Current user: ${ currentUser . login } ` ;
79+ }
80+ } catch ( e ) {
81+ // If we can't get the current user, continue without it
82+ }
83+
7284 if ( folderManager . activePullRequest ) {
7385 value = `${ value }
7486Active pull request (may not be the same as open pull request): ${ folderManager . activePullRequest . title } ${ folderManager . activePullRequest . html_url } ` ;
You can’t perform that action at this time.
0 commit comments