diff --git a/server/routes/index.js b/server/routes/index.js index 34682b9..1bd1d2c 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -46,7 +46,6 @@ router.post('/webhook', async (req, res) => { } catch (error) { // Log the error to the server console.error('Error processing webhook:', error); - res.render('error', { gpterror: error }); // Send an error response to GitHub res.status(500).send('Internal Server Error'); diff --git a/server/views/error.pug b/server/views/error.pug index e881a98..51ec12c 100644 --- a/server/views/error.pug +++ b/server/views/error.pug @@ -4,4 +4,3 @@ block content h1= message h2= error.status pre #{error.stack} - p= gpterror diff --git a/server/views/index.pug b/server/views/index.pug index dbea8e2..73813d8 100644 --- a/server/views/index.pug +++ b/server/views/index.pug @@ -11,8 +11,6 @@ block content p Updated local repo on remote server to keep synced with the existing repository p Rebooted remote server and push again to test. h1 ChatGPT Integration Progress Check - p= gptprompt - p= gptmessage p Test GitHub Webhook p Added chatgpt api key p Implemented a function to expand the commit message using OpenAI API