Fix pr-review.yml with proper GitHub Actions workflow #3
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.
Summary
The
pr-review.ymlfile previously contained git shell commands instead of a valid GitHub Actions workflow definition, causing it to be ignored by GitHub (resulting in "Checks: 0" on PRs). This PR replaces the invalid content with a proper workflow that automatically posts a welcome comment on new PRs.The workflow triggers on
pull_requestevents (opened/reopened) and posts a comment containing PR statistics (files changed, lines added/removed) and a review checklist for maintainers.Review & Testing Checklist for Human
Recommended test plan: After merging, create a test PR to verify the workflow runs and posts the welcome comment correctly. Check that the comment formatting looks clean without extra indentation.
Notes
The
fetch-depth: 0in the checkout step may be unnecessary since we're only posting a comment, but it doesn't cause any issues.Link to Devin run: https://medline.devinenterprise.com/sessions/7d77bf01e9f74760871abfdbc2516613
Requested by: sshankar@medline.com (@sshankarmedline)