Skip to content

Commit 2348076

Browse files
committed
Renames ${name} token to ${emailName} for clarity
(#5155)
1 parent d06c993 commit 2348076

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4191,7 +4191,7 @@
41914191
},
41924192
"avatar": {
41934193
"type": "string",
4194-
"markdownDescription": "Specifies the format of an avatar URL for the custom remote service\n\nAvailable tokens\\\n`${email}` — contributor email\\\n`${name}` — email local-part\\\n`${domain}` — email domain\\\n`${size}` — avatar size"
4194+
"markdownDescription": "Specifies the format of an avatar URL for the custom remote service\n\nAvailable tokens\\\n`${email}` — contributor email\\\n`${emailName}` — email local-part\\\n`${domain}` — email domain\\\n`${size}` — avatar size"
41954195
}
41964196
},
41974197
"additionalProperties": false

packages/git/src/remotes/custom.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export class CustomRemoteProvider extends RemoteProvider {
3737

3838
getUrlForAvatar(email: string, size: number): string | undefined {
3939
if (this.urls.avatar != null) {
40-
const [name, domain] = email.split('@');
40+
const [emailName, domain] = email.split('@');
4141
return this.encodeUrl(
4242
interpolate(
4343
this.urls.avatar,
44-
this.getContext({ name: name, domain: domain, email: email, size: String(size) }),
44+
this.getContext({ emailName: emailName, domain: domain, email: email, size: String(size) }),
4545
),
4646
);
4747
}

0 commit comments

Comments
 (0)