First one for demo#5
Conversation
|
Here is the combined summary table:
Let me know if you have more tables to combine! |
| @@ -68,4 +46,6 @@ jobs: | |||
| docker run --rm -e OWNER='${{env.REPOSITORY_OWNER}}' -e REPO_NAME='${{env.REPOSITORY_NAME}}' -e COMMIT_SHA="${{ github.event.pull_request.head.sha }}" -e PR_NUMBER="${{ github.event.pull_request.number }}" -e ACTION="${{env.ACTION}}" -e EVENT_NAME="${{ env.EVENT_NAME }}" arshikjaved/pr-review:v1.0 sh -c "python /app/generate_response.py --owner '${{env.REPOSITORY_OWNER}}' --repo-name '${{env.REPOSITORY_NAME}}' --commit-sha '${{ env.COMMIT_SHA }}' --pr-number '${{ env.PR_NUMBER }}' --event-name '${{ env.EVENT_NAME }}' --action '${{ env.ACTION }}'" | |||
There was a problem hiding this comment.
The docker run command is not checking if the environment variables are set before using them. This can lead to errors if the variables are not set. Consider adding checks to ensure the variables are set before using them.
| @@ -68,4 +46,6 @@ jobs: | |||
| docker run --rm -e OWNER='${{env.REPOSITORY_OWNER}}' -e REPO_NAME='${{env.REPOSITORY_NAME}}' -e COMMIT_SHA="${{ github.event.pull_request.head.sha }}" -e PR_NUMBER="${{ github.event.pull_request.number }}" -e ACTION="${{env.ACTION}}" -e EVENT_NAME="${{ env.EVENT_NAME }}" arshikjaved/pr-review:v1.0 sh -c "python /app/generate_response.py --owner '${{env.REPOSITORY_OWNER}}' --repo-name '${{env.REPOSITORY_NAME}}' --commit-sha '${{ env.COMMIT_SHA }}' --pr-number '${{ env.PR_NUMBER }}' --event-name '${{ env.EVENT_NAME }}' --action '${{ env.ACTION }}'" | |||
| else | |||
| docker run --rm -e OWNER='${{env.REPOSITORY_OWNER}}' -e REPO_NAME='${{env.REPOSITORY_NAME}}' -e COMMIT_SHA="${{ github.event.pull_request.head.sha }}" -e PR_NUMBER="${{ github.event.pull_request.number }}" -e EVENT_NAME="${{ env.EVENT_NAME }}" arshikjaved/pr-review:v1.0 sh -c "python /app/reply_thread.py --owner '${{env.REPOSITORY_OWNER}}' --repo-name '${{env.REPOSITORY_NAME}}' --commit-sha '${{ env.COMMIT_SHA }}' --pr-number '${{ env.PR_NUMBER }}' --event-name '${{ env.EVENT_NAME }}' --comment-body '${{ env.COMMENT_BODY }}' --comment-id '${{ env.COMMENT_ID }}' --file-path '${{ env.FILE_PATH }}' --line-number '${{ env.LINE_NUMBER }}'" | |||
There was a problem hiding this comment.
The docker run command is not checking if the script exists before running it. It's possible that the script might not exist in the container, which would cause the command to fail. Consider adding a check to ensure the script exists before running it.
|
Here is the combined summary table:
|
|
|
||
| exports.list = (req, res) => { | ||
| Category.find().exec((err, data) => { | ||
| Categoryy.find().exec((err, data) => { |
There was a problem hiding this comment.
Typo in Categoryy, it should be Category.
| if (err) { | ||
| return res.status(400).json({ | ||
| error: errorHandler(err), | ||
| error: errorHandlerr(err), |
There was a problem hiding this comment.
Typo in errorHandlerr, it should be errorHandler.
| router.post('/signup', userSignupValidator, signup); | ||
| router.post('/signin', signin); | ||
| router.get('/signout', signout); | ||
| router.post('/signup', userSignupValidator, signups); |
There was a problem hiding this comment.
signups is not defined in this file. It should be imported from the controllers/auth file or defined in this file.
| router.post('/signin', signin); | ||
| router.get('/signout', signout); | ||
| router.post('/signup', userSignupValidator, signups); | ||
| router.post('/signin', signins); |
There was a problem hiding this comment.
signins is not defined in this file. It should be imported from the controllers/auth file or defined locally.
| router.get('/signout', signout); | ||
| router.post('/signup', userSignupValidator, signups); | ||
| router.post('/signin', signins); | ||
| router.get('/signout', signouts); |
There was a problem hiding this comment.
signouts is not defined in this file. It should be imported from the controllers or defined locally.
| router.get('/signout', signout); | ||
| router.post('/signup', userSignupValidator, signups); | ||
| router.post('/signin', signins); | ||
| router.get('/signout', signoutss); |
There was a problem hiding this comment.
signoutss is not defined in this file, but it's being used as a callback function. It should be signout instead, which is imported from ../controllers/auth.
| router.post('/signup', userSignupValidator, signup); | ||
| router.post('/signin', signin); | ||
| router.get('/signout', signout); | ||
| router.post('/signup', userSignupValidator, signupss); |
There was a problem hiding this comment.
signupss is not defined in this file, but signup is imported from ../controllers/auth. It seems like there's a typo and it should be signup instead of signupss.
| router.post('/signin', signin); | ||
| router.get('/signout', signout); | ||
| router.post('/signup', userSignupValidator, signupss); | ||
| router.post('/signin', signinss); |
There was a problem hiding this comment.
signinss is not defined in this file, and it's not imported from anywhere. It should be signin instead of signinss.
|
Here is the combined summary table:
|
|
Here is the combined summary table:
|
|
Here is the combined summary table:
Let me know if this meets your requirements! |
|
Here is the combined summary table:
Let me know if this meets your requirements! |
| router.post('/signup', userSignupValidator, signup); | ||
| router.post('/signin', signin); | ||
| router.get('/signout', signout); | ||
| router.post('/signup', userSignupValidator, signupss); |
There was a problem hiding this comment.
The function signupss is not defined in the provided context. It seems like it should be signup instead of signupss.
| router.post('/signin', signin); | ||
| router.get('/signout', signout); | ||
| router.post('/signup', userSignupValidator, signupss); | ||
| router.post('/signin', signinss); |
There was a problem hiding this comment.
The function signinss is not defined in the provided context. It seems like it should be signin instead of signinss. The correct line should be router.post('/signin', signin);.
There was a problem hiding this comment.
@CodeHawk Can you please this in simpler terms. Like very simple terms. Pretend im not a developer
There was a problem hiding this comment.
Here's a simple explanation: You've written signinss instead of signin. It should be router.post('/signin', signin); because signinss is not defined anywhere.
No description provided.