Skip to content

Commit

Permalink
fix: misaligned git pull hook banner (microsoft#33296)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmoura authored Nov 20, 2024
1 parent 2fdbb7f commit 6018a36
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/package-manager/src/notify-on-file-changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ function main(changedFiles) {
* @returns {string}
*/
function renderNotification(title) {
return [
'⚠️ ----------------------------------------------------------------------------------------- ⚠️',
`⚠️ ${title} ⚠️`,
'⚠️ ----------------------------------------------------------------------------------------- ⚠️',
].join('\n');
const titleLength = title.length;
const fillWithDashes = '-'.repeat(titleLength + 4);

return [`⚠️ ${fillWithDashes} ⚠️`, `⚠️ ${title} ⚠️`, `⚠️ ${fillWithDashes} ⚠️`].join('\n');
}

0 comments on commit 6018a36

Please sign in to comment.