Skip to content

Commit f17429d

Browse files
committed
fix issues
1 parent 9e57160 commit f17429d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/app/feed/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { getAllEntries } from "@/lib/store";
2-
import { type NextRequest } from "next/server";
32

43
export const dynamic = "force-dynamic";
54
export const revalidate = 60;
65

7-
export async function GET(request: NextRequest) {
6+
export async function GET() {
87
const entries = await getAllEntries();
98
const baseUrl =
109
process.env.NEXT_PUBLIC_BASE_URL || "https://changelog.opentelemetry.io";

src/components/changelog-description.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { GitHubUsername } from "./github-username";
88

99
const isDev = process.env.NODE_ENV === "development";
1010

11-
function debugLog(message: string, ...args: any[]) {
11+
function debugLog(message: string, ...args: unknown[]) {
1212
if (isDev) {
1313
console.log(`[ChangelogDescription] ${message}`, ...args);
1414
}
@@ -27,9 +27,8 @@ function processGitHubLinks(text: string, repoFullName: string): string {
2727

2828
// Replace PR references first (including those in parentheses)
2929
const prPattern = /(?:^|\s|[([])#(\d+)(?=[\s\n\])]|$)/g;
30-
processedText = processedText.replace(prPattern, (match, issue, offset) => {
30+
processedText = processedText.replace(prPattern, (match, issue) => {
3131
debugLog("Found PR reference:", issue);
32-
// Preserve the opening character if it's a bracket or parenthesis
3332
const prefix =
3433
match.startsWith("(") || match.startsWith("[") ? match[0] : " ";
3534
return `${prefix}[#${issue}](https://github.com/${repoFullName}/issues/${issue})`;

0 commit comments

Comments
 (0)