[codex] add CI workflow lint and whitespace checks#52
Conversation
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b755644839
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| set -euo pipefail | ||
| if [ "${{ github.event_name }}" = "pull_request" ]; then | ||
| git fetch --no-tags --depth=1 origin "${{ github.base_ref }}" | ||
| git diff --check "origin/${{ github.base_ref }}...HEAD" |
There was a problem hiding this comment.
Deepen checkout before triple-dot diffing
In pull_request runs, the checkout step above uses the default depth-1 checkout of the PR merge commit, and this fetch adds only the base tip. Git documents the A...B diff form as requiring the merge base between the two commits; with both refs shallow there is no merge base, so git diff --check "origin/${{ github.base_ref }}...HEAD" exits with fatal: ... no merge base and blocks PR CI before tests. Please deepen/unshallow the checkout or diff against a fetched base SHA without requiring a merge base.
Useful? React with 👍 / 👎.
Co-Authored-By: Codex <noreply@openai.com>
Summary
Validation