Skip to content

Commit

Permalink
Remove namedLogo from defaultBadgeData of non-social badges
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed May 25, 2024
1 parent d682172 commit 8c71323
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion services/github/github-commits-difference.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class GithubCommitsDifference extends GithubAuthV3Service {
},
}

static defaultBadgeData = { label: 'commits difference', namedLogo: 'github' }
static defaultBadgeData = { label: 'commits difference' }

static render({ commitCount }) {
return {
Expand Down
2 changes: 1 addition & 1 deletion services/github/github-commits-since.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class GithubCommitsSince extends GithubAuthV3Service {
},
}

static defaultBadgeData = { label: 'github', namedLogo: 'github' }
static defaultBadgeData = { label: 'github' }

static render({ version, commitCount }) {
return {
Expand Down
2 changes: 1 addition & 1 deletion services/github/github-downloads.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class GithubDownloads extends GithubAuthV3Service {
},
}

static defaultBadgeData = { label: 'downloads', namedLogo: 'github' }
static defaultBadgeData = { label: 'downloads' }

static render({ tag: version, assetName, downloads }) {
const messageSuffixOverride =
Expand Down
2 changes: 1 addition & 1 deletion services/github/github-pull-request-check-state.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class GithubPullRequestCheckState extends GithubAuthV3Service {
},
}

static defaultBadgeData = { label: 'checks', namedLogo: 'github' }
static defaultBadgeData = { label: 'checks' }

static render({ variant, state, stateCounts }) {
let message
Expand Down
2 changes: 1 addition & 1 deletion services/github/github-release.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class GithubRelease extends GithubAuthV3Service {
},
}

static defaultBadgeData = { label: 'release', namedLogo: 'github' }
static defaultBadgeData = { label: 'release' }

static render({ version, sort, isPrerelease }) {
let color = 'blue'
Expand Down
5 changes: 1 addition & 4 deletions services/liberapay/liberapay-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ function renderCurrencyBadge({ label, amount, currency }) {
class LiberapayBase extends BaseJsonService {
static category = 'funding'

static defaultBadgeData = {
label: 'liberapay',
namedLogo: 'liberapay',
}
static defaultBadgeData = { label: 'liberapay' }

async fetch({ entity }) {
return this._requestJson({
Expand Down

0 comments on commit 8c71323

Please sign in to comment.