File tree 5 files changed +5
-8
lines changed
5 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ import { Dropdown } from 'ui/Dropdown/Dropdown'
12
12
13
13
interface URLParams {
14
14
provider : Provider
15
- owner : string
16
- repo ?: string
17
15
}
18
16
19
17
type DropdownItem = {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import BannerContent from 'ui/Banner/BannerContent'
8
8
import BannerHeading from 'ui/Banner/BannerHeading'
9
9
10
10
const GithubConfigBanner = ( ) => {
11
- const { provider, owner } = useParams ( )
11
+ const { provider } = useParams ( )
12
12
const isGh = providerToName ( provider ) === 'GitHub'
13
13
14
14
if ( ! isGh ) return null
@@ -23,7 +23,7 @@ const GithubConfigBanner = () => {
23
23
data-testid = "codecovGithubApp-link"
24
24
to = { { pageName : 'codecovGithubAppSelectTarget' } }
25
25
onClick = { ( ) =>
26
- eventTracker ( provider , owner ) . track ( {
26
+ eventTracker ( ) . track ( {
27
27
type : 'Button Clicked' ,
28
28
properties : {
29
29
buttonType : 'Install GitHub App' ,
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ export class AmplitudeEventTracker implements EventTracker {
46
46
...event . properties ,
47
47
...this . context ,
48
48
} ,
49
- // This attaches the event to the owner's user group as well
49
+ // This attaches the event to the owner's user group (org) as well
50
50
groups : this . context . owner ?. id
51
51
? {
52
- owner : this . context . owner . id ,
52
+ org : this . context . owner . id ,
53
53
}
54
54
: undefined ,
55
55
} )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export type Event =
30
30
| {
31
31
type : 'Page Viewed'
32
32
properties : {
33
- pageName : 'OwnerPage '
33
+ pageName : 'Owner Page '
34
34
}
35
35
}
36
36
Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ fragment CurrentUserFragment on Me {
127
127
128
128
interface URLParams {
129
129
provider : Provider
130
- owner : string
131
130
}
132
131
133
132
interface UseUserArgs {
You can’t perform that action at this time.
0 commit comments