Skip to content

Commit 51d64e1

Browse files
committed
remove feedback fish / improve ticket regex
remove feedback fish in favor of link to github issues support lowercase, missing hyphen in ticket regex
1 parent 253f0de commit 51d64e1

File tree

5 files changed

+21
-25
lines changed

5 files changed

+21
-25
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"lint": "next lint",
1010
"precommit": "",
1111
"prepare": "husky install",
12-
"prisma:generate": "prisma generate"
12+
"prisma:generate": "prisma generate",
13+
"getEnvVars": "vercel env pull"
1314
},
1415
"dependencies": {
1516
"@chakra-ui/icons": "^2.0.11",
1617
"@chakra-ui/react": "^2.3.7",
1718
"@emotion/react": "^11.10.5",
1819
"@emotion/styled": "^11.10.5",
19-
"@feedback-fish/react": "^1.2.1",
2020
"@tanstack/react-query": "^4.15.0",
2121
"@trpc/client": "^10.0.0-rc.7",
2222
"@trpc/next": "^10.0.0-rc.7",

pages/_app.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import Home from ".";
88
import { trpc } from "../src/trpc";
99
import Script from "next/script";
1010
import { Github } from "../src/components/shared/Github";
11-
import { FeedbackFish } from "../src/components/shared/FeedbackFish";
1211

1312
const title = "Jira Ticket Bot - for GitHub";
1413
const description =
@@ -54,7 +53,24 @@ function MyApp({ Component, pageProps }: AppProps) {
5453
</ChakraProvider>
5554
</QueryClientProvider>
5655
<Github />
57-
<FeedbackFish />
56+
<div
57+
style={{
58+
position: "fixed",
59+
bottom: 30,
60+
left: 75,
61+
fontWeight: "bold",
62+
background: "white",
63+
}}
64+
>
65+
<a
66+
href="https://github.com/hjoelh/Jira-Ticket-Bot/issues"
67+
target="_blank"
68+
style={{ fontWeight: "bold" }}
69+
rel="noreferrer"
70+
>
71+
Idea, feedback, issue?
72+
</a>
73+
</div>
5874
</>
5975
);
6076
}

pages/api/github/webhooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const bot = (app: Probot) => {
3939

4040
const log = console.log;
4141

42-
const JIRA_ISSUE_REGEX = /[A-Z]{2,}-\d+/g;
42+
const JIRA_ISSUE_REGEX = /[A-Za-z]{2,}-\d+/g;
4343

4444
const generateJiraLink = (issueId: string, domain: string) =>
4545
`https://${domain}.atlassian.net/browse/${issueId}`;

src/components/shared/FeedbackFish.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -952,11 +952,6 @@
952952
minimatch "^3.1.2"
953953
strip-json-comments "^3.1.1"
954954

955-
"@feedback-fish/react@^1.2.1":
956-
version "1.2.1"
957-
resolved "https://registry.yarnpkg.com/@feedback-fish/react/-/react-1.2.1.tgz#b4d226f310df936517e9e5e82397806a5df4e2d8"
958-
integrity sha512-4YFD2hE93xBIT/Ko0x0l6UB0OyaxJcWKLGrnznsUVoLE5Q9vB8I1LEbMySYyuvbU9ul3yM3FjGkVZhYVPdwEyA==
959-
960955
"@hapi/bourne@^2.0.0":
961956
version "2.1.0"
962957
resolved "https://registry.npmjs.org/@hapi/bourne/-/bourne-2.1.0.tgz"

0 commit comments

Comments
 (0)