Skip to content

[codex] Add CI-gated Dependabot automation#30

Merged
Pigbibi merged 3 commits into
mainfrom
codex/dependabot-ci-automerge
Jun 22, 2026
Merged

[codex] Add CI-gated Dependabot automation#30
Pigbibi merged 3 commits into
mainfrom
codex/dependabot-ci-automerge

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add pull request CI for the Python package test suite
  • add weekly Dependabot updates for Python packages and GitHub Actions
  • auto-merge eligible non-major Dependabot PRs only after CI succeeds

Validation

  • CI on this PR will install the package with test extras and run pytest

@Pigbibi Pigbibi merged commit 63c9fb5 into main Jun 22, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/dependabot-ci-automerge branch June 22, 2026 10:24

@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: 381de40857

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

is_major = "update-type: version-update:semver-major" in body
dependabot_authors = {"dependabot[bot]", "app/dependabot"}
is_dependabot = author in dependabot_authors and "dependencies" in labels
should_merge = is_dependabot and not pr.get("isDraft") and not is_major

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 Require CI success for the PR head being merged

When Dependabot pushes or rebases the same branch while an older CI run is still finishing, this workflow_run can be successful for the old commit, but the later merge step operates on the PR's current head. Since should_merge does not compare the successful run's SHA/check suite with the current PR head, a newer untested or failing commit can be merged unless branch protection independently blocks it. Gate this on the current PR head having the successful CI result before returning true.

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