File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,19 @@ export const AccountNotifications: FC<IAccountNotifications> = (
121
121
title = "My Issues"
122
122
icon = { IssueOpenedIcon }
123
123
size = { Size . SMALL }
124
- onClick = { ( ) => openGitHubIssues ( account . hostname ) }
124
+ onClick = { ( event : MouseEvent < HTMLElement > ) => {
125
+ // Don't trigger onClick of parent element.
126
+ event . stopPropagation ( ) ;
127
+ openGitHubIssues ( account . hostname ) ;
128
+ } }
125
129
/>
126
130
) }
127
131
< InteractionButton
128
132
title = "My Pull Requests"
129
133
icon = { GitPullRequestIcon }
130
134
size = { Size . SMALL }
131
- onClick = { ( ) => {
135
+ onClick = { ( event : MouseEvent < HTMLElement > ) => {
136
+ // Don't trigger onClick of parent element.
132
137
event . stopPropagation ( ) ;
133
138
if ( account . platform === 'Bitbucket Cloud' ) {
134
139
openBitbucketPulls ( account ) ;
Original file line number Diff line number Diff line change @@ -172,8 +172,6 @@ export async function refreshBitbucketAccount(
172
172
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
173
173
const res : any = await getBitbucketUser ( account ) ;
174
174
175
- console . log ( JSON . stringify ( res ) ) ;
176
-
177
175
// Refresh user data
178
176
account . user = {
179
177
id : res . data . account_id ,
Original file line number Diff line number Diff line change @@ -135,12 +135,15 @@ export async function getAllNotifications(
135
135
try {
136
136
// TODO - this needs to be correctly implemented
137
137
if ( accountNotifications . account . platform === 'Bitbucket Cloud' ) {
138
- const pulls =
139
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
140
- ( ( await accountNotifications . notifications ) . data as any )
141
- . pullRequests ?. reviewing ;
138
+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>
139
+ const res = ( await accountNotifications . notifications ) . data as any ;
142
140
143
- console . log ( pulls ) ;
141
+ // TODO - when using IP allowlists, Bitbucket doesn't return any response indicator
142
+
143
+ const pulls = res . pullRequests ?. reviewing ;
144
+
145
+ // console.log(JSON.stringify(pulls));
146
+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>
144
147
const notifications = pulls ?. map ( ( pull : any ) => ( {
145
148
id : `${ pull . destination . repository . full_name } -${ pull . id } ` ,
146
149
reason : 'review_requested' ,
You can’t perform that action at this time.
0 commit comments