[codex] add CI workflow lint and whitespace checks#36
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: efced0e114
ℹ️ 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.
Fetch enough history before triple-dot diff
On pull_request runs this uses origin/${{ github.base_ref }}...HEAD, but the preceding checkout still has the default shallow history: the checkout README documents fetch-depth defaulting to 1, and Git documents A...B as diffing from merge-base A B. In that shallow PR checkout Git cannot find the merge base even after fetching the base tip, so this step exits with fatal: ... no merge base and blocks the CI before tests run. Set fetch-depth: 0/fetch the merge base, or diff against an explicitly fetched base SHA.
Useful? React with 👍 / 👎.
Co-Authored-By: Codex <noreply@openai.com>
Summary
Validation