Skip to content

Conversation

@longsizhuo
Copy link
Member

Summary

  • add check:content script to package.json
  • run content layer check in new workflow

Testing

  • pnpm run check:content (fails: The "code" argument must be of type number)

https://chatgpt.com/codex/tasks/task_e_68c2f83cb5a48323927b38b9c90cce0d

@longsizhuo longsizhuo merged commit 8a70852 into main Sep 11, 2025
1 check passed
@chatgpt-codex-connector
Copy link

Codex Review: Here are some suggestions.

https://github.com/InvolutionHell/involutionhell.github.io/blob/7bc2b45f5284ddfb3fdb008014a0e96926a4a4c0/.github/workflows/content-check.yml#L34-L35
[P1] Avoid CI step that always crashes

The new content-check job runs pnpm run check:content, which currently crashes in this repo with TypeError: The "code" argument must be of type number. Received an instance of Object from the Contentlayer CLI. Because the command exits with an exception even after generating documents, this workflow will fail for every pull request that touches docs regardless of content validity. CI will therefore block all such PRs until the underlying command is adjusted (e.g., by upgrading Contentlayer or invoking a different check that exits cleanly).


Reply with @codex fix comments to fix any unresolved comments.

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, or 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 fix this CI failure" or "@codex address that feedback".

Copy link

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

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 suggestions.

Reply with @codex fix comments to fix any unresolved comments.

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, or 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 fix this CI failure" or "@codex address that feedback".

Comment on lines +34 to +35
- run: pnpm install --frozen-lockfile
- run: pnpm run check:content

Choose a reason for hiding this comment

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

[P1] Avoid CI step that always crashes

The new content-check job runs pnpm run check:content, which currently crashes in this repo with TypeError: The "code" argument must be of type number. Received an instance of Object from the Contentlayer CLI. Because the command exits with an exception even after generating documents, this workflow will fail for every pull request that touches docs regardless of content validity. CI will therefore block all such PRs until the underlying command is adjusted (e.g., by upgrading Contentlayer or invoking a different check that exits cleanly).

Useful? React with 👍 / 👎.

@longsizhuo longsizhuo deleted the codex/add-content-check-workflow branch September 17, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants