Skip to content

Commit

Permalink
chore: this is how we generate our shit.
Browse files Browse the repository at this point in the history
  • Loading branch information
favna authored and renovate[bot] committed Nov 19, 2023
1 parent 7362acc commit bb7f016
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"validate-tags": "node scripts/validateTags.mjs"
},
"dependencies": {
"@discordjs/builders": "^1.6.5",
"@discordjs/builders": "^1.7.0",
"@discordjs/collection": "^1.5.3",
"@ltd/j-toml": "~1.38.0",
"@sapphire/fetch": "^2.4.1",
"@sapphire/result": "^2.6.4",
"@sapphire/utilities": "^3.13.0",
"@skyra/env-utilities": "^1.2.1",
"@skyra/http-framework": "^1.2.1",
"@skyra/http-framework": "^1.2.2",
"@skyra/jaro-winkler": "^1.1.0",
"date-fns": "^2.30.0",
"discordjs-docs-parser": "^1.3.3",
Expand Down
16 changes: 8 additions & 8 deletions src/lib/util/github-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ function getDataForPullRequest({ pullRequest, ...repository }: Repository): Issu
pullRequest?.state === 'CLOSED'
? new Date(pullRequest?.closedAt)
: pullRequest?.state === 'OPEN'
? new Date(pullRequest?.createdAt)
: new Date(pullRequest?.mergedAt);
? new Date(pullRequest?.createdAt)
: new Date(pullRequest?.mergedAt);
const dateOffset = time(dateToUse, TimestampStyles.RelativeTime);
const dateStringPrefix = pullRequest?.state === 'CLOSED' ? 'closed' : pullRequest?.state === 'OPEN' ? 'opened' : 'merged';
const dateString = `${dateStringPrefix} ${dateOffset}`;
Expand Down Expand Up @@ -211,8 +211,8 @@ function getDataForIssuesAndPrSearch(
pullRequestsHaveExactNumber?.state === 'CLOSED'
? 'Closed Pull Request'
: pullRequestsHaveExactNumber?.state === 'OPEN'
? 'Open Pull Request'
: 'Merged Pull Request';
? 'Open Pull Request'
: 'Merged Pull Request';

return [
{
Expand Down Expand Up @@ -375,8 +375,8 @@ interface GraphQLResponse<T extends 'searchRepositories' | 'searchIssuesAndPrs'
data: T extends 'data'
? Record<'repository', Query['repository']>
: T extends 'searchRepositories'
? Record<'search', Query['search']>
: T extends 'searchIssuesAndPrs'
? Record<'repository', Query['repositoryIssuesAndPrs']>
: never;
? Record<'search', Query['search']>
: T extends 'searchIssuesAndPrs'
? Record<'repository', Query['repositoryIssuesAndPrs']>
: never;
}
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ __metadata:
languageName: node
linkType: hard

"@discordjs/builders@npm:^1.6.5, @discordjs/builders@npm:^1.7.0":
"@discordjs/builders@npm:^1.7.0":
version: 1.7.0
resolution: "@discordjs/builders@npm:1.7.0"
dependencies:
Expand Down Expand Up @@ -282,7 +282,7 @@ __metadata:
languageName: node
linkType: hard

"@discordjs/rest@npm:^2.1.0":
"@discordjs/rest@npm:^2.2.0":
version: 2.2.0
resolution: "@discordjs/rest@npm:2.2.0"
dependencies:
Expand Down Expand Up @@ -1017,20 +1017,20 @@ __metadata:
languageName: node
linkType: hard

"@skyra/http-framework@npm:^1.2.1":
version: 1.2.1
resolution: "@skyra/http-framework@npm:1.2.1"
"@skyra/http-framework@npm:^1.2.2":
version: 1.2.2
resolution: "@skyra/http-framework@npm:1.2.2"
dependencies:
"@discordjs/builders": "npm:^1.7.0"
"@discordjs/collection": "npm:^1.5.3"
"@discordjs/rest": "npm:^2.1.0"
"@discordjs/rest": "npm:^2.2.0"
"@discordjs/util": "npm:^1.0.2"
"@sapphire/pieces": "npm:^3.10.0"
"@sapphire/result": "npm:^2.6.4"
"@sapphire/utilities": "npm:^3.13.0"
"@vladfrangu/async_event_emitter": "npm:^2.2.2"
discord-api-types: "npm:^0.37.63"
checksum: 9144a4c227981f291f77c279b7640f82dd45d490ebdb9f047abdd18fe3f530bc72c6e4887a6582f13bcf6dee44e9757eb9a115b5affd0d87c3c79e5f767badac
checksum: c7eadf9c5685314a966d2b570c8fe93116b5e28d625f67175b6cbf85cb44e892423f2c0b8276a4f46af6f6444f5fc4cfd021c05fc95535f919e08b69439db4b0
languageName: node
linkType: hard

Expand Down Expand Up @@ -5285,7 +5285,7 @@ __metadata:
dependencies:
"@commitlint/cli": "npm:^18.4.2"
"@commitlint/config-conventional": "npm:^18.4.2"
"@discordjs/builders": "npm:^1.6.5"
"@discordjs/builders": "npm:^1.7.0"
"@discordjs/collection": "npm:^1.5.3"
"@ltd/j-toml": "npm:~1.38.0"
"@sapphire/eslint-config": "npm:^5.0.2"
Expand All @@ -5295,7 +5295,7 @@ __metadata:
"@sapphire/ts-config": "npm:^5.0.0"
"@sapphire/utilities": "npm:^3.13.0"
"@skyra/env-utilities": "npm:^1.2.1"
"@skyra/http-framework": "npm:^1.2.1"
"@skyra/http-framework": "npm:^1.2.2"
"@skyra/jaro-winkler": "npm:^1.1.0"
"@types/he": "npm:^1.2.3"
"@types/node": "npm:^20.9.2"
Expand Down

0 comments on commit bb7f016

Please sign in to comment.