Skip to content

Polish open source project hygiene#38

Merged
Pigbibi merged 1 commit into
mainfrom
codex/open-source-standards-polish
Jun 9, 2026
Merged

Polish open source project hygiene#38
Pigbibi merged 1 commit into
mainfrom
codex/open-source-standards-polish

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • ignore Worker deployment config and generic env files at the repository level
  • make README quick-start commands match the dependency-free CI path
  • add whitespace checking to validate workflow

Tests

  • python3 scripts/runtime_settings.py validate
  • python3 -m unittest discover -s tests -v
  • node --experimental-default-type=module tests/strategy_switch_worker_validation.mjs
  • git diff --check

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a74af95f54

ℹ️ 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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fetch enough history before diffing PRs

In the pull_request path, this diff usually runs after actions/checkout has checked out the synthetic PR merge commit with its default shallow history (fetch-depth: 1). Fetching only the base branch tip at depth 1 leaves both commits grafted, so git diff origin/${{ github.base_ref }}...HEAD cannot find a merge base and exits with fatal: ... no merge base, failing CI for normal PRs before tests run. I reproduced the same sequence with a shallow checkout of a PR merge ref plus git fetch --depth=1 origin main; use a non-shallow checkout/fetch or diff against the appropriate event SHAs instead.

Useful? React with 👍 / 👎.

@Pigbibi Pigbibi force-pushed the codex/open-source-standards-polish branch from a74af95 to b9dc46f Compare June 9, 2026 12:19
@Pigbibi Pigbibi merged commit 5db4899 into main Jun 9, 2026
2 checks passed
@Pigbibi Pigbibi deleted the codex/open-source-standards-polish branch June 9, 2026 12:20

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9dc46f836

ℹ️ 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".

run: |
set -euo pipefail
if [ "${{ github.event_name }}" = "pull_request" ]; then
git fetch --no-tags --depth=1 origin "${{ github.base_ref }}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid re-shallowing the base before diffing

In pull_request runs this fetch still uses --depth=1; even with the new checkout fetch-depth: 0, running a full clone followed by this exact fetch creates .git/shallow at the base tip, so git diff origin/${{ github.base_ref }}...HEAD can again fail with no merge base for a PR merge commit. Fresh evidence after the new change is that the later fetch is what reintroduces the shallow boundary; git fetch -h also distinguishes --depth <depth> from --unshallow, so the safer fix is to avoid the shallow fetch here or explicitly unshallow/fetch enough history before the three-dot diff.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant