Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@terwey
Copy link
Collaborator

@terwey terwey commented Nov 3, 2025

No description provided.

@terwey terwey merged commit b68db89 into main Nov 3, 2025
@terwey terwey deleted the gh-action/generate-error branch November 3, 2025 13:36
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 automated review suggestions for this pull request.

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

Comment on lines +1 to +11
name: Generated Code Guard

on:
push:
paths:
- 'storage/sqlcgen/**'
- 'internal/api/ops.gen.go'
pull_request:
paths:
- 'storage/sqlcgen/**'
- 'internal/api/ops.gen.go'

Choose a reason for hiding this comment

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

P1 Badge Guard never runs when only sources change

The workflow watches storage/sqlcgen/** and internal/api/ops.gen.go for both push and pull_request events, then regenerates those files to verify they are committed. However, the SQL and OpenAPI definitions that produce these outputs (storage/sqlc/**, openapi.yaml, oapi.yaml, etc.) are not included in the trigger or in the changed-files groups. A contributor can modify the source schema/spec without touching the generated artifacts and CI will not run this guard, allowing stale generated code to merge unnoticed. Consider adding the source files to the paths filter and the files_yaml so the job regenerates when the true inputs change.

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.

2 participants