File tree Expand file tree Collapse file tree 7 files changed +178
-8
lines changed Expand file tree Collapse file tree 7 files changed +178
-8
lines changed Original file line number Diff line number Diff line change 59
59
core
60
60
61
61
# gh-service sqlite cache
62
- gh-service /state.sqlite
62
+ gh-service /state.sqlite
63
+
64
+ ** /* .sqlite
65
+ ** /* .sqlite-journal
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
import type { NextConfig } from "next" ;
2
2
3
3
const nextConfig : NextConfig = {
4
+ output : "standalone" ,
5
+ webpack : ( config , { isServer } ) => {
6
+ if ( ! isServer ) {
7
+ config . resolve . fallback = {
8
+ ...config . resolve . fallback ,
9
+ fs : false ,
10
+ net : false ,
11
+ tls : false ,
12
+ } ;
13
+ }
14
+ return config ;
15
+ } ,
4
16
} ;
5
17
6
18
export default nextConfig ;
Original file line number Diff line number Diff line change 180
180
"prettier-plugin-packagejson" : " ^2.5.1" ,
181
181
"react" : " 19.0.0" ,
182
182
"react-dom" : " 19.0.0" ,
183
+ "string-replace-loader" : " ^3.2.0" ,
183
184
"tailwindcss" : " ^3.4.7" ,
184
185
"ts-toolbelt" : " ^9.6.0" ,
185
186
"type-fest" : " ^4.41.0" ,
Original file line number Diff line number Diff line change @@ -11,12 +11,7 @@ COPY package.json bun.lock ./
11
11
RUN bun install --production --ignore-scripts
12
12
13
13
# Copy source code
14
- COPY src ./src
15
- COPY run ./run
16
-
17
- # Create necessary directories and set permissions
18
- RUN mkdir -p /app/node_modules/.cache/Comfy-PR && \
19
- chmod 755 /app/node_modules/.cache/Comfy-PR
14
+ COPY ../ .
20
15
21
16
# Expose port
22
17
EXPOSE 8080
Original file line number Diff line number Diff line change @@ -43,4 +43,26 @@ export function onIssueComment(
43
43
}
44
44
export function onIssue (
45
45
payload : GH [ "webhook-issues-opened" ] | GH [ "webhook-issues-edited" ] | GH [ "webhook-issues-deleted" ] ,
46
- ) ;
46
+ ) : void {
47
+ const timestamp = new Date ( ) . toISOString ( ) ;
48
+ const repoName = `${ payload . repository . owner . login } /${ payload . repository . name } ` ;
49
+ const { action, issue, sender } = payload ;
50
+
51
+ const issueNumber = issue . number ;
52
+ const username = sender . login ;
53
+
54
+ match ( action )
55
+ . with ( "opened" , ( ) => {
56
+ console . log ( `[${ timestamp } ] 🆕 NEW ISSUE: ${ repoName } #${ issueNumber } by ${ username } ` ) ;
57
+ if ( issue . title ) {
58
+ console . log ( `[${ timestamp } ] 📋 Title: "${ issue . title } "` ) ;
59
+ }
60
+ } )
61
+ . with ( "edited" , ( ) => {
62
+ console . log ( `[${ timestamp } ] ✏️ ISSUE EDITED: ${ repoName } #${ issueNumber } by ${ username } ` ) ;
63
+ } )
64
+ . with ( "deleted" , ( ) => {
65
+ console . log ( `[${ timestamp } ] 🗑️ ISSUE DELETED: ${ repoName } #${ issueNumber } by ${ username } ` ) ;
66
+ } )
67
+ . exhaustive ( ) ;
68
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "buildCommand" : " bun run build" ,
3
+ "devCommand" : " bun run dev" ,
4
+ "installCommand" : " bun install" ,
5
+ "framework" : " nextjs" ,
6
+ "functions" : {
7
+ "app/api/**/*.ts" : {
8
+ "maxDuration" : 30
9
+ }
10
+ },
11
+ "build" : {
12
+ "env" : {
13
+ "NODE_OPTIONS" : " --max-old-space-size=4096"
14
+ }
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments