Skip to content

Commit 42faf28

Browse files
fix: fix issues from the rabbit
1 parent d23e947 commit 42faf28

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib/server/github-cache.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class GitHubCache {
127127
* @private
128128
*/
129129
#getOwnerKey(owner: string, type: OwnerKeyType, ...args: unknown[]) {
130-
const strArgs = args.map(a => `:${a}`);
130+
const strArgs = args.map(a => `:${a}`).join("");
131131
return `owner:${owner}:${type}${strArgs}`;
132132
}
133133

@@ -144,7 +144,7 @@ export class GitHubCache {
144144
* @private
145145
*/
146146
#getRepoKey(owner: string, repo: string, type: RepoKeyType, ...args: unknown[]) {
147-
const strArgs = args.map(a => `:${a}`);
147+
const strArgs = args.map(a => `:${a}`).join("");
148148
return `repo:${owner}/${repo}:${type}${strArgs}`;
149149
}
150150

@@ -159,7 +159,7 @@ export class GitHubCache {
159159
* @private
160160
*/
161161
#getPackageKey(packageName: string, ...args: unknown[]) {
162-
const strArgs = args.map(a => `:${a}`);
162+
const strArgs = args.map(a => `:${a}`).join("");
163163
return `package:${packageName}${strArgs}`;
164164
}
165165

@@ -671,7 +671,7 @@ export class GitHubCache {
671671
*
672672
* @param owner the GitHub repository owner
673673
* @param repo the GitHub repository name
674-
* @returns a list of issues, or `undefined` if not existing
674+
* @returns a list of issues, empty if not existing
675675
*/
676676
async getAllIssues(owner: string, repo: string) {
677677
return await this.#processCached<Issue[]>()(
@@ -698,7 +698,7 @@ export class GitHubCache {
698698
*
699699
* @param owner the GitHub repository owner
700700
* @param repo the GitHub repository name
701-
* @returns a list of pull requests, or `undefined` if not existing
701+
* @returns a list of pull requests, empty if not existing
702702
*/
703703
async getAllPRs(owner: string, repo: string) {
704704
return await this.#processCached<ListedPullRequest[]>()(

src/routes/tracker/[org]/[repo]/+page.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function load({ params }) {
3434
if (
3535
lowerBody.includes(`${keyword} #`) ||
3636
lowerBody.includes(`${keyword} https://github.com`) ||
37-
new RegExp(`${keyword} [A-Za-z0-9_-]+/[A-Za-z0-9_-]+#[0-9]+`).test(lowerBody)
37+
new RegExp(`${keyword} [A-Za-z0-9_-]+/[A-Za-z0-9_-]+#[0-9]+`).test(lowerBody)
3838
) {
3939
return false;
4040
}

0 commit comments

Comments
 (0)