Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions apps/docs/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import { RootProvider } from "fumadocs-ui/provider";
import { Geist } from "next/font/google";
import type { ReactNode } from "react";
import "./global.css";

const geist = Geist({
subsets: ["latin"],
});

export default function Layout({ children }: { children: ReactNode }) {
return (
<html lang="en" className={geist.className} suppressHydrationWarning>
<html lang="en" suppressHydrationWarning>
<body className="flex flex-col min-h-screen">
<RootProvider>{children}</RootProvider>
</body>
Expand Down
32 changes: 18 additions & 14 deletions apps/web/components/layout/footer.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ const version = require("../../package.json").version;

const navigation = {
solutions: [
{ name: "Zapier", href: ROUTES.ZAPIER },
{ name: "APIs", href: "https://docs.changes.page" },
{
name: "GitHub",
name: "GitHub agent",
href: "/github-changelog-agent",
},
{ name: "Zapier", href: ROUTES.ZAPIER },
{
name: "GitHub actions",
href: "https://github.com/marketplace/actions/create-changelog",
},
],
support: [
{ name: "Blog", href: ROUTES.BLOG },
{ name: "Documentation", href: "https://docs.changes.page/docs" },
{ name: "Contact Us", href: ROUTES.SUPPORT },
{ name: "Status", href: "https://status.changes.page" },
Expand All @@ -41,7 +46,6 @@ const navigation = {
name: "Release Calendar",
href: "/free-tools/release-calendar",
},
{ name: "Blog", href: ROUTES.BLOG },
],
legal: [
{ name: "Privacy", href: ROUTES.PRIVACY },
Expand Down Expand Up @@ -158,6 +162,17 @@ export default function FooterComponent() {
</a>
</li>
))}
<li>
<button
onClick={() => {
// @ts-ignore
window?.ChangesPage?.openWidget();
}}
className="text-sm leading-6 text-gray-300 hover:text-white changes-page-btn"
>
What&apos;s New
</button>
</li>
</ul>
</div>
</div>
Expand All @@ -177,17 +192,6 @@ export default function FooterComponent() {
</Link>
</li>
))}
<li>
<button
onClick={() => {
// @ts-ignore
window?.ChangesPage?.openWidget();
}}
className="text-sm leading-6 text-gray-300 hover:text-white changes-page-btn"
>
What&apos;s New
</button>
</li>
</ul>
</div>
<div className="mt-10 md:mt-0">
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@changes-page/web",
"version": "1.19.0",
"version": "1.20.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
19 changes: 0 additions & 19 deletions apps/web/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Analytics } from "@vercel/analytics/next";
import dynamic from "next/dynamic";
import localFont from "next/font/local";
import Head from "next/head";
import "../styles/global.css";
import { UserContextProvider } from "../utils/useUser";
Expand All @@ -12,19 +11,6 @@ const ProgressBar = dynamic(
}
);

const geist = localFont({
src: [
{ path: "../public/fonts/Geist/Geist-Regular.otf", weight: "500" },
{ path: "../public/fonts/Geist/Geist-Medium.otf", weight: "600" },
{ path: "../public/fonts/Geist/Geist-SemiBold.otf", weight: "700" },
{ path: "../public/fonts/Geist/Geist-Bold.otf", weight: "800" },
{ path: "../public/fonts/Geist/Geist-Black.otf", weight: "900" },
],
display: "swap",
variable: "--font-geist-sans",
fallback: ["inter"],
});

export default function App({ Component, pageProps }) {
const getLayout = Component.getLayout || ((page) => page);

Expand All @@ -36,11 +22,6 @@ export default function App({ Component, pageProps }) {
content="width=device-width, initial-scale=1.0, maximum-scale=5.0"
></meta>
</Head>
<style jsx global>{`
:root {
--geist-font: ${geist.style.fontFamily};
}
`}</style>
<UserContextProvider initialSession={pageProps.initialSession}>
{getLayout(<Component {...pageProps} />)}
<ProgressBar />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/api/blog/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NextRequest } from "next/server";

const font = fetch(
new URL(
"../../../public/fonts/Geist/Geist-SemiBold.otf",
"../../../public/fonts/Geist-SemiBold.otf",
import.meta.url
).toString()
).then((res) => res.arrayBuffer());
Expand Down
13 changes: 9 additions & 4 deletions apps/web/pages/api/integrations/github/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function getRawBody(req: NextApiRequest): Promise<string> {
return Buffer.concat(chunks).toString("utf8");
}

const BOT_MENTION = `@${process.env.GITHUB_APP_SLUG || "changespage"}`;
const BOT_MENTIONS = ["@changepage", "@changes-page"];

export default async function handler(
req: NextApiRequest,
Expand Down Expand Up @@ -67,7 +67,12 @@ async function handleIssueComment(payload: any, res: NextApiResponse) {
return res.status(200).json({ message: "Not a PR comment, skipping" });
}

if (!comment.toLowerCase().includes(BOT_MENTION.toLowerCase())) {
const commentLower = comment.toLowerCase();
const foundMention = BOT_MENTIONS.find((mention) =>
commentLower.includes(mention.toLowerCase())
);

if (!foundMention) {
return res.status(200).json({ message: "No mention found, skipping" });
}

Expand All @@ -84,9 +89,9 @@ async function handleIssueComment(payload: any, res: NextApiResponse) {
const commentId = payload.comment.id;
const commentAuthor = payload.comment.user.login;

const mentionIndex = comment.toLowerCase().indexOf(BOT_MENTION.toLowerCase());
const mentionIndex = commentLower.indexOf(foundMention.toLowerCase());
const userInstructions = comment
.substring(mentionIndex + BOT_MENTION.length)
.substring(mentionIndex + foundMention.length)
.trim();

console.log("Processing changelog request:", {
Expand Down
Loading