Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reverting workflow changes #2498
reverting workflow changes #2498
Changes from 2 commits
f8b910f
e07a558
7af0a38
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix YAML structure for new jobs
The
Start-App-Without-Docker
job is incorrectly indented and duplicates keys from the previous job.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.4)
283-283: unexpected key "Start-App-Without-Docker" for "job" section. expected one of "concurrency", "container", "continue-on-error", "defaults", "env", "environment", "if", "name", "needs", "outputs", "permissions", "runs-on", "secrets", "services", "steps", "strategy", "timeout-minutes", "uses", "with"
(syntax-check)
284-284: key "name" is duplicated in "Graphql-Inspector" job. previously defined at line:258,col:5
(syntax-check)
285-285: key "runs-on" is duplicated in "Graphql-Inspector" job. previously defined at line:259,col:5
(syntax-check)
287-287: key "if" is duplicated in "Graphql-Inspector" job. previously defined at line:257,col:5
(syntax-check)
288-288: key "steps" is duplicated in "Graphql-Inspector" job. previously defined at line:260,col:5
(syntax-check)
🪛 yamllint (1.35.1)
[error] 284-284: duplication of key "name" in mapping
(key-duplicates)
[error] 285-285: duplication of key "runs-on" in mapping
(key-duplicates)
[error] 287-287: duplication of key "if" in mapping
(key-duplicates)
[error] 288-288: duplication of key "steps" in mapping
(key-duplicates)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Improve shell script safety and reusability
The health check logic is duplicated across multiple places.
Shell variables should be properly quoted to prevent word splitting.
Create a reusable health check script:
Also applies to: 333-346, 381-395
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderabbitai all the workflows aren't getting trigerred, check pull-request.yml file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prayanshchh, it seems that the workflows aren't getting triggered due to indentation issues in your
pull-request.yml
file. The new job definitions forStart-App-Without-Docker
andDocker-Start-Check
need to be properly indented under thejobs:
section.Here's how you can adjust the indentation:
Ensure that all jobs are correctly indented under the
jobs:
key. Incorrect indentation can prevent GitHub Actions from recognizing and triggering the workflows.You might also want to validate your YAML file using a linter or an online YAML validator to catch any syntax errors.
Let me know if this helps resolve the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Improve shell script safety and reduce duplication
The health check logic is duplicated across multiple places and has shell script safety issues:
Shell variables should be properly quoted
Health check logic should be extracted into a reusable script
Create a reusable health check script:
Also applies to: 333-346, 381-395
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double quote variables in shell scripts
Shell variables should be properly quoted to prevent word splitting and globbing issues.
🧰 Tools
🪛 actionlint (1.7.4)
381-381: shellcheck reported issue in this script: SC2086:info:3:35: Double quote to prevent globbing and word splitting
(shellcheck)
381-381: shellcheck reported issue in this script: SC2086:info:10:6: Double quote to prevent globbing and word splitting
(shellcheck)