Skip to content

Run minimum CI for draft pull requests - #2509

Merged
yahonda merged 1 commit into
rsim:masterfrom
yahonda:draft-pr-just-runs-minimum-ci
Apr 10, 2026
Merged

Run minimum CI for draft pull requests#2509
yahonda merged 1 commit into
rsim:masterfrom
yahonda:draft-pr-just-runs-minimum-ci

Conversation

@yahonda

@yahonda yahonda commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Run minimum CI (linting, rubocop, test) for draft pull requests to shorten the feedback loop during frequent updates
  • test_11g and test_11g_ojdbc11 workflows skip draft PRs and run when marked "Ready for review" or on direct pushes to master
  • Add ready_for_review to pull_request activity types so the workflows trigger when a draft PR is marked ready
  • Restrict push trigger to master branch to prevent branch pushes from bypassing the draft check

Test plan

  • Draft PR runs only linting, rubocop, and test workflows
  • Marking PR as "Ready for review" triggers test_11g and test_11g_ojdbc11

🤖 Generated with Claude Code

@yahonda yahonda changed the title Skip test_11g workflows for draft pull requests Run minimum CI for draft pull requests Apr 10, 2026
@yahonda
yahonda marked this pull request as draft April 10, 2026 04:17
@yahonda
yahonda force-pushed the draft-pr-just-runs-minimum-ci branch from d3c2e2e to 498de02 Compare April 10, 2026 04:18
@yahonda

yahonda commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator Author

It works as expected, when this pull request is Draft one it skips the test-11g and test_11g_ojdbc jobs.

@yahonda
yahonda marked this pull request as ready for review April 10, 2026 04:27
@yahonda
yahonda marked this pull request as draft April 10, 2026 04:28
@yahonda

yahonda commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator Author

Back to draft to see if 495b01b works.

Draft PRs are frequently updated, so run only linting, rubocop,
and test workflows to shorten the feedback loop. The test_11g and
test_11g_ojdbc11 workflows run when a PR is marked ready for review
or on direct pushes to master.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yahonda
yahonda force-pushed the draft-pr-just-runs-minimum-ci branch from 495b01b to 4962e39 Compare April 10, 2026 04:42
@yahonda
yahonda marked this pull request as ready for review April 10, 2026 04:48
@yahonda
yahonda requested a review from Copilot April 10, 2026 04:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Oracle 11g CI workflows to avoid running the heavy 11g test matrix on draft pull requests, while still ensuring those workflows run when a PR is marked “Ready for review” and on default-branch pushes/schedules.

Changes:

  • Restrict push triggers for the 11g workflows to the master branch to prevent branch pushes from bypassing draft gating.
  • Add ready_for_review to pull_request event types so the 11g workflows run when a draft PR is marked ready.
  • Add a job-level if: condition to skip 11g jobs for draft PRs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/test_11g.yml Skip running the 11g job matrix for draft PRs; trigger on ready_for_review; limit push runs to master.
.github/workflows/test_11g_ojdbc11.yml Same draft-skipping + ready_for_review triggering + master-only push restriction for the ojdbc11 variant.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yahonda
yahonda merged commit 60a201c into rsim:master Apr 10, 2026
21 checks passed
yahonda added a commit to yahonda/ruby-plsql that referenced this pull request Apr 12, 2026
For draft PRs, only test.yml runs to give quick feedback. The heavier
test_11g.yml and test_gemfiles.yml workflows are skipped until the PR
is marked ready for review.

Also limit push triggers to the master branch so feature branch pushes
only run CI via the pull_request event.

Follows the same pattern as rsim/oracle-enhanced#2509.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yahonda
yahonda deleted the draft-pr-just-runs-minimum-ci branch April 14, 2026 02:42
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