Skip to content

Commit 672ba20

Browse files
update
1 parent 9753e68 commit 672ba20

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

jira/src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const geistMono = localFont({
1414
});
1515

1616
export const metadata: Metadata = {
17-
title: "Create Next App",
18-
description: "Generated by create next app",
17+
title: "Webhook Monitor",
18+
description: "receive webhook from jira and bytebase",
1919
};
2020

2121
export default function RootLayout({

jira/src/app/page.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,19 @@ export default function WebhookInfoPage() {
7474
return (
7575
<div className="p-4 max-w-4xl mx-auto">
7676
<h1 className="text-2xl font-bold mb-1">Webhook Monitor</h1>
77-
<h2 className="text-sm text-gray-500 mb-4">Fetch latest Jira and Bytebase Issue, Refresh every 3 seconds</h2>
77+
<h2 className="text-sm text-gray-500 mb-4">Fetch latest Jira and Bytebase Issue related webhook, auto refresh every 3 seconds</h2>
78+
<ol className="list-decimal list-inside text-sm mb-4">
79+
<li> A new issue created in Jira will trigger a new issue creation in Bytebase </li>
80+
<li> When the issue is created in Bytebase, the Jira issue will be updated with the Bytebase issue link and set to In progress </li>
81+
<li> When the issue in Bytebase is updated as Done, the Jira issue will be set to Done </li>
82+
</ol>
7883

7984
{error && <p className="text-red-500 mb-4">{error}</p>}
8085

8186
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
8287
{jiraInfo && (
8388
<div className="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
84-
<h3 className="text-xl font-semibold mb-4">Jira Issue</h3>
89+
<h3 className="text-xl font-semibold mb-4">Last changed Jira Issue</h3>
8590
<p><strong>Issue Key:</strong> {jiraInfo.issueKey}</p>
8691
<p><strong>Issue Type:</strong> {jiraInfo.issueType}</p>
8792
<p><strong>Project Key:</strong> {jiraInfo.projectKey}</p>
@@ -96,7 +101,7 @@ export default function WebhookInfoPage() {
96101

97102
{bytebaseInfo && (
98103
<div className="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
99-
<h3 className="text-xl font-semibold mb-4">Bytebase Issue</h3>
104+
<h3 className="text-xl font-semibold mb-4">Last changed Bytebase Issue</h3>
100105
<p><strong>Issue ID:</strong> {bytebaseInfo.issueId}</p>
101106
<p><strong>Issue Name:</strong> {bytebaseInfo.issueName}</p>
102107
<p><strong>Issue Status:</strong> {bytebaseInfo.issueStatus}</p>

0 commit comments

Comments
 (0)