Skip to content

Commit

Permalink
Removed duplicate function call to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Cortez committed Jun 27, 2024
1 parent 213e176 commit de7c895
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion server/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion server/views/error.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ block content
h1= message
h2= error.status
pre #{error.stack}
p= gpterror
2 changes: 0 additions & 2 deletions server/views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de7c895

Please sign in to comment.