Skip to content

Commit e265273

Browse files
Change "Blame:" to "Author:" in status bar for friendlier language (#180)
Co-authored-by: TJ Kandala <[email protected]>
1 parent 814f186 commit e265273

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/blame.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ describe('getBlameStatusBarItem()', () => {
323323
sourcegraph: SOURCEGRAPH as any,
324324
now: NOW,
325325
}).text
326-
).toBe('Blame: (testUserName) i, 2 months ago')
326+
).toBe('Author: (testUserName) i, 2 months ago')
327327
})
328328

329329
it('displays the most recent hunk if there are no selections', () => {
@@ -334,7 +334,7 @@ describe('getBlameStatusBarItem()', () => {
334334
sourcegraph: SOURCEGRAPH as any,
335335
now: NOW,
336336
}).text
337-
).toBe('Blame: e, 21 days ago')
337+
).toBe('Author: e, 21 days ago')
338338

339339
expect(
340340
getBlameStatusBarItem({
@@ -343,6 +343,6 @@ describe('getBlameStatusBarItem()', () => {
343343
sourcegraph: SOURCEGRAPH as any,
344344
now: NOW,
345345
}).text
346-
).toBe('Blame: e, 21 days ago')
346+
).toBe('Author: e, 21 days ago')
347347
})
348348
})

src/blame.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export const getBlameStatusBarItem = ({
204204
)
205205

206206
return {
207-
text: `Blame: ${username}${displayName}, ${distance}`,
207+
text: `Author: ${username}${displayName}, ${distance}`,
208208
command: { id: 'open', args: [linkURL] },
209209
tooltip: hoverMessage,
210210
}
@@ -220,7 +220,7 @@ export const getBlameStatusBarItem = ({
220220
if (!mostRecentHunk) {
221221
// Probably a network error
222222
return {
223-
text: 'Blame: not found',
223+
text: 'Author: not found',
224224
}
225225
}
226226
const { displayName, username, distance, linkURL, hoverMessage } = getDisplayInfoFromHunk(
@@ -230,7 +230,7 @@ export const getBlameStatusBarItem = ({
230230
)
231231

232232
return {
233-
text: `Blame: ${username}${displayName}, ${distance}`,
233+
text: `Author: ${username}${displayName}, ${distance}`,
234234
command: { id: 'open', args: [linkURL] },
235235
tooltip: hoverMessage,
236236
}

0 commit comments

Comments
 (0)