Skip to content

feat(ci): add PR readiness check workflow#1539

Closed
Priyanshu-u07 wants to merge 1 commit into
hermetoproject:mainfrom
Priyanshu-u07:ci/pr-readiness-check
Closed

feat(ci): add PR readiness check workflow#1539
Priyanshu-u07 wants to merge 1 commit into
hermetoproject:mainfrom
Priyanshu-u07:ci/pr-readiness-check

Conversation

@Priyanshu-u07

Copy link
Copy Markdown
Contributor

Add a GitHub Actions workflow that automatically checks PRs for common issues and posts an actionable comment.

  • Missing DCO sign-off
  • Empty commit messages
  • Missing commit description
  • Merge commits

The workflow uses pull_request_target to comment on fork PRs without checking out or executing PR code. It posts a single comment that updates on each push. It skips DCO/description checks on merge commits (fix is to remove them).

Groups issues by type to keep comments clean

Demo

Tested on my fork with different scenarios:

Note:
In addition to the checks discussed in #1521 , I also added a check for missing commit description body, since all merged PRs in the repo follow this convention. Happy to remove if preferred.

Closes #1521
image
image

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Add a GitHub Actions workflow that automatically checks PRs for common issues:
- Missing DCO sign-off
- Empty commit messages
- Missing commit description
- Merge commits
The workflow uses pull_request_target to comment on fork PRs without checking out or executing PR code. It posts a single comment that updates on each push.
Closes hermetoproject#1521

Signed-off-by: Priyanshu Kumar <connect.priyanshu8271@gmail.com>
@Priyanshu-u07 Priyanshu-u07 force-pushed the ci/pr-readiness-check branch from 2d4ac80 to ec55107 Compare May 1, 2026 17:50
@slimreaper35

Copy link
Copy Markdown
Member

Closing ?

@eskultety

Copy link
Copy Markdown
Member

Closing ?

The idea is still sound - provide early feedback on new PRs on fundamentals. Review agents running in the repo context (i.e. installed on the repo as a GH app or in a runner) only see the overall changes against the merge base. That said, I'm not particularly pleased we'd need to maintain a JS script in a new GH workflow (which truth to be told was the expected outcome given the options we have).

I also considered what if we formulated this as some preflight-check agent skill locally - well, that just invites anyone to open a PR with a malicious intent to prompt inject local systems hoping folks would run the preflight-check blindly on any new PR.

@slimreaper35

Copy link
Copy Markdown
Member

Okay 😄 But I think the idea of having a script for checking commit message body is wild. Hopefully, it won't discourage some human contributors.

@eskultety

Copy link
Copy Markdown
Member

I think the idea of having a script for checking commit message body is wild.

It is. This surely is effort that is providing marginal improvement, we've known that since the beginning. There are various factors on why that is and why we're limited. I'm okay if we abandon this effort. It was needed when we got the wave of AI slop a few months back but the situation has stabilized for now.

@Priyanshu-u07

Copy link
Copy Markdown
Contributor Author

Thanks for the discussion! I understand that the original problem has been resolved, so I'm happy to close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat: add automated PR review readiness checks

3 participants